<commit_before>Utils
=====

.. module:: chainercv.utils


Bounding Box Utilities
----------------------

bbox_iou
~~~~~~~~
.. autofunction:: bbox_iou

non_maximum_suppression
~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: non_maximum_suppression


Download Utilities
------------------

cached_download
~~~~~~~~~~~~~~~
.. autofunction:: cached_download

download_model
~~~~~~~~~~~~~~
.. autofunction:: download_model

extractall
~~~~~~~~~~
.. autofunction:: extractall


Image Utilities
---------------

read_image
~~~~~~~~~~
.. autofunction:: read_image


Iterator Utilities
------------------

apply_prediction_to_iterator
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: apply_prediction_to_iterator

unzip
~~~~~
.. autofunction:: unzip


Testing Utilities
-----------------

assert_is_bbox
~~~~~~~~~~~~~~
.. autofunctions:: assert_is_bbox

assert_is_detection_dataset
~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunctions:: assert_is_detection_dataset

assert_is_detection_link
~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunctions:: assert_is_detection_link

assert_is_image
~~~~~~~~~~~~~~~
.. autofunctions:: assert_is_image

assert_is_semantic_segmentation_dataset
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunctions:: assert_is_semantic_segmentation_dataset

assert_is_semantic_segmentation_link
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunctions:: assert_is_semantic_segmentation_link

ConstantStubLink
~~~~~~~~~~~~~~~~
.. autoclass:: ConstantStubLink
   :members:

generate_random_bbox
~~~~~~~~~~~~~~~~~~~~
.. autofunction:: generate_random_bbox<commit_msg>autofunctions -> autofunction<commit_after>Utils
=====

.. module:: chainercv.utils


Bounding Box Utilities
----------------------

bbox_iou
~~~~~~~~
.. autofunction:: bbox_iou

non_maximum_suppression
~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: non_maximum_suppression


Download Utilities
------------------

cached_download
~~~~~~~~~~~~~~~
.. autofunction:: cached_download

download_model
~~~~~~~~~~~~~~
.. autofunction:: download_model

extractall
~~~~~~~~~~
.. autofunction:: extractall


Image Utilities
---------------

read_image
~~~~~~~~~~
.. autofunction:: read_image


Iterator Utilities
------------------

apply_prediction_to_iterator
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: apply_prediction_to_iterator

unzip
~~~~~
.. autofunction:: unzip


Testing Utilities
-----------------

assert_is_bbox
~~~~~~~~~~~~~~
.. autofunction:: assert_is_bbox

assert_is_detection_dataset
~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: assert_is_detection_dataset

assert_is_detection_link
~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: assert_is_detection_link

assert_is_image
~~~~~~~~~~~~~~~
.. autofunction:: assert_is_image

assert_is_semantic_segmentation_dataset
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: assert_is_semantic_segmentation_dataset

assert_is_semantic_segmentation_link
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: assert_is_semantic_segmentation_link

ConstantStubLink
~~~~~~~~~~~~~~~~
.. autoclass:: ConstantStubLink
   :members:

generate_random_bbox
~~~~~~~~~~~~~~~~~~~~
.. autofunction:: generate_random_bbox
{'fraction_non_alphanumeric': 0.30541237113402064, 'fraction_numerical': 0.0, 'mean_word_length': 5.017441860465116, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6589513', 'n_tokens_mistral': 914, 'n_tokens_neox': 861, 'n_words': 126}