Skip to content

Commit 5242d6a

Browse files
EuroSAT: fix SSL certificate issues (#8563)
Co-authored-by: Nicolas Hug <[email protected]> Co-authored-by: Nicolas Hug <[email protected]>
1 parent c8c496d commit 5242d6a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

torchvision/datasets/eurosat.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
class EuroSAT(ImageFolder):
1010
"""RGB version of the `EuroSAT <https://github.com/phelber/eurosat>`_ Dataset.
1111
12+
For the MS version of the dataset, see
13+
`TorchGeo <https://torchgeo.readthedocs.io/en/stable/api/datasets.html#eurosat>`__.
14+
1215
Args:
1316
root (str or ``pathlib.Path``): Root directory of dataset where ``root/eurosat`` exists.
1417
transform (callable, optional): A function/transform that takes in a PIL image
@@ -53,7 +56,7 @@ def download(self) -> None:
5356

5457
os.makedirs(self._base_folder, exist_ok=True)
5558
download_and_extract_archive(
56-
"https://madm.dfki.de/files/sentinel/EuroSAT.zip",
59+
"https://huggingface.co/datasets/torchgeo/eurosat/resolve/c877bcd43f099cd0196738f714544e355477f3fd/EuroSAT.zip",
5760
download_root=self._base_folder,
5861
md5="c8fa014336c82ac7804f0398fcb19387",
5962
)

0 commit comments

Comments
 (0)