Upload image-demo.py
Browse files- image-demo.py +1 -3
image-demo.py
CHANGED
|
@@ -51,7 +51,7 @@ class ImagesDemo(datasets.GeneratorBasedBuilder):
|
|
| 51 |
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
| 52 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
| 53 |
|
| 54 |
-
data_dir = dl_manager.
|
| 55 |
image_iters = dl_manager.iter_archive(data_dir)
|
| 56 |
return [
|
| 57 |
datasets.SplitGenerator(
|
|
@@ -65,8 +65,6 @@ class ImagesDemo(datasets.GeneratorBasedBuilder):
|
|
| 65 |
|
| 66 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
| 67 |
def _generate_examples(self, images):
|
| 68 |
-
print("HONA")
|
| 69 |
-
pdb.set_trace()
|
| 70 |
idx = 0
|
| 71 |
for filepath, image in images:
|
| 72 |
print(filepath)
|
|
|
|
| 51 |
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
| 52 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
| 53 |
|
| 54 |
+
data_dir = dl_manager.download(_URL)
|
| 55 |
image_iters = dl_manager.iter_archive(data_dir)
|
| 56 |
return [
|
| 57 |
datasets.SplitGenerator(
|
|
|
|
| 65 |
|
| 66 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
| 67 |
def _generate_examples(self, images):
|
|
|
|
|
|
|
| 68 |
idx = 0
|
| 69 |
for filepath, image in images:
|
| 70 |
print(filepath)
|