Johan_pow:

Missing key(s) in state_dict: “fc.weight”, “fc.bias”, “classifier.fc1.weight”, “classifier.fc1.bias”, “classifier.fc2.weight”, “classifier.fc2.bias”. Unexpected key(s) in state_dict: “fc.fc1.weight”, “fc.fc1.bias”, “fc.fc2.weight”, “fc.fc2.bias”.


It is saying that in the checkpoint you are missing fc.* and classifier.fc1.*. This can happen if you change the source code after you saved your checkpoint.
It looks, from the unexpected keys, that you used to have fc to be a Module containing two nn.Linear layers, i.e fc.fc1 and fc.fc2. Now you have different source code, i.e. fc is a nn.Linear layer and classifier.fc1 is an nn.Linear layer.
Adjust your source code according to your checkpoint.