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
d1cfff65
"git@developer.sourcefind.cn:OpenDAS/bitsandbytes.git" did not exist on "7bfe923ce8d7b9791b7f392c7f0b6754f203261c"
Unverified
Commit
d1cfff65
authored
Jul 21, 2022
by
Zachariah Carmichael
Committed by
GitHub
Jul 21, 2022
Browse files
Fix typo in error message (#6291)
parent
3db30442
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 @
d1cfff65
...
@@ -629,7 +629,7 @@ class RandomCrop(torch.nn.Module):
...
@@ -629,7 +629,7 @@ class RandomCrop(torch.nn.Module):
th
,
tw
=
output_size
th
,
tw
=
output_size
if
h
+
1
<
th
or
w
+
1
<
tw
:
if
h
+
1
<
th
or
w
+
1
<
tw
:
raise
ValueError
(
f
"Required crop size
{
(
th
,
tw
)
}
is larger th
e
n input image size
{
(
h
,
w
)
}
"
)
raise
ValueError
(
f
"Required crop size
{
(
th
,
tw
)
}
is larger th
a
n input image size
{
(
h
,
w
)
}
"
)
if
w
==
tw
and
h
==
th
:
if
w
==
tw
and
h
==
th
:
return
0
,
0
,
h
,
w
return
0
,
0
,
h
,
w
...
...
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