PyTorch-progressive_growing_of_gans icon indicating copy to clipboard operation
PyTorch-progressive_growing_of_gans copied to clipboard

About the loss function of LSGAN

Open zhangqianhui opened this issue 8 years ago • 1 comments

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?

zhangqianhui avatar Nov 25 '17 03:11 zhangqianhui

I didn't notice that. Thanks.

github-pengge avatar Nov 25 '17 03:11 github-pengge