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 LSGAN #6

Open
zhangqianhui opened this issue Nov 25, 2017 · 1 comment
Open

About the loss function of LSGAN #6

zhangqianhui opened this issue Nov 25, 2017 · 1 comment

Comments

@zhangqianhui
Copy link

You code about the D_loss

d_adv_loss = self.compute_adv_loss(self.d_real, True, 0.5) + self.compute_adv_loss(self.d_fake, False, 0.5)

The official code of D_loss

 if type == 'lsgan': 
        G_loss = L2(fake_scores_out, 0)
        D_loss = L2(real_scores_out, 0) + L2(fake_scores_out, 1) * L2_fake_weight

The value of L2_fake__weight is 0.1.

So, Do you abserve it?

@github-pengge
Copy link
Owner

I didn't notice that. Thanks.

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

2 participants