Datasets:
Update CC6204-Hackaton-Cub-Dataset.py
Browse files
CC6204-Hackaton-Cub-Dataset.py
CHANGED
@@ -101,7 +101,8 @@ class CubDataset(datasets.GeneratorBasedBuilder):
|
|
101 |
test_idx = []
|
102 |
|
103 |
# Download images
|
104 |
-
data_files = dl_manager.download_and_extract(
|
|
|
105 |
path_files = dl_manager.iter_files(data_files)
|
106 |
for img in path_files:
|
107 |
img_idx = _IMGNAME2ID[os.path.basename(img)]
|
|
|
101 |
test_idx = []
|
102 |
|
103 |
# Download images
|
104 |
+
data_files = dl_manager.download_and_extract(_URLLS["image_urls"])
|
105 |
+
#data_files = dl_manager.download_and_extract(_URLS["mini_images_urls"])
|
106 |
path_files = dl_manager.iter_files(data_files)
|
107 |
for img in path_files:
|
108 |
img_idx = _IMGNAME2ID[os.path.basename(img)]
|