Open iWangLin opened 5 years ago
I have the same problem with Resnet just like you, but I don't know how to solve this problem.
Hi,
You should save your model using the state dictionary: https://pytorch.org/tutorials/beginner/saving_loading_models.html
I used the pretrainedmodels.densent121 to trian my own dataset, but when I load the model I trianed, I get the error: 'DenseNet' object has no attribute 'logits', I wnant to know why?
import pretrainedmodels model_daibao = torch.load('densenet121_daibao_model_1')
`AttributeError Traceback (most recent call last)