notebooks
notebooks copied to clipboard
SSLCertVerificationError from dataset download in image_classification notebook
The cell on Google colab:
from datasets import load_dataset
# load a custom dataset from local/remote files or folders using the ImageFolder feature
# option 1: local/remote files (supporting the following formats: tar, gzip, zip, xz, rar, zstd)
dataset = load_dataset("imagefolder", data_files="https://madm.dfki.de/files/sentinel/EuroSAT.zip")
results in:
SSLError: HTTPSConnectionPool(host='madm.dfki.de', port=443): Max retries exceeded with url: /files/sentinel/EuroSAT.zip (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)')))
I got passed this by using:
dataset = load_dataset("nielsr/eurosat-demo")
However this dataset only has train split so cannot be used to complete the example
Been pointed to https://github.com/phelber/EuroSAT/issues/10
you can use this url to download the dataset: https://zenodo.org/record/7711810/files/EuroSAT_RGB.zip?download=1. mentioned in https://github.com/phelber/EuroSAT