Load pretrained Imagenet models by pytorch
See original GitHub issueWhen I load a pretrained imagenet model by pytorch using a finetune task, an AssertionError: Checkpoint does not contain classy_state_dict
was raised. So I want to know, how to load a imagenet model to initialize the backbone of a class model?
Thank you.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Models and pre-trained weights — Torchvision main ... - PyTorch
TorchVision offers pre-trained weights for every provided architecture, using the PyTorch torch.hub . Instancing a pre-trained model will download its weights ...
Read more >Image Classification using Pre-trained Models in PyTorch
In this post, we will cover how we can use TorchVision module to load pre-trained models and carry out model inference to classify...
Read more >pretrained-models.pytorch - Model Zoo
To load a pretrained models from imagenet: model_name = 'nasnetalarge' # could be fbresnet152 or inceptionresnetv2 model = pretrainedmodels.
Read more >PyTorch Pretrained Model - Python Guides
PyTorch pretrained model load · A pretrained model is defined as a neural network model trained on a suitable dataset like AlexNet, ImageNet,...
Read more >PyTorch image classification with pre-trained networks
Specifying the pretrained=True flag instructs PyTorch to not only load the model architecture definition, but also download the pre-trained ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mannatsingh Yeah, I thought about this reason too, but I actually update classy_vision before running my code. But this error still happened, I will check out the version, no worry, I have loaded my trained models through other methods, thanks for ur reply.
Hello @mannatsingh, thanks for reacting so quickly to our request. Best, Simon