Datasets:
Update CC6204-Hackaton-Cub-Dataset.py
Browse files
CC6204-Hackaton-Cub-Dataset.py
CHANGED
@@ -138,6 +138,6 @@ class CubDataset(datasets.GeneratorBasedBuilder):
|
|
138 |
if file_name.endswith(".jpg"):
|
139 |
yield i, {
|
140 |
"image": path,
|
141 |
-
"labels": _ID2LABEL[
|
142 |
}
|
143 |
|
|
|
138 |
if file_name.endswith(".jpg"):
|
139 |
yield i, {
|
140 |
"image": path,
|
141 |
+
"labels": _ID2LABEL[int(image_idx[i])],
|
142 |
}
|
143 |
|