notebooks icon indicating copy to clipboard operation
notebooks copied to clipboard

SSLCertVerificationError from dataset download in image_classification notebook

Open robmarkcole opened this issue 2 years ago • 3 comments
trafficstars

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 avatar Feb 01 '23 16:02 robmarkcole

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 avatar Feb 01 '23 16:02 robmarkcole

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

robmarkcole avatar Feb 01 '23 17:02 robmarkcole

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

youyuanrsq avatar Apr 25 '23 03:04 youyuanrsq