Skip to content

Commit 66cdc72

Browse files
committed
Chainging Nones to optional.
1 parent b19e2de commit 66cdc72

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

torchvision/transforms/transforms.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,13 +1059,13 @@ def get_params(brightness: Optional[List[float]],
10591059
"""Get the parameters for the randomized transform to be applied on image.
10601060
10611061
Args:
1062-
brightness (tuple of float (min, max) or None): The range from which the brightness_factor is chosen
1062+
brightness (tuple of float (min, max), optional): The range from which the brightness_factor is chosen
10631063
uniformly. Pass None to turn off the transformation.
1064-
contrast (tuple of float (min, max) or None): The range from which the contrast_factor is chosen
1064+
contrast (tuple of float (min, max), optional): The range from which the contrast_factor is chosen
10651065
uniformly. Pass None to turn off the transformation.
1066-
saturation (tuple of float (min, max) or None): The range from which the saturation_factor is chosen
1066+
saturation (tuple of float (min, max), optional): The range from which the saturation_factor is chosen
10671067
uniformly. Pass None to turn off the transformation.
1068-
hue (tuple of float (min, max) or None): The range from which the hue_factor is chosen uniformly.
1068+
hue (tuple of float (min, max), optional): The range from which the hue_factor is chosen uniformly.
10691069
Pass None to turn off the transformation.
10701070
10711071
Returns:

0 commit comments

Comments
 (0)