π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
docs: clarify the relation of color_jitter and color_jiggle (#1858)
Kunal Tyagi34cf856d740b
diff --git a/kornia/augmentation/_2d/intensity/color_jitter.py b/kornia/augmentation/_2d/intensity/color_jitter.pyindex ddda9667e..b7a7a7e82 100644--- a/kornia/augmentation/_2d/intensity/color_jitter.py+++ b/kornia/augmentation/_2d/intensity/color_jitter.py@@ -17,7 +17,9 @@ from kornia.enhance import (class ColorJitter(IntensityAugmentationBase2D):r"""Apply a random transformation to the brightness, contrast, saturation and hue of a tensor image.- This implementation aligns PIL. Hence, the output is close to TorchVision.+ This implementation aligns PIL. Hence, the output is close to TorchVision. However, it does not+ follow the color theory and is not be actively maintained. Prefer using+ :func:`kornia.augmentation.ColorJiggle`.. image:: _static/img/ColorJitter.pngdiff --git a/kornia/augmentation/random_generator/_2d/color_jitter.py b/kornia/augmentation/random_generator/_2d/color_jitter.pyindex 87b3bdcf2..c94e57031 100644--- a/kornia/augmentation/random_generator/_2d/color_jitter.py+++ b/kornia/augmentation/random_generator/_2d/color_jitter.py@@ -13,6 +13,10 @@ from kornia.utils.helpers import _extract_device_dtypeclass ColorJitterGenerator(RandomGeneratorBase):r"""Generate random color jiter parameters for a batch of images following Pil.+ This implementation is for maintaining compatibility with torchvision. It does not+ follow the color theory and is not be actively maintained. Prefer using+ :func:`kornia.augmentation.ColorJiggleGenerator`+Args:brightness: The brightness factor to apply.contrast: The contrast factor to apply.