pretrained-models.pytorch
pretrained-models.pytorch copied to clipboard
Pretrained ConvNets for pytorch: NASNet, ResNeXt, ResNet, InceptionV4, InceptionResnetV2, Xception, DPN, etc.
For anyone in the same boat, this will fix it: ``` state_dict = torch.load(f'{torch.hub.get_dir()}\checkpoints\xception-43020ad28.pth') state_dict['last_linear.weight'] = state_dict.pop('fc.weight') state_dict['last_linear.bias'] = state_dict.pop('fc.bias') ``` And you can save the "new" model under the...
Solve the syntax warning in the next issue https://github.com/Cadene/pretrained-models.pytorch/issues/235
I get ``` site-packages/pretrainedmodels/models/dpn.py:255: SyntaxWarning: "is" with a literal. Did you mean "=="? if block_type is 'proj': ``` I get this warning in the following lines: 255, 258, 262 Is...
setuptools 78.0.1 starts emitting an error for this deprecated metatag. https://github.com/pypa/setuptools/issues/4910 Though after the outrage it is reverting back this blocking error, let's update this.
### What does this PR do? This PR fixes the issue with downloading pretrained weights for `densenetXXX` models. The URLs in `pretrainedmodels/models/torchvision_models.py` were outdated or invalid, causing SSL errors during...
## 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....