Datasets:
frgfm
commited on
Commit
·
5491b42
1
Parent(s):
778739f
fix: Fixed typo
Browse files- imagenette.py +1 -1
imagenette.py
CHANGED
@@ -151,7 +151,7 @@ class OpenFire(datasets.GeneratorBasedBuilder):
|
|
151 |
idx = 0
|
152 |
for file_path, file_obj in images:
|
153 |
if file_path in files_to_keep:
|
154 |
-
label = _LABEL_MAP.index(file_path.split("/")[-
|
155 |
yield idx, {
|
156 |
"image": {"path": file_path, "bytes": file_obj.read()},
|
157 |
"label": label,
|
|
|
151 |
idx = 0
|
152 |
for file_path, file_obj in images:
|
153 |
if file_path in files_to_keep:
|
154 |
+
label = _LABEL_MAP.index(file_path.split("/")[-2])
|
155 |
yield idx, {
|
156 |
"image": {"path": file_path, "bytes": file_obj.read()},
|
157 |
"label": label,
|