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
12a37ba7
Commit
12a37ba7
authored
Oct 12, 2017
by
Yu Luo
Committed by
Alykhan Tejani
Oct 12, 2017
Browse files
(fix) fix RandomCrop get_params output (#289)
parent
9fc7edfb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/transforms.py
torchvision/transforms.py
+1
-1
No files found.
torchvision/transforms.py
View file @
12a37ba7
...
...
@@ -749,7 +749,7 @@ class RandomCrop(object):
w
,
h
=
img
.
size
th
,
tw
=
output_size
if
w
==
tw
and
h
==
th
:
return
img
return
0
,
0
,
h
,
w
i
=
random
.
randint
(
0
,
h
-
th
)
j
=
random
.
randint
(
0
,
w
-
tw
)
...
...
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