File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
torchvision/transforms/v2 Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments