alkzar90 commited on
Commit
ca3428e
1 Parent(s): 4767376

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
@@ -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[os.path.basename(img)]
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: