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

thanks for yours ! There is a error for pytorch 0.4? #41

Closed
zhuyanshuo opened this issue Apr 29, 2018 · 1 comment
Closed

thanks for yours ! There is a error for pytorch 0.4? #41

zhuyanshuo opened this issue Apr 29, 2018 · 1 comment

Comments

@zhuyanshuo
Copy link

Traceback (most recent call last):
File "main.py", line 110, in
main(config)
File "main.py", line 49, in main
solver.test()
File "D:\pytorchdemo\StarGAN-master\solver.py", line 526, in test
self.restore_model(self.test_iters)
File "D:\pytorchdemo\StarGAN-master\solver.py", line 103, in restore_model
self.G.load_state_dict(torch.load(G_path, map_location=lambda storage, loc: storage))
File "C:\Program Files\Python35\lib\site-packages\torch\nn\modules\module.py", line 721, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for Generator:

@yunjey
Copy link
Owner

yunjey commented Apr 30, 2018

@zhuyanshuo Thank you for your report. The error has occurred because the pretrained models are saved in PyTorch 0.3. I fixed the error now. Please try it again.

@yunjey yunjey closed this as completed Apr 30, 2018
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