Change antialias to True as input - image

Co-authored-by: Lincoln Stein <lincoln.stein@gmail.com>
This commit is contained in:
StAlKeR7779 2023-08-28 02:54:39 +03:00 committed by GitHub
parent 526c7e7737
commit 3e6c49001c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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, antialias=False),
T.Resize((h, w), T.InterpolationMode.LANCZOS, antialias=True),
T.ToTensor(),
]
)