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

Loading pre-train model #2

Closed
currypurin opened this issue Aug 7, 2020 · 1 comment
Closed

Loading pre-train model #2

currypurin opened this issue Aug 7, 2020 · 1 comment

Comments

@currypurin
Copy link

Thanks for the great paper and for sharing the code.

Currently, the code does not seem to be able to load the pre-train model.
I modified model/network.py as follows and it generated successfully.

netG = UNetDictFace(64)

netG = UNetDictFace(64)
netG.load_state_dict(torch.load('./weights/latest_net_G.pth'))

thank you!

@csxmli2016
Copy link
Owner

Thanks for the great paper and for sharing the code.

Currently, the code does not seem to be able to load the pre-train model.
I modified model/network.py as follows and it generated successfully.

netG = UNetDictFace(64)

netG = UNetDictFace(64)
netG.load_state_dict(torch.load('./weights/latest_net_G.pth'))

thank you!

Hi, thanks for pointing out this problem. This is caused by the wrong url path. I have updated the folder structure in Readme. Please refer to it for better understanding.

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