Update ecoset.py
Browse files
ecoset.py
CHANGED
|
@@ -12,6 +12,7 @@ import subprocess
|
|
| 12 |
import requests
|
| 13 |
from urllib.parse import urlparse
|
| 14 |
import datasets
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
|
|
@@ -213,8 +214,8 @@ class Ecoset(datasets.GeneratorBasedBuilder):
|
|
| 213 |
idx = 0
|
| 214 |
split_archives = archives[split]
|
| 215 |
acceptable_formats = [".JPEG", ".JPG", ".jpeg", ".jpg"]
|
| 216 |
-
for item in split_archives:
|
| 217 |
-
|
| 218 |
parts = item.split('/')
|
| 219 |
second_last_part = parts[-2]
|
| 220 |
name_parts = second_last_part.split('_')
|
|
|
|
| 12 |
import requests
|
| 13 |
from urllib.parse import urlparse
|
| 14 |
import datasets
|
| 15 |
+
from tqdm import tqdm
|
| 16 |
|
| 17 |
|
| 18 |
|
|
|
|
| 214 |
idx = 0
|
| 215 |
split_archives = archives[split]
|
| 216 |
acceptable_formats = [".JPEG", ".JPG", ".jpeg", ".jpg"]
|
| 217 |
+
for item in tqdm(split_archives):
|
| 218 |
+
|
| 219 |
parts = item.split('/')
|
| 220 |
second_last_part = parts[-2]
|
| 221 |
name_parts = second_last_part.split('_')
|