Closed KewJieLong closed 5 years ago
Is this: https://github.com/nothinglo/Deep-Photo-Enhancer/issues/30#issuecomment-439091925 answer your question?
so in your code, u actually set real image as negative and fake image as positive for discriminator B while real image as positive and fake image as negative for discriminator A right?
Yes, I remember the setting in my code is that. Thanks.
is that any specific reason to do like that? in term of training performance?
No special reason. Just for my convenience.
ok, Thank you very much
i came across your work of Deep Photo Enhancer. it is truly amazing work. Currently i am trying to re-implement your work. The adversarial loss function in your Tensorflow training code is confusing to me. In your paper, you stated that Adversarial loss for discriminator is Ad = E[Dx(x)] - E[Dx(x')] + E[Dy(y)] - E[Dy(y')], However in your code, it is E[Dx(x) - D[Dx(x')] + E[Dy(y') - E[Dy(y)].
It that a mistake? or i misunderstood the objective function?
Same goes to Adversarial loss for generator. In your paper, it is E[Dx(x')] + E[Dy(y')]. but in code, it is E[Dx(x')] - E[Dy(y')].
Look forward to your reply. Thank you.