Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change SSL4EO-L-Benchmark Huggingface links #1431

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions torchgeo/datasets/ssl4eo_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class SSL4EOLBenchmark(NonGeoDataset):
.. versionadded:: 0.5
"""

url = "https://huggingface.co/datasets/torchgeo/{}/resolve/main/{}.tar.gz"
url = "https://huggingface.co/datasets/torchgeo/ssl4eo-l-benchmark/resolve/main/{}.tar.gz" # noqa: E501

valid_sensors = ["tm_toa", "etm_toa", "etm_sr", "oli_tirs_toa", "oli_sr"]
valid_products = ["cdl", "nlcd"]
Expand Down Expand Up @@ -232,13 +232,13 @@ def _download(self) -> None:
"""Download the dataset."""
# download imagery
download_url(
self.url.format(self.img_dir_name, self.img_dir_name),
self.url.format(self.img_dir_name),
self.root,
md5=self.img_md5s[self.sensor] if self.checksum else None,
)
# download mask
download_url(
self.url.format(self.mask_dir_name, self.mask_dir_name),
self.url.format(self.mask_dir_name),
self.root,
md5=self.mask_md5s[self.sensor.split("_")[0]][self.product]
if self.checksum
Expand Down