Update Populus_Stomatal_Images_Datasets.py
Browse files
Populus_Stomatal_Images_Datasets.py
CHANGED
@@ -112,12 +112,12 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
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()
|
|
|
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.csv",
|
116 |
+
"zip": "https://huggingface.co/datasets/XintongHe/Populus_Stomatal_Images_Datasets/resolve/main/data/Labeled Stomatal Images.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")
|
121 |
|
122 |
# Get all image filenames
|
123 |
all_image_filenames = species_info['FileName'].apply(lambda x: x + '.jpg').tolist()
|