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

Error when running testing #14

Closed
BiaBibii opened this issue Feb 17, 2022 · 2 comments
Closed

Error when running testing #14

BiaBibii opened this issue Feb 17, 2022 · 2 comments

Comments

@BiaBibii
Copy link

I tried to run eval.sh and get this error, with both DTU and TNT:

RuntimeError: Error(s) in loading state_dict for AARMVSNet:
Missing key(s) in state_dict: "feature.init_conv.0.0.weight", "feature.init_conv.0.0.bias",.....
Unexpected key(s) in state_dict: "module.feature.init_conv.0.0.weight"...

When I trained, I changed the view_num from 7 to 2 and batch size to 1, because of memory and time (I'm running in colab).

@QT-Zhu
Copy link
Owner

QT-Zhu commented Feb 17, 2022

It is a common problem caused by DataParallel. Manually adding "module." to each key in the dict variable will be just fine.

@BiaBibii
Copy link
Author

Thanks a lot. It works.

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