π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
docs(augmentation): fix API examples and dispatcher name (#4769)
NiteeshGowda726d837bbe65b5
diff --git a/changelog.d/4769.fixed.md b/changelog.d/4769.fixed.mdnew file mode 100644index 000000000..bf57de7da--- /dev/null+++ b/changelog.d/4769.fixed.md@@ -0,0 +1 @@+Fix augmentation API documentation examples for AutoAugment, RandAugment, and TrivialAugment, and correct the ManyToManyAugmentationDispather name in the augmentation container metadata.diff --git a/docs/source/augmentation.container.rst b/docs/source/augmentation.container.rstindex 5d44b6f2e..94d5409a1 100644--- a/docs/source/augmentation.container.rst+++ b/docs/source/augmentation.container.rst@@ -2,7 +2,7 @@ Augmentation Containers=======================.. meta::- :description: The Augmentation Containers module in Kornia provides advanced frameworks for building augmentation pipelines. It includes classes like AugmentationSequential, ManyToManyAugmentationDispatcher, and VideoSequential for managing data formats such as images, videos, and temporal data. It also supports processing masks, bounding boxes, and keypoints in augmentation workflows.+ :description: The Augmentation Containers module in Kornia provides advanced frameworks for building augmentation pipelines. It includes classes like AugmentationSequential, ManyToManyAugmentationDispather, and VideoSequential for managing data formats such as images, videos, and temporal data. It also supports processing masks, bounding boxes, and keypoints in augmentation workflows... currentmodule:: kornia.augmentation.containerdiff --git a/kornia/augmentation/auto/autoaugment/autoaugment.py b/kornia/augmentation/auto/autoaugment/autoaugment.pyindex 69474442f..69b565baa 100644--- a/kornia/augmentation/auto/autoaugment/autoaugment.py+++ b/kornia/augmentation/auto/autoaugment/autoaugment.py@@ -143,6 +143,7 @@ class AutoAugment(PolicyAugmentBase):Examples:>>> import torch>>> import kornia.augmentation as K+ >>> from kornia.augmentation.auto import AutoAugment>>> in_tensor = torch.rand(5, 3, 30, 30)>>> aug = K.AugmentationSequential(AutoAugment())>>> aug(in_tensor).shapediff --git a/kornia/augmentation/auto/rand_augment/rand_augment.py b/kornia/augmentation/auto/rand_augment/rand_augment.pyindex e24a711f3..6101c30dc 100644--- a/kornia/augmentation/auto/rand_augment/rand_augment.py+++ b/kornia/augmentation/auto/rand_augment/rand_augment.py@@ -80,7 +80,9 @@ class RandAugment(PolicyAugmentBase):If `skip`, transformation matrix will be totally ignored.Examples:+ >>> import torch>>> import kornia.augmentation as K+ >>> from kornia.augmentation.auto import RandAugment>>> in_tensor = torch.rand(5, 3, 30, 30)>>> aug = K.AugmentationSequential(RandAugment(n=2, m=10))>>> aug(in_tensor).shapediff --git a/kornia/augmentation/auto/trivial_augment/trivial_augment.py b/kornia/augmentation/auto/trivial_augment/trivial_augment.pyindex 99a18cc6b..cbfa03256 100644--- a/kornia/augmentation/auto/trivial_augment/trivial_augment.py+++ b/kornia/augmentation/auto/trivial_augment/trivial_augment.py@@ -70,7 +70,9 @@ class TrivialAugment(PolicyAugmentBase):If `skip`, transformation matrix will be totally ignored.Examples:+ >>> import torch>>> import kornia.augmentation as K+ >>> from kornia.augmentation.auto import TrivialAugment>>> in_tensor = torch.rand(5, 3, 30, 30)>>> aug = K.AugmentationSequential(TrivialAugment())>>> aug(in_tensor).shape