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
For anyone in the same boat, this will fix it:
state_dict = torch.load(f'{torch.hub.get_dir()}\checkpoints\xception-43020ad28.pth') state_dict['last_linear.weight'] = state_dict.pop('fc.weight') state_dict['last_linear.bias'] = state_dict.pop('fc.bias')
And you can save the "new" model under the same name so you don't have to do this more than once with:
torch.save(state_dict, f'{torch.hub.get_dir()}/checkpoints/xception-43020ad28.pth')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For anyone in the same boat, this will fix it:
And you can save the "new" model under the same name so you don't have to do this more than once with:
The text was updated successfully, but these errors were encountered: