qubvel-org / segmentation_models.pytorch

Semantic segmentation models with 500+ pretrained convolutional and transformer-based backbones.
https://smp.readthedocs.io/
MIT License
9.51k stars 1.66k forks source link

SSL: CERTIFICATE_VERIFY_FAILED #216

Closed tariqul-islam closed 2 years ago

tariqul-islam commented 4 years ago

Hi, When I was running the tutorial on cars segmentation (CamVid), I got the following error:

URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)>

Which is providing error while downloading the pre-trained network.

I could download the net manually using the browser (where it provided an error but I just bypassed it). and run the tutorial.

phamquiluan commented 4 years ago

same problem

DaniilBoiko commented 4 years ago

Same problem with all SE models. https://data.lip6.fr — from where all the SE pre-trained models in https://github.com/Cadene/pretrained-models.pytorch are downloaded from — has an expired certificate. As suggested @AlxZed (https://github.com/Cadene/pretrained-models.pytorch/issues/193) you can do this:

import ssl
ssl._create_default_https_context = ssl._create_unverified_context
github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 2 years ago

This issue was closed because it has been stalled for 7 days with no activity.

tommiekerssies commented 2 years ago

Same problem, this should be fixed

Progern commented 1 year ago

As of today this issue still persists for Xception and Inception at least.