alkzar90 commited on
Commit
bc44388
1 Parent(s): 51a3670

Update CC6204-Hackaton-Cub-Dataset.py

Browse files
Files changed (1) hide show
  1. CC6204-Hackaton-Cub-Dataset.py +2 -0
CC6204-Hackaton-Cub-Dataset.py CHANGED
@@ -81,6 +81,7 @@ class CubDataset(datasets.GeneratorBasedBuilder):
81
  "image": datasets.Image(),
82
  "description": datasets.Value("string"),
83
  "label": datasets.features.ClassLabel(names=_NAMES),
 
84
  })
85
  keys = ("image", "label")
86
 
@@ -151,5 +152,6 @@ class CubDataset(datasets.GeneratorBasedBuilder):
151
  "image": path[0],
152
  "description": open(path[1], "r").read(),
153
  "label": _ID2LABEL[_IMGID2CLASSID[image_idx[i]]],
 
154
  }
155
 
 
81
  "image": datasets.Image(),
82
  "description": datasets.Value("string"),
83
  "label": datasets.features.ClassLabel(names=_NAMES),
84
+ "file_name": datasets.Value("string"),
85
  })
86
  keys = ("image", "label")
87
 
 
152
  "image": path[0],
153
  "description": open(path[1], "r").read(),
154
  "label": _ID2LABEL[_IMGID2CLASSID[image_idx[i]]],
155
+ "file_name": filename,
156
  }
157