alkzar90 commited on
Commit
8c5ddc8
1 Parent(s): 3b7918a

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
@@ -143,7 +143,7 @@ class CubDataset(datasets.GeneratorBasedBuilder):
143
  if file_name.endswith(".jpg"):
144
  yield i, {
145
  "image": path[0],
146
- "description": path[1],
147
  "label": _ID2LABEL[_IMGID2CLASSID[image_idx[i]]],
148
  }
149
 
 
143
  if file_name.endswith(".jpg"):
144
  yield i, {
145
  "image": path[0],
146
+ "description": open(path[1], "r").read(),
147
  "label": _ID2LABEL[_IMGID2CLASSID[image_idx[i]]],
148
  }
149