Skip to content

Commit ea9cfba

Browse files
authored
Merge branch 'main' into aefjnalefjnaljef
2 parents 80f2fdf + 36febf5 commit ea9cfba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

torchvision/transforms/v2/_color.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def _check_input(
134134
raise TypeError(f"{name}={value} should be a single number or a sequence with length 2.")
135135

136136
if not bound[0] <= value[0] <= value[1] <= bound[1]:
137-
raise ValueError(f"{name} values should be between {bound}, but got {value}.")
137+
raise ValueError(f"{name} values should be between {bound} and increasing, but got {value}.")
138138

139139
return None if value[0] == value[1] == center else (float(value[0]), float(value[1]))
140140

torchvision/transforms/v2/_geometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ class RandomRotation(Transform):
567567
Args:
568568
degrees (sequence or number): Range of degrees to select from.
569569
If degrees is a number instead of sequence like (min, max), the range of degrees
570-
will be (-degrees, +degrees).
570+
will be [-degrees, +degrees].
571571
interpolation (InterpolationMode, optional): Desired interpolation enum defined by
572572
:class:`torchvision.transforms.InterpolationMode`. Default is ``InterpolationMode.NEAREST``.
573573
If input is Tensor, only ``InterpolationMode.NEAREST``, ``InterpolationMode.BILINEAR`` are supported.

0 commit comments

Comments
 (0)