alkzar90 commited on
Commit
6a38e43
·
1 Parent(s): bdfb9c8

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
@@ -112,7 +112,7 @@ class CubDataset(datasets.GeneratorBasedBuilder):
112
 
113
  #for img, text in zip(img_path_files, text_path_files):
114
  for img in img_path_files:
115
- text = text_data_files[text_data_files.index(img.replace("jpg", "txt"))]
116
  img_idx = _IMGNAME2ID[os.path.basename(img)]
117
  if img_idx in _TRAIN_IDX_SET:
118
  train_files.append((img, text))
 
112
 
113
  #for img, text in zip(img_path_files, text_path_files):
114
  for img in img_path_files:
115
+ text = text_data_files[text_data_files.index(os.path.basename(img).replace("jpg", "txt"))]
116
  img_idx = _IMGNAME2ID[os.path.basename(img)]
117
  if img_idx in _TRAIN_IDX_SET:
118
  train_files.append((img, text))