"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "7a81daf02696ba1be3450878c48da78dcfcc3826"
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
import numpy as np
import torch
from PIL import Image, ImageOps, ImageEnhance
from PIL import Image, ImageEnhance, 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
......
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