Datasets:
Update CC6204-Hackaton-Cub-Dataset.py
Browse files
CC6204-Hackaton-Cub-Dataset.py
CHANGED
@@ -93,7 +93,7 @@ class CubDataset(datasets.GeneratorBasedBuilder):
|
|
93 |
data_files = dl_manager.download_and_extract(_URLS["mini_images_urls"])
|
94 |
path_files = dl_manager.iter_files(data_files)
|
95 |
for img in path_files:
|
96 |
-
img_idx = _IMGNAME2ID[img]
|
97 |
if img_idx in _TRAIN_IDX_SET:
|
98 |
train_files.append(img)
|
99 |
else:
|
|
|
93 |
data_files = dl_manager.download_and_extract(_URLS["mini_images_urls"])
|
94 |
path_files = dl_manager.iter_files(data_files)
|
95 |
for img in path_files:
|
96 |
+
img_idx = _IMGNAME2ID[os.path.basename(img)]
|
97 |
if img_idx in _TRAIN_IDX_SET:
|
98 |
train_files.append(img)
|
99 |
else:
|