Update Populus_Stomatal_Images_Datasets.py
Browse files
Populus_Stomatal_Images_Datasets.py
CHANGED
@@ -110,14 +110,14 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
110 |
)
|
111 |
|
112 |
def _split_generators(self, dl_manager):
|
113 |
-
|
114 |
data_files = dl_manager.download_and_extract({
|
115 |
-
"csv": "https://huggingface.co/datasets/XintongHe/Populus_Stomatal_Images_Datasets/resolve/main/data/Labeled Stomatal
|
116 |
-
"zip": "https://huggingface.co/datasets/XintongHe/Populus_Stomatal_Images_Datasets/resolve/main/data/Labeled Stomatal
|
117 |
})
|
118 |
|
119 |
species_info = pd.read_csv(data_files["csv"])
|
120 |
-
extracted_images_path = os.path.join(data_files["zip"], "Labeled Stomatal
|
121 |
|
122 |
# Get all image filenames
|
123 |
all_image_filenames = species_info['FileName'].apply(lambda x: x + '.jpg').tolist()
|
|
|
110 |
)
|
111 |
|
112 |
def _split_generators(self, dl_manager):
|
113 |
+
|
114 |
data_files = dl_manager.download_and_extract({
|
115 |
+
"csv": "https://huggingface.co/datasets/XintongHe/Populus_Stomatal_Images_Datasets/resolve/main/data/Labeled Stomatal Images_config.csv",
|
116 |
+
"zip": "https://huggingface.co/datasets/XintongHe/Populus_Stomatal_Images_Datasets/resolve/main/data/Labeled Stomatal Images_config.zip"
|
117 |
})
|
118 |
|
119 |
species_info = pd.read_csv(data_files["csv"])
|
120 |
+
extracted_images_path = os.path.join(data_files["zip"], "Labeled Stomatal Images_config")
|
121 |
|
122 |
# Get all image filenames
|
123 |
all_image_filenames = species_info['FileName'].apply(lambda x: x + '.jpg').tolist()
|