Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificate issue #151

Open
lbrianza opened this issue Mar 9, 2023 · 4 comments
Open

Certificate issue #151

lbrianza opened this issue Mar 9, 2023 · 4 comments

Comments

@lbrianza
Copy link

lbrianza commented Mar 9, 2023

Hi all,

When I try to run the code, I get the following error:

Downloading: "http://data.lip6.fr/cadene/pretrainedmodels/inceptionresnetv2-520b38e4.pth" to /home/huangpan1/.cache/torch/hub/checkpoints/inceptionresnetv2-520b38e4.pth ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)

I tried the solutions mentioned in #143 and #147 , but none of them work - in fact if I try manually the wget with the flag --no-check-certificate, I still get the error:

WARNING: cannot verify data.lip6.fr's certificate, issued by ‘emailAddress=support@fortinet.com,CN=Fortinet Untrusted CA,OU=Certificate Authority,O=Fortinet,L=Sunnyvale,ST=California,C=US’: Self-signed certificate encountered. HTTP request sent, awaiting response... 403 Forbidden 2023-03-09 12:59:08 ERROR 403: Forbidden.

Could someone please provide a solution, or otherwise upload the .pth file somewhere else? Without that, the code is unusable. Thank you

@xlnn
Copy link

xlnn commented Mar 30, 2023

http://data.lip6.fr/cadene/pretrainedmodels/inceptionresnetv2-520b38e4.pth
You can download it by google browser!

@kuokuoegg
Copy link

There is a simple way, ban the ssl certificate, you can choose it.In your error class, add following code:
import ssl
ssl._create_default_https_context = ssl._create_unverified_context

@sohampadhye007
Copy link

There is a simple way, ban the ssl certificate, you can choose it.In your error class, add following code: import ssl ssl._create_default_https_context = ssl._create_unverified_context

where is error class?
Can you please elaborate

@camilleg
Copy link

The "error class" is the last thing in python's traceback that is in this repo's code, which is models/fpn_inception.py.
At the top of that, add those two lines:

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants