diff --git a/torchgeo/datasets/eurosat.py b/torchgeo/datasets/eurosat.py index 52dbbed90f2..726c780bb31 100644 --- a/torchgeo/datasets/eurosat.py +++ b/torchgeo/datasets/eurosat.py @@ -51,9 +51,7 @@ class EuroSAT(NonGeoClassificationDataset): * https://ieeexplore.ieee.org/document/8519248 """ - # TODO: Change to https after https://github.com/phelber/EuroSAT/issues/10 is - # resolved - url = "http://madm.dfki.de/files/sentinel/EuroSATallBands.zip" # 2.0 GB download + url = "https://huggingface.co/datasets/torchgeo/eurosat/resolve/main/EuroSATallBands.zip" # noqa: E501 filename = "EuroSATallBands.zip" md5 = "5ac12b3b2557aa56e1826e981e8e200e" @@ -106,8 +104,6 @@ class EuroSAT(NonGeoClassificationDataset): BAND_SETS = {"all": all_band_names, "rgb": rgb_bands} - # TODO: reset checksum to False after https://github.com/phelber/EuroSAT/issues/10 - # is resolved def __init__( self, root: str = "data", @@ -115,7 +111,7 @@ def __init__( bands: Sequence[str] = BAND_SETS["all"], transforms: Optional[Callable[[Dict[str, Tensor]], Dict[str, Tensor]]] = None, download: bool = False, - checksum: bool = True, + checksum: bool = False, ) -> None: """Initialize a new EuroSAT dataset instance.