EuroSAT: fix SSL certificate issues#8563
Merged
NicolasHug merged 4 commits intopytorch:mainfrom Aug 6, 2024
Merged
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/8563
Note: Links to docs will display an error until the docs builds have been completed. ❌ 7 New Failures, 2 Unrelated FailuresAs of commit e135137 with merge base c8c496d ( NEW FAILURES - The following jobs have failed:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
adamjstewart
commented
Jul 30, 2024
| 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", |
Contributor
Author
There was a problem hiding this comment.
Could use hf.co or main to make this URL shorter if you want. I don't plan on modifying this file, but the commit hash ensures that even if I do, the checksum still works.
NicolasHug
approved these changes
Aug 6, 2024
Member
NicolasHug
left a comment
There was a problem hiding this comment.
Thanks a lot @adamjstewart
Contributor
Author
|
Are the prototype datasets being abandoned? |
Member
|
Yes, pretty much (https://github.com/pytorch/vision/tree/main/torchvision/prototype/datasets). |
facebook-github-bot
pushed a commit
that referenced
this pull request
Aug 7, 2024
Differential Revision: D60903714 fbshipit-source-id: cddb425b64f5b813fc96827bd839f013e2afeea5 Co-authored-by: Nicolas Hug <contact@nicolas-hug.com> Co-authored-by: Nicolas Hug <nh.nicolas.hug@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When downloading the EuroSAT dataset, users encounter the following error message:
This leads a lot of users to dangerous StackOverflow suggestions to disable SSL verification entirely.
This PR switches the download URL to a stable mirror of the download on Hugging Face. This dataset was rehosted with permission from the original author of EuroSAT: phelber/EuroSAT#10. The zip file is unmodified and has the same MD5 and SHA256 checksums.
Also added a link to a data loader for the multispectral (MS) version of the dataset for any other remote sensing researchers who need it.