Skip to content

Key error when loading pretrained MCC module #10

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

Open
thunguyenphuoc opened this issue Jan 19, 2022 · 1 comment
Open

Key error when loading pretrained MCC module #10

thunguyenphuoc opened this issue Jan 19, 2022 · 1 comment

Comments

@thunguyenphuoc
Copy link

I'm trying to run the prestrained module but get the error when I was trying to load the state_dict for the MCC_Module (mcc_module_iter_160000.pth). The error is as follows:

RuntimeError: Error(s) in loading state_dict for MCC_Module:
Unexpected key(s) in state_dict: "MCCN.h.weight", "MCCN.h.bias".

@XYkong-CS
Copy link
Collaborator

We have revised the code and you can solve the problem by updating "net.py".

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