Skip to content
New issue

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

net.load_state_dict(new_state_dict,False) #17

Open
henbucuoshanghai opened this issue Jun 7, 2021 · 1 comment
Open

net.load_state_dict(new_state_dict,False) #17

henbucuoshanghai opened this issue Jun 7, 2021 · 1 comment

Comments

@henbucuoshanghai
Copy link

size mismatch for Binar.Threshold_Module.0.weight: copying a param with shape torch.Size([256, 768, 3, 3]) from checkpoint, the shape in current model is torch.Size([256, 720, 3, 3]).

why?

@taohan10200
Copy link
Owner

I guess that you mismatch the model with the pre-trained parameters. We provide two models in IIM, VGG16-FPN (output 720 channels after the FPN layer) and HRNET (output 768 channels). Please check which model you are calling and which parameters you are using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants