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

Pretrained network E #15

Open
jthsieh opened this issue Jan 24, 2018 · 3 comments
Open

Pretrained network E #15

jthsieh opened this issue Jan 24, 2018 · 3 comments

Comments

@jthsieh
Copy link

jthsieh commented Jan 24, 2018

Thank you so much for providing the code!
It's nice that you provide the label2city_1024p/latest_net_G.pth checkpoint. Can you also provide the checkpoint for netE? I would like to play around with the features. Thank you!

@tcwang0509
Copy link
Contributor

It can be found here: https://drive.google.com/file/d/1AV_2-ltcyER08yjhRaut1tbaMzfeQWfu/view?usp=sharing. We should also release the UI soon, once it gets approved.

@jthsieh
Copy link
Author

jthsieh commented Feb 8, 2018

Thank you so much! I just realized that since the latest_net_G you provided was trained without features, I can't use it with features. Do you also have a checkpoint for G trained with features? Thanks a lot!

@adynathos
Copy link

I would also be grateful for the pre-trained weights for netE and netG-with-features, that is the checkpoint for label2city_1024p_feat or label2city_512p_feat.


I tried the latest_net_E.pth provided in this thread, but it fails to load - I think it is for an older version of the architecture.
The file contains keys for model.28.weight and model.28.bias but that is now a ReflectionPad, and there are no weights for model.29.

...
(26): InstanceNorm2d(16, eps=1e-05, momentum=0.1, affine=False, track_running_stats=False)
(27): ReLU(inplace)
(28): ReflectionPad2d((3, 3, 3, 3))
(29): Conv2d(16, 3, kernel_size=(7, 7), stride=(1, 1))
(30): Tanh()

Keys in latest_net_E.pth:

...
model.26.running_mean
model.26.running_var
model.28.weight
model.28.bias

Also the latest_net_G.pth for label2city_1024p is of wrong shape for using features:

While copying the parameter named "model.1.weight", whose dimensions in the model are torch.Size([64, 39, 7, 7]) and whose dimensions in the checkpoint are torch.Size([64, 36, 7, 7]).


Thank you.

Best wishes,
Krzysztof Lis

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

3 participants