Thinh Huynh Nguyen Truong
commited on
Commit
·
2540430
1
Parent(s):
6896071
Update test.py
Browse files
test.py
CHANGED
@@ -68,7 +68,7 @@ def get_download_url(config_name: str, partition: str) -> str:
|
|
68 |
Returns:
|
69 |
str: URL to download file
|
70 |
"""
|
71 |
-
return f"https://huggingface.co/datasets/RGBD-SOD/test/
|
72 |
|
73 |
|
74 |
# TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
|
@@ -135,8 +135,6 @@ class Test(datasets.GeneratorBasedBuilder):
|
|
135 |
# dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
|
136 |
# 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.
|
137 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
138 |
-
urls = _URLS[self.config.name]
|
139 |
-
data_dir = dl_manager.download_and_extract(urls)
|
140 |
train_dir = dl_manager.download_and_extract(
|
141 |
get_download_url(self.config.name, "train")
|
142 |
)
|
|
|
68 |
Returns:
|
69 |
str: URL to download file
|
70 |
"""
|
71 |
+
return f"https://huggingface.co/datasets/RGBD-SOD/test/blob/main/data/{config_name}/{partition}.zip"
|
72 |
|
73 |
|
74 |
# TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
|
|
|
135 |
# dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
|
136 |
# 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.
|
137 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
|
|
|
|
138 |
train_dir = dl_manager.download_and_extract(
|
139 |
get_download_url(self.config.name, "train")
|
140 |
)
|