We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
my code:
def get_se_resnet101(path_state_dict, device, vis_model=False): model = resnet_se.se_resnet101() if path_state_dict: pretrained_state_dict = torch.load(path_state_dict, map_location=torch.device('cpu')) model.load_state_dict(pretrained_state_dict, )
error:
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for ResNet: Missing key(s) in state_dict: "conv1.weight", "bn1.weight", "bn1.bias", "bn1.running_mean", "bn1.running_var", ...... Unexpected key(s) in state_dict: "epoch", "state_dict", "acc", "best_acc", "optimizer"
How to solve it? thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
my code:
error:
How to solve it? thanks
The text was updated successfully, but these errors were encountered: