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
f75272fa
Unverified
Commit
f75272fa
authored
Jun 27, 2022
by
YosuaMichael
Committed by
GitHub
Jun 27, 2022
Browse files
Bugfix for accimage test on functional_pil.resize image (#6208)
parent
fb7f9a16
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchvision/transforms/functional_pil.py
torchvision/transforms/functional_pil.py
+2
-2
No files found.
torchvision/transforms/functional_pil.py
View file @
f75272fa
...
...
@@ -3,7 +3,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
import
numpy
as
np
import
torch
from
PIL
import
Image
,
Image
Ops
,
ImageEnhance
from
PIL
import
Image
,
Image
Enhance
,
ImageOps
from
typing_extensions
import
Literal
try
:
...
...
@@ -249,7 +249,7 @@ def resize(
if
not
(
isinstance
(
size
,
list
)
and
len
(
size
)
==
2
):
raise
TypeError
(
f
"Got inappropriate size arg:
{
size
}
"
)
return
img
.
resize
(
size
[::
-
1
],
interpolation
)
return
img
.
resize
(
tuple
(
size
[::
-
1
]
)
,
interpolation
)
@
torch
.
jit
.
unused
...
...
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