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

About the loss function of image discriminator in the paper #20

Open
Touyuki opened this issue Feb 23, 2021 · 0 comments
Open

About the loss function of image discriminator in the paper #20

Touyuki opened this issue Feb 23, 2021 · 0 comments

Comments

@Touyuki
Copy link

Touyuki commented Feb 23, 2021

I read the codes and found there are some differences between the codes and paper on the loss function of the image discriminator. Why the loss function of the D-image in the paper (Page 4)is expressed as:

LD-image=Lreal − Lfake-image − Lfake-layout + Lalt-appearance
where
Lreal= logDimage(t′, p′)
Lfake-image= log(1−Dimage(t′, p))
Lfake-layout= log(1−Dimage(t, p′))
Lalt-appearance= log(1−Dimage(t′′, p′))

In my opinion, according to the codes the loss function should be expressed as:

LD-image=Lreal + Lfake-image + Lfake-layout + Lalt-appearance
where
Lreal= logDimage(t′, p′)
Lfake-image= log(1−Dimage(t′, p))
Lfake-layout= log(1−Dimage(t, p′))
Lalt-appearance= logDimage(t′′, p′)

Maybe I am wrong. Can you tell me if somewhere I misunderstood?

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