Open lbrianza opened 1 year ago
http://data.lip6.fr/cadene/pretrainedmodels/inceptionresnetv2-520b38e4.pth You can download it by google browser!
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
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
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
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