Spaces:
Build error
Build error
edits
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ class ImgDataset(data.Dataset):
|
|
48 |
|
49 |
def __getitem__(self, index):
|
50 |
img = self.images[index]
|
51 |
-
img.thumbnail((self.imsize, self.imsize), Image.
|
52 |
print('after imresize:', img.size)
|
53 |
return self.transform(img)
|
54 |
|
|
|
48 |
|
49 |
def __getitem__(self, index):
|
50 |
img = self.images[index]
|
51 |
+
img.thumbnail((self.imsize, self.imsize), Image.Resampling.LANCZOS)
|
52 |
print('after imresize:', img.size)
|
53 |
return self.transform(img)
|
54 |
|