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

SSL: CERTIFICATE_VERIFY_FAILED error #875

Open
chahatsagarmain opened this issue May 16, 2024 · 1 comment
Open

SSL: CERTIFICATE_VERIFY_FAILED error #875

chahatsagarmain opened this issue May 16, 2024 · 1 comment

Comments

@chahatsagarmain
Copy link

model = smp.Unet( encoder_name="vgg19", # choose encoder, e.g. mobilenet_v2 or efficientnet-b7 encoder_weights="imagenet", # use imagenet pre-trained weights for encoder initialization in_channels=3, # model input channels (1 for gray-scale images, 3 for RGB, etc.) classes=1, activation='sigmoid' # model output channels (number of classes in your dataset) )

I am facing URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)>
error when trying to download a new model .

@remipIGN
Copy link

Same issue here. As a workaround, I downloaded the PTH file manually to torch cache directory (in my case, I needed senet154) :

wget --no-check-certificate https://data.lip6.fr/cadene/pretrainedmodels/senet154-c7b49a05.pth -O $HOME/.cache/torch/hub/checkpoints/senet154-c7b49a05.pth

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

2 participants