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

EuroSAT: redistribute on Hugging Face #1072

Merged
merged 2 commits into from
Feb 1, 2023
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
8 changes: 2 additions & 6 deletions torchgeo/datasets/eurosat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -106,16 +104,14 @@ 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",
split: str = "train",
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.

Expand Down