From 5242d6ac27c5eae7b74b65f28bd1373de955327e Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Tue, 6 Aug 2024 14:40:48 +0200 Subject: [PATCH] EuroSAT: fix SSL certificate issues (#8563) Co-authored-by: Nicolas Hug Co-authored-by: Nicolas Hug --- torchvision/datasets/eurosat.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/torchvision/datasets/eurosat.py b/torchvision/datasets/eurosat.py index 3f490b11902..c6571d2abab 100644 --- a/torchvision/datasets/eurosat.py +++ b/torchvision/datasets/eurosat.py @@ -9,6 +9,9 @@ class EuroSAT(ImageFolder): """RGB version of the `EuroSAT `_ Dataset. + For the MS version of the dataset, see + `TorchGeo `__. + Args: root (str or ``pathlib.Path``): Root directory of dataset where ``root/eurosat`` exists. transform (callable, optional): A function/transform that takes in a PIL image @@ -53,7 +56,7 @@ def download(self) -> None: os.makedirs(self._base_folder, exist_ok=True) download_and_extract_archive( - "https://madm.dfki.de/files/sentinel/EuroSAT.zip", + "https://huggingface.co/datasets/torchgeo/eurosat/resolve/c877bcd43f099cd0196738f714544e355477f3fd/EuroSAT.zip", download_root=self._base_folder, md5="c8fa014336c82ac7804f0398fcb19387", )