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

why discriminator is designed like this?

Open YunLord opened this issue 6 years ago • 1 comments

 loss_D_real = criterion_GAN(pred_real, torch.ones_like(pred_real));i think this should be      loss_D_real = criterion_GAN(pred_real, torch.zeros_like(pred_real))

YunLord avatar Dec 18 '18 03:12 YunLord

Not sure why you think that. At least that is the usual way to train GANs, check out https://pytorch.org/tutorials/beginner/dcgan_faces_tutorial.html

FloCF avatar Mar 29 '19 13:03 FloCF