Unverified Commit f75272fa authored by YosuaMichael's avatar YosuaMichael Committed by GitHub
Browse files

Bugfix for accimage test on functional_pil.resize image (#6208)

parent fb7f9a16
...@@ -3,7 +3,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union ...@@ -3,7 +3,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
import numpy as np import numpy as np
import torch import torch
from PIL import Image, ImageOps, ImageEnhance from PIL import Image, ImageEnhance, ImageOps
from typing_extensions import Literal from typing_extensions import Literal
try: try:
...@@ -249,7 +249,7 @@ def resize( ...@@ -249,7 +249,7 @@ def resize(
if not (isinstance(size, list) and len(size) == 2): if not (isinstance(size, list) and len(size) == 2):
raise TypeError(f"Got inappropriate size arg: {size}") raise TypeError(f"Got inappropriate size arg: {size}")
return img.resize(size[::-1], interpolation) return img.resize(tuple(size[::-1]), interpolation)
@torch.jit.unused @torch.jit.unused
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment