alkzar90 commited on
Commit
5d33583
·
1 Parent(s): b1245e5

Update CC6204-Hackaton-Cub-Dataset.py

Browse files
Files changed (1) hide show
  1. CC6204-Hackaton-Cub-Dataset.py +1 -1
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), default=None):
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: