Datasets:
Commit
·
559d1f3
1
Parent(s):
7f7fd60
Update fruits30.py
Browse files- fruits30.py +1 -1
fruits30.py
CHANGED
@@ -40,7 +40,7 @@ class fruits30(datasets.GeneratorBasedBuilder):
|
|
40 |
idx = 0
|
41 |
for root, dirs, files in os.walk(data_dir):
|
42 |
for file in files:
|
43 |
-
if file.endswith(".
|
44 |
# Image file path format: <IMAGE_FILENAME>_<SYNSET_ID>.JPEG
|
45 |
_, synset_id = os.path.splitext(file)[0].rsplit("_", 1)
|
46 |
label = FRUITS30_CLASSES[synset_id]
|
|
|
40 |
idx = 0
|
41 |
for root, dirs, files in os.walk(data_dir):
|
42 |
for file in files:
|
43 |
+
if file.endswith(".jpg"):
|
44 |
# Image file path format: <IMAGE_FILENAME>_<SYNSET_ID>.JPEG
|
45 |
_, synset_id = os.path.splitext(file)[0].rsplit("_", 1)
|
46 |
label = FRUITS30_CLASSES[synset_id]
|