melgan-neurips icon indicating copy to clipboard operation
melgan-neurips copied to clipboard

Why is D_fake calculated in "Train Generator" while D_real is calculated in "Train Discriminator"?

Open jdwang125 opened this issue 1 year ago • 0 comments

I believe that D_fake and D_real used in both loss_G and loss_feat should be calculated in the "Train Generator" code block. In the source code, D_fake is the result of netD with the latest parameter updates, while D_real is the result of netD with the previous parameter updates.

jdwang125 avatar Mar 27 '23 05:03 jdwang125