antialisaing not available
This commit is contained in:
parent
2360e23cc7
commit
64fb7a199d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue