Skip to content

Commit de612f7

Browse files
authored
Add comments to ColorJitter parameters;test=document_fix (#33432)
1 parent e48f7a5 commit de612f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/paddle/vision/transforms/transforms.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -848,13 +848,13 @@ class ColorJitter(BaseTransform):
848848
"""Randomly change the brightness, contrast, saturation and hue of an image.
849849
850850
Args:
851-
brightness: How much to jitter brightness.
851+
brightness (float): How much to jitter brightness.
852852
Chosen uniformly from [max(0, 1 - brightness), 1 + brightness]. Should be non negative numbers.
853-
contrast: How much to jitter contrast.
853+
contrast (float): How much to jitter contrast.
854854
Chosen uniformly from [max(0, 1 - contrast), 1 + contrast]. Should be non negative numbers.
855-
saturation: How much to jitter saturation.
855+
saturation (float): How much to jitter saturation.
856856
Chosen uniformly from [max(0, 1 - saturation), 1 + saturation]. Should be non negative numbers.
857-
hue: How much to jitter hue.
857+
hue (float): How much to jitter hue.
858858
Chosen uniformly from [-hue, hue]. Should have 0<= hue <= 0.5.
859859
keys (list[str]|tuple[str], optional): Same as ``BaseTransform``. Default: None.
860860

0 commit comments

Comments
 (0)