From e51ebc2426b1ace1fff30b9fa64d36bd2a884e68 Mon Sep 17 00:00:00 2001 From: Ploruto <64019503+Ploruto@users.noreply.github.com> Date: Mon, 5 Dec 2022 16:37:07 +0100 Subject: [PATCH] Allowing wget to download with invalid SSL certificate. The SSL certificate of 'https://lab.osai.ai/' is not valid any more. This allows us to download the files anyway. So this will make the download work again. --- prepare_dataset/download_dataset.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prepare_dataset/download_dataset.py b/prepare_dataset/download_dataset.py index 70ce01b..8d60e26 100644 --- a/prepare_dataset/download_dataset.py +++ b/prepare_dataset/download_dataset.py @@ -1,6 +1,9 @@ import os import wget +# The SSL certificate of 'https://lab.osai.ai/' is not valid any more. This allows us to download the files anyway. +import ssl +ssl._create_default_https_context = ssl._create_unverified_context def make_folder(folder_path):