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
00368603
Commit
00368603
authored
Mar 21, 2018
by
Jason Park
Committed by
Soumith Chintala
Mar 21, 2018
Browse files
Fix RandomResizedCrop.__repr__ (#453)
parent
3b6c6706
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchvision/transforms/transforms.py
torchvision/transforms/transforms.py
+2
-2
No files found.
torchvision/transforms/transforms.py
View file @
00368603
...
...
@@ -525,8 +525,8 @@ class RandomResizedCrop(object):
def
__repr__
(
self
):
interpolate_str
=
_pil_interpolation_to_str
[
self
.
interpolation
]
format_string
=
self
.
__class__
.
__name__
+
'(size={0}'
.
format
(
self
.
size
)
format_string
+=
', scale={0}'
.
format
(
round
(
self
.
scale
,
4
))
format_string
+=
', ratio={0}'
.
format
(
round
(
self
.
ratio
,
4
))
format_string
+=
', scale={0}'
.
format
(
tuple
(
round
(
s
,
4
)
for
s
in
self
.
scale
))
format_string
+=
', ratio={0}'
.
format
(
tuple
(
round
(
r
,
4
)
for
r
in
self
.
ratio
))
format_string
+=
', interpolation={0})'
.
format
(
interpolate_str
)
return
format_string
...
...
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