pretrained-models.pytorch icon indicating copy to clipboard operation
pretrained-models.pytorch copied to clipboard

Densenet pretrained model download fails due to invalid URL

Open a-sato-vs opened this issue 10 months ago • 1 comments

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!

a-sato-vs avatar Jan 27 '25 03:01 a-sato-vs