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
7aef1153
Unverified
Commit
7aef1153
authored
Dec 21, 2022
by
nps1ngh
Committed by
GitHub
Dec 21, 2022
Browse files
fix `repr` of `transforms.RandomResizedCrop` (#7048)
parent
9851a69f
Changes
1
Show 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 @
7aef1153
...
@@ -967,7 +967,7 @@ class RandomResizedCrop(torch.nn.Module):
...
@@ -967,7 +967,7 @@ class RandomResizedCrop(torch.nn.Module):
format_string
=
self
.
__class__
.
__name__
+
f
"(size=
{
self
.
size
}
"
format_string
=
self
.
__class__
.
__name__
+
f
"(size=
{
self
.
size
}
"
format_string
+=
f
", scale=
{
tuple
(
round
(
s
,
4
)
for
s
in
self
.
scale
)
}
"
format_string
+=
f
", scale=
{
tuple
(
round
(
s
,
4
)
for
s
in
self
.
scale
)
}
"
format_string
+=
f
", ratio=
{
tuple
(
round
(
r
,
4
)
for
r
in
self
.
ratio
)
}
"
format_string
+=
f
", ratio=
{
tuple
(
round
(
r
,
4
)
for
r
in
self
.
ratio
)
}
"
format_string
+=
f
", interpolation=
{
interpolate_str
}
)
"
format_string
+=
f
", interpolation=
{
interpolate_str
}
"
format_string
+=
f
", antialias=
{
self
.
antialias
}
)"
format_string
+=
f
", antialias=
{
self
.
antialias
}
)"
return
format_string
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