Commit
•
0ea2566
1
Parent(s):
596056c
draft
Browse files
amazonian_fish_classifier_data.py
CHANGED
@@ -99,7 +99,7 @@ class AmazonianFish(datasets.GeneratorBasedBuilder):
|
|
99 |
datasets.SplitGenerator(
|
100 |
name=datasets.Split.TRAIN,
|
101 |
gen_kwargs={
|
102 |
-
"images": os.path.join(images,"training_images"),
|
103 |
},
|
104 |
),
|
105 |
]
|
@@ -110,4 +110,4 @@ class AmazonianFish(datasets.GeneratorBasedBuilder):
|
|
110 |
if example.name.startswith("._"):
|
111 |
continue
|
112 |
id_ += 1
|
113 |
-
yield id_, {"image": str(example), "label": example.parent.name}
|
|
|
99 |
datasets.SplitGenerator(
|
100 |
name=datasets.Split.TRAIN,
|
101 |
gen_kwargs={
|
102 |
+
"images": os.path.join(images, "training_images"),
|
103 |
},
|
104 |
),
|
105 |
]
|
|
|
110 |
if example.name.startswith("._"):
|
111 |
continue
|
112 |
id_ += 1
|
113 |
+
yield id_, {"image": str(example), "label": example.parent.name}
|