Skip to content

Densenet pretrained model download fails due to invalid URL #230

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

Open
a-sato-vs opened this issue Jan 27, 2025 · 1 comment · May be fixed by #231
Open

Densenet pretrained model download fails due to invalid URL #230

a-sato-vs opened this issue Jan 27, 2025 · 1 comment · May be fixed by #231

Comments

@a-sato-vs
Copy link

1. Description

When trying to download the pretrained weights for densenetXXX, the following error occurs:

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1129)

2. Cause

The file pretrainedmodels/models/torchvision_models.py contains the URLs used to download the pretrained weights for various models. However, the URLs for densenetXXX pretrained weights appear to be broken or invalid. This issue was reproduced with the latest version of pretrainedmodels (0.7.4).

3. Steps to Reproduce

Install the pretrainedmodels package (version 0.7.4).
Attempt to use a model such as densenet201 with pretrained='imagenet'.
Observe the error during weight download.

4. Suggested Fix

The URLs for densenetXXX weights should be updated to valid, working links. If the weights are no longer hosted, the documentation should mention this and provide alternative solutions.

Let me know if you need further details or additional debugging steps. Thanks for maintaining this package!

@Fzz123
Copy link

Fzz123 commented Jan 27, 2025 via email

@a-sato-vs a-sato-vs linked a pull request Jan 27, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants