Skip to content

Commit 36febf5

Browse files
authored
Clarify error message in ColorJitter (#8844)
1 parent 8d68f9c commit 36febf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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

0 commit comments

Comments
 (0)