We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb7f9a1 commit f75272fCopy full SHA for f75272f
torchvision/transforms/functional_pil.py
@@ -3,7 +3,7 @@
3
4
import numpy as np
5
import torch
6
-from PIL import Image, ImageOps, ImageEnhance
+from PIL import Image, ImageEnhance, ImageOps
7
from typing_extensions import Literal
8
9
try:
@@ -249,7 +249,7 @@ def resize(
249
if not (isinstance(size, list) and len(size) == 2):
250
raise TypeError(f"Got inappropriate size arg: {size}")
251
252
- return img.resize(size[::-1], interpolation)
+ return img.resize(tuple(size[::-1]), interpolation)
253
254
255
@torch.jit.unused
0 commit comments