Léo Andéol
commited on
Testing another fix
Browse files- __pycache__/dataset.cpython-312.pyc +0 -0
- dataset.py +3 -1
__pycache__/dataset.cpython-312.pyc
ADDED
|
Binary file (2.56 kB). View file
|
|
|
dataset.py
CHANGED
|
@@ -46,7 +46,9 @@ class DatasetWrapper(ClassificationDataset):
|
|
| 46 |
return len(self.dataset)
|
| 47 |
|
| 48 |
def __getitem__(self, idx):
|
| 49 |
-
|
|
|
|
|
|
|
| 50 |
img = Image.open(path)
|
| 51 |
if self.transforms:
|
| 52 |
img = self.transforms(img)
|
|
|
|
| 46 |
return len(self.dataset)
|
| 47 |
|
| 48 |
def __getitem__(self, idx):
|
| 49 |
+
item = self.dataset[idx]
|
| 50 |
+
print(item)
|
| 51 |
+
path, label = item["image"], item["label"]
|
| 52 |
img = Image.open(path)
|
| 53 |
if self.transforms:
|
| 54 |
img = self.transforms(img)
|