Datasets:
Update CC6204-Hackaton-Cub-Dataset.py
Browse files
CC6204-Hackaton-Cub-Dataset.py
CHANGED
@@ -95,7 +95,7 @@ class CubDataset(datasets.GeneratorBasedBuilder):
|
|
95 |
path_files = dl_manager.iter_files(batch)
|
96 |
for img in path_files:
|
97 |
logger.info(f"img: {img}")
|
98 |
-
img_idx = _IMGNAME2ID[
|
99 |
if img_idx in _TRAIN_IDX_SET:
|
100 |
train_files.append(img)
|
101 |
else:
|
|
|
95 |
path_files = dl_manager.iter_files(batch)
|
96 |
for img in path_files:
|
97 |
logger.info(f"img: {img}")
|
98 |
+
img_idx = _IMGNAME2ID[img]
|
99 |
if img_idx in _TRAIN_IDX_SET:
|
100 |
train_files.append(img)
|
101 |
else:
|