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

Minor fix in facial_exchange.py #7

Open
Hramchenko opened this issue Dec 13, 2020 · 0 comments
Open

Minor fix in facial_exchange.py #7

Hramchenko opened this issue Dec 13, 2020 · 0 comments

Comments

@Hramchenko
Copy link

Hello. Thank you for a cool work! With latest pytorch I have a message on running facial_exchange.py about variable modification at style_loss optimization backward (line 95).

May be codes need minor fix:

  • move synth_img_a=g_synthesis(dlatent_a) and synth_img_a= (synth_img_a + 1.0) / 2.0 below to loss_1.backward().
  • Also maybe code requires optimizer.zero_grad() after loss1 optimizer step.
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

1 participant