Datasets:
Update load_script.py
Browse files- load_script.py +2 -2
load_script.py
CHANGED
@@ -37,14 +37,14 @@ class ExampleImages(datasets.GeneratorBasedBuilder):
|
|
37 |
|
38 |
def _split_generators(self, dl_manager):
|
39 |
images_archive = dl_manager.download(_REPO)
|
40 |
-
|
41 |
image_iters = dl_manager.iter_archive(images_archive)
|
42 |
return [
|
43 |
datasets.SplitGenerator(
|
44 |
name=datasets.Split.TRAIN,
|
45 |
gen_kwargs={
|
46 |
"images": image_iters,
|
47 |
-
"metadata_path":
|
48 |
}
|
49 |
),
|
50 |
]
|
|
|
37 |
|
38 |
def _split_generators(self, dl_manager):
|
39 |
images_archive = dl_manager.download(_REPO)
|
40 |
+
metadata_path = dl_manager.download(_METADATA_URL)
|
41 |
image_iters = dl_manager.iter_archive(images_archive)
|
42 |
return [
|
43 |
datasets.SplitGenerator(
|
44 |
name=datasets.Split.TRAIN,
|
45 |
gen_kwargs={
|
46 |
"images": image_iters,
|
47 |
+
"metadata_path": metadata_path
|
48 |
}
|
49 |
),
|
50 |
]
|