Datasets:
Update CC6204-Hackaton-Cub-Dataset.py
Browse files
CC6204-Hackaton-Cub-Dataset.py
CHANGED
@@ -86,7 +86,7 @@ class CubDataset(datasets.GeneratorBasedBuilder):
|
|
86 |
for batch in data_files:
|
87 |
path_files = dl_manager.iter_files(batch)
|
88 |
for img in path_files:
|
89 |
-
if _IMGNAME2ID.get(os.path.basename(img)
|
90 |
if _IMGNAME2ID[os.path.basename(img)] in train_images_idx:
|
91 |
train_files.append(img)
|
92 |
else:
|
|
|
86 |
for batch in data_files:
|
87 |
path_files = dl_manager.iter_files(batch)
|
88 |
for img in path_files:
|
89 |
+
if _IMGNAME2ID.get(os.path.basename(img)):
|
90 |
if _IMGNAME2ID[os.path.basename(img)] in train_images_idx:
|
91 |
train_files.append(img)
|
92 |
else:
|