Skip to content

Densenet pretrained model download fails due to invalid URL #230

@a-sato-vs

Description

@a-sato-vs

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions