batsa003 / salgan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About G/D loss function

zicair opened this issue · comments

Thanks for you code, In Paper, the loss function of 'Generator' formulated as
image
And the loss function of 'Discriminator' formulated as
image
they both use BCE loss; I found out that you didn't do it that way,you used log(output) in 'Discriminator' and -log(output) in 'Generator' and I was confused about that! Can you explain it for me.Thanks a lot.

@zicair
hello!
Glad to find you following this code.
I want to know how does this train the model? How does it work in the first place? Can you answer my question?
Looking forward to your answer! thanks.