Datasets:
Add file extensions to shards
Browse files- requirements.txt +2 -1
- scripts/build.py +1 -1
- scripts/prepare.py +1 -0
requirements.txt
CHANGED
@@ -1,2 +1,3 @@
|
|
1 |
cityscapesscripts
|
2 |
-
webdataset
|
|
|
|
1 |
cityscapesscripts
|
2 |
+
webdataset
|
3 |
+
pandas
|
scripts/build.py
CHANGED
@@ -242,7 +242,7 @@ def run_writer(
|
|
242 |
tar_path = tar_path.with_suffix(f".tar.{compression}")
|
243 |
write_mode = f"w:{compression}"
|
244 |
else:
|
245 |
-
tar_path.with_suffix(".tar")
|
246 |
write_mode = "w"
|
247 |
|
248 |
with tarfile.open(tar_path, write_mode) as tar:
|
|
|
242 |
tar_path = tar_path.with_suffix(f".tar.{compression}")
|
243 |
write_mode = f"w:{compression}"
|
244 |
else:
|
245 |
+
tar_path = tar_path.with_suffix(".tar")
|
246 |
write_mode = "w"
|
247 |
|
248 |
with tarfile.open(tar_path, write_mode) as tar:
|
scripts/prepare.py
CHANGED
@@ -151,6 +151,7 @@ def main():
|
|
151 |
if os.path.isfile(zf_path):
|
152 |
print(f"Already downloaded: {zf_path}")
|
153 |
else:
|
|
|
154 |
download_list.append(zf)
|
155 |
|
156 |
# Download missing ZIP files using csDownload directly
|
|
|
151 |
if os.path.isfile(zf_path):
|
152 |
print(f"Already downloaded: {zf_path}")
|
153 |
else:
|
154 |
+
print(f"Needs to be downloaded: {zf_path}")
|
155 |
download_list.append(zf)
|
156 |
|
157 |
# Download missing ZIP files using csDownload directly
|