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
demo.py does not working #28
Comments
You said you only have 1 GPU? That's just the conflicts between multi-gpu model with single-gpu model. could you change the config in config/super_resolution.yaml as ngpu: 1 and try again |
thank you, @JasonBoy1 ! I set it to be one. And it still has errors!
|
ok, I solved the problem by the next code in the interfaces/base.py:
so, I changed it to be:
|
really thanku,i have the same problem and solved now by your code,good for u |
I try to run demo.py after several epochs of training, and I have the following error:
lib/python3.7/site-packages/torch/nn/modules/module.py", line 1045, in load_state_dict self.__class__.__name__, "\n\t".join(error_msgs))) RuntimeError: Error(s) in loading state_dict for DataParallel: Missing key(s) in state_dict:
any ideas what is it?
The text was updated successfully, but these errors were encountered: