Provide antialias argument as behaviour will be changed in future(deprecation warning)

This commit is contained in:
Sergey Borisov
2023-08-27 20:04:55 +03:00
parent 1811b54727
commit 526c7e7737
2 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ def image_resized_to_grid_as_tensor(image: PIL.Image.Image, normalize: bool = Tr
w, h = trim_to_multiple_of(*image.size, multiple_of=multiple_of)
transformation = T.Compose(
[
T.Resize((h, w), T.InterpolationMode.LANCZOS),
T.Resize((h, w), T.InterpolationMode.LANCZOS, antialias=False),
T.ToTensor(),
]
)