INeedNZT
commited on
Commit
·
eff5902
1
Parent(s):
e24ec42
Download txt file
Browse files- waymo_train.py +6 -5
waymo_train.py
CHANGED
|
@@ -22,7 +22,7 @@
|
|
| 22 |
|
| 23 |
"""Waymo raw and depth map dataset."""
|
| 24 |
|
| 25 |
-
|
| 26 |
import datasets
|
| 27 |
|
| 28 |
|
|
@@ -35,11 +35,12 @@ _HOMEPAGE = "https://waymo.com/open/data/perception"
|
|
| 35 |
|
| 36 |
_LICENSE = "MIT License"
|
| 37 |
|
| 38 |
-
def
|
| 39 |
-
|
| 40 |
-
|
|
|
|
| 41 |
|
| 42 |
-
tar_files_list =
|
| 43 |
|
| 44 |
_URLS = {
|
| 45 |
"rgb": [f"rgb/{tar}" for tar in tar_files_list],
|
|
|
|
| 22 |
|
| 23 |
"""Waymo raw and depth map dataset."""
|
| 24 |
|
| 25 |
+
import requests
|
| 26 |
import datasets
|
| 27 |
|
| 28 |
|
|
|
|
| 35 |
|
| 36 |
_LICENSE = "MIT License"
|
| 37 |
|
| 38 |
+
def load_urls_from_repo(repo_url):
|
| 39 |
+
response = requests.get(repo_url)
|
| 40 |
+
response.raise_for_status()
|
| 41 |
+
return [line.strip() for line in response.text.splitlines() if line.strip()]
|
| 42 |
|
| 43 |
+
tar_files_list = load_urls_from_repo("https://huggingface.co/datasets/oceanfish/waymo_train/raw/main/tar_files.txt")
|
| 44 |
|
| 45 |
_URLS = {
|
| 46 |
"rgb": [f"rgb/{tar}" for tar in tar_files_list],
|