Datasets:
Update CC6204-Hackaton-Cub-Dataset.py
Browse files
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 |
|