Datasets:
Update CC6204-Hackaton-Cub-Dataset.py
Browse files
CC6204-Hackaton-Cub-Dataset.py
CHANGED
@@ -152,6 +152,6 @@ class CubDataset(datasets.GeneratorBasedBuilder):
|
|
152 |
"image": path[0],
|
153 |
"description": open(path[1], "r").read(),
|
154 |
"label": _ID2LABEL[_IMGID2CLASSID[image_idx[i]]],
|
155 |
-
"file_name": file_name,
|
156 |
}
|
157 |
|
|
|
152 |
"image": path[0],
|
153 |
"description": open(path[1], "r").read(),
|
154 |
"label": _ID2LABEL[_IMGID2CLASSID[image_idx[i]]],
|
155 |
+
"file_name": file_name[-1],
|
156 |
}
|
157 |
|