antialisaing not available

This commit is contained in:
Falko Victor Habel 2025-02-24 16:23:57 +01:00
parent 2360e23cc7
commit 64fb7a199d
1 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,8 @@ class UpscaleDataset(Dataset):
# Resize the images to reduce VRAM usage.
# Using Image.ANTIALIAS which is equivalent to LANCZOS in current Pillow versions.
low_res = low_res.resize((384, 384), Image.ANTIALIAS)
high_res = high_res.resize((768, 768), Image.ANTIALIAS)
low_res = low_res.resize((384, 384), Image.LANCZOS)
high_res = high_res.resize((768, 768), Image.LANCZOS)
# If a transform is provided (e.g. conversion to Tensor), apply it.
if self.transform: