hello，when I use
model = models.inception_v3(aux_logits=False)
It has error.
Traceback (most recent call last):
File “F:/csdncollection/train.py”, line 49, in 
model = models.inception_v3(pretrained=True,aux_logits=False)
File “D:\Anaconda3\lib\site-packages\torchvision\models\inception.py”, line 31, in inception_v3
model.load_state_dict(model_zoo.load_url(model_urls[‘inception_v3_google’]))
File “D:\Anaconda3\lib\site-packages\torch\nn\modules\module.py”, line 777, in load_state_dict
self.class.name, “\n\t”.join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for Inception3:
Unexpected key(s) in state_dict: “AuxLogits.conv0.conv.weight”, “AuxLogits.conv0.bn.weight”, “AuxLogits.conv0.bn.bias”, “AuxLogits.conv0.bn.running_mean”, “AuxLogits.conv0.bn.running_var”, “AuxLogits.conv1.conv.weight”, “AuxLogits.conv1.bn.weight”, “AuxLogits.conv1.bn.bias”, “AuxLogits.conv1.bn.running_mean”, “AuxLogits.conv1.bn.running_var”, “AuxLogits.fc.weight”, “AuxLogits.fc.bias”.
when I use
model = models.inception_v3(pretrained=True,aux_logits=True)
this model can run,but it has another error.
Epoch 1/200Train loss: 1.629 Test loss: 1.306 Test accuracy: 0.620
Epoch 1/200Train loss: 1.686 Test loss: 1.883 Test accuracy: 0.377
Epoch 1/200Train loss: 1.320 Test loss: 1.058 Test accuracy: 0.611