Update Populus_Stomatal_Images_Datasets.py
Browse files
Populus_Stomatal_Images_Datasets.py
CHANGED
@@ -168,7 +168,6 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
168 |
return annotations
|
169 |
|
170 |
def _generate_examples(self, filepaths, species_info, data_dir):
|
171 |
-
"""Yields examples as (key, example) tuples."""
|
172 |
for file_name in filepaths:
|
173 |
image_id = os.path.splitext(file_name)[0] # Extract the base name without the file extension
|
174 |
image_path = os.path.join(data_dir, f"{image_id}.jpg")
|
|
|
168 |
return annotations
|
169 |
|
170 |
def _generate_examples(self, filepaths, species_info, data_dir):
|
|
|
171 |
for file_name in filepaths:
|
172 |
image_id = os.path.splitext(file_name)[0] # Extract the base name without the file extension
|
173 |
image_path = os.path.join(data_dir, f"{image_id}.jpg")
|