We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d68f9c commit 36febf5Copy full SHA for 36febf5
torchvision/transforms/v2/_color.py
@@ -134,7 +134,7 @@ def _check_input(
134
raise TypeError(f"{name}={value} should be a single number or a sequence with length 2.")
135
136
if not bound[0] <= value[0] <= value[1] <= bound[1]:
137
- raise ValueError(f"{name} values should be between {bound}, but got {value}.")
+ raise ValueError(f"{name} values should be between {bound} and increasing, but got {value}.")
138
139
return None if value[0] == value[1] == center else (float(value[0]), float(value[1]))
140
0 commit comments