π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Added docs
Jian S4c7fc9c11537
diff --git a/docs/source/augmentation.functional.rst b/docs/source/augmentation.functional.rstnew file mode 100644index 000000000..2eda795b8--- /dev/null+++ b/docs/source/augmentation.functional.rst@@ -0,0 +1,16 @@+kornia.augmentation+------------++.. currentmodule:: kornia.augmentation.functional++The functions in this section perform various data augmentation operations++.. autofunction:: apply_hflip+.. autofunction:: random_hflip+.. autofunction:: apply_vflip+.. autofunction:: random_vflip+.. autofunction:: color_jitter+.. autofunction:: apply_color_jitter+.. autofunction:: random_grayscale+.. autofunction:: apply_grayscale+.. autofunction:: random_rectangle_erasediff --git a/docs/source/augmentation.param_gen.rst b/docs/source/augmentation.param_gen.rstnew file mode 100644index 000000000..4f3401b17--- /dev/null+++ b/docs/source/augmentation.param_gen.rst@@ -0,0 +1,9 @@+kornia.augmentation+------------++.. currentmodule:: kornia.augmentation.param_gen++The functions in this section generate random parameters for various data augmentation operations++.. autofunction:: _random_color_jitter_gen+.. autofunction:: _random_prob_gendiff --git a/docs/source/augmentation.rst b/docs/source/augmentation.rstindex 9031fe3cd..5a5b33ea1 100644--- a/docs/source/augmentation.rst+++ b/docs/source/augmentation.rst@@ -3,13 +3,7 @@ kornia.augmentation.. currentmodule:: kornia.augmentation-The functions in this section perform various data augmentation operations--.. autofunction:: random_hflip-.. autofunction:: random_vflip-.. autofunction:: color_jitter-.. autofunction:: random_rectangle_erase-.. autofunction:: random_grayscale+The classes in this section perform various data augmentation operations.. autoclass:: RandomHorizontalFlip.. autoclass:: RandomVerticalFlipdiff --git a/kornia/augmentation/__init__.py b/kornia/augmentation/__init__.pyindex b0f93b3b4..8ec78ee7e 100644--- a/kornia/augmentation/__init__.py+++ b/kornia/augmentation/__init__.py@@ -4,17 +4,17 @@ from kornia.augmentation.random_erasing import *__all__ = ["random_hflip",- "apply_hflip",+ # "apply_hflip","RandomHorizontalFlip","random_vflip",- "apply_vflip",+ # "apply_vflip","RandomVerticalFlip","color_jitter",- "apply_color_jitter",+ # "apply_color_jitter","ColorJitter","random_rectangle_erase","RandomRectangleErasing","random_grayscale",- "apply_grayscale",+ # "apply_grayscale","RandomGrayscale",]diff --git a/kornia/augmentation/param_gen.py b/kornia/augmentation/param_gen.pyindex 49deabc01..7ffa099bc 100644--- a/kornia/augmentation/param_gen.py+++ b/kornia/augmentation/param_gen.py@@ -22,6 +22,9 @@ def _random_color_jitter_gen(batch_size: int, brightness: FloatUnionType = 0.,saturation (float or tuple): Default value is 0hue (float or tuple): Default value is 0+ Returns:+ dict: generated parameter dictionary.+See :class:`~kornia.augmentation.ColorJitter` for details."""@@ -102,6 +105,9 @@ def _random_prob_gen(batch_size: int, p: float = .5) -> Dict[str, torch.Tensor]:batch_size (int): the number of images.p (float): probability of the image being flipped or grayscaled. Default value is 0.5+ Returns:+ dict: generated parameter dictionary.+See :class:`~kornia.augmentation.RandomGrayscale` for details.See :class:`~kornia.augmentation.RandomHorizontalFlip` for details.See :class:`~kornia.augmentation.RandomVerticalFlip` for details.diff --git a/requirements.txt b/requirements.txtindex 699f8d27b..898830955 100644--- a/requirements.txt+++ b/requirements.txt@@ -23,7 +23,7 @@ mypy_extensions==0.4.1# docssphinx==2.1.2sphinx-gallery==0.4.0-sphinx_rtd_theme=0.4.3+sphinx_rtd_theme==0.4.3sphinxcontrib-bibtex==0.4.2nbsphinx==0.4.2nbconvert==5.5.0