the function gan_d_loss(scores_real, scores_fake) in the losses.py, is that a mistake we set y_fake = torch.zeros_like(scores_fake) random.uniform(0, 0.3)? Because we always got zero there is no meaning for us to multiply a random number. Or this should be y_fake = torch.ones_like(scores_fake) random.uniform(0, 0.3)?
full code:
`
def gan_d_loss(scores_real, scores_fake):
@mingbocui
I think you're right, and that's a mistake in the code. To train a GAN you can use uniform random numbers between 0 and 0.3 as "Soft" False labels and etc (not sure how effective it would be).
the function gan_d_loss(scores_real, scores_fake) in the losses.py, is that a mistake we set y_fake = torch.zeros_like(scores_fake) random.uniform(0, 0.3)? Because we always got zero there is no meaning for us to multiply a random number. Or this should be y_fake = torch.ones_like(scores_fake) random.uniform(0, 0.3)? full code: ` def gan_d_loss(scores_real, scores_fake):
`