Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
1c1d5d87
"vscode:/vscode.git/clone" did not exist on "e9ec6ac85eb9fba1111622d628d97e8183ff5552"
Unverified
Commit
1c1d5d87
authored
Apr 12, 2021
by
Lewis Patten
Committed by
GitHub
Apr 12, 2021
Browse files
Corrected spelling in a Type Error (#3659)
parent
e8dded4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/transforms/transforms.py
torchvision/transforms/transforms.py
+1
-1
No files found.
torchvision/transforms/transforms.py
View file @
1c1d5d87
...
...
@@ -1110,7 +1110,7 @@ class ColorJitter(torch.nn.Module):
if
not
bound
[
0
]
<=
value
[
0
]
<=
value
[
1
]
<=
bound
[
1
]:
raise
ValueError
(
"{} values should be between {}"
.
format
(
name
,
bound
))
else
:
raise
TypeError
(
"{} should be a single number or a list/tuple with leng
h
t 2."
.
format
(
name
))
raise
TypeError
(
"{} should be a single number or a list/tuple with lengt
h
2."
.
format
(
name
))
# if value is 0 or (1., 1.) for brightness/contrast/saturation
# or (0., 0.) for hue, do nothing
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment