Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -337,7 +337,7 @@ class MyDataset(torch.utils.data.Dataset):
|
|
337 |
return len(self.img_list)
|
338 |
|
339 |
def __getitem__(self, idx):
|
340 |
-
img =
|
341 |
# img = self.img_list[idx]
|
342 |
img = self.augmentations(img)
|
343 |
img = np.array(img)
|
|
|
337 |
return len(self.img_list)
|
338 |
|
339 |
def __getitem__(self, idx):
|
340 |
+
img = self.img_list[idx].convert("RGB")
|
341 |
# img = self.img_list[idx]
|
342 |
img = self.augmentations(img)
|
343 |
img = np.array(img)
|