You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
synth_img_a=g_synthesis(dlatent_a)
andsynth_img_a= (synth_img_a + 1.0) / 2.0
below toloss_1.backward()
.optimizer.zero_grad()
after loss1 optimizer step.The text was updated successfully, but these errors were encountered: