huggingface / notebooks

Notebooks using the Hugging Face libraries 🤗
Apache License 2.0
3.54k stars 1.49k forks source link

SSLCertVerificationError from dataset download in image_classification notebook #311

Open robmarkcole opened 1 year ago

robmarkcole commented 1 year ago

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)')))

robmarkcole commented 1 year ago

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

robmarkcole commented 1 year ago

Been pointed to https://github.com/phelber/EuroSAT/issues/10

youyuanrsq commented 1 year ago

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