You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code above is a part of code in cocogan_trainer.py.
I think the all_ones = Variable(torch.ones((outputs_a.size(0))).cuda(self.gpu))
should be all_zeros = Variable(torch.zeros((outputs_a.size(0))).cuda(self.gpu))
Because it calculates the loss when the inputs of Discriminator are fakeA and fakeB.
Is my understanding right?
Do I misunderstand it?
The text was updated successfully, but these errors were encountered:
Intuitively, the goal of the generator is to deceive the discriminator. Hence, it needs to be updated in a way the discriminator will output ones for the generated images. Instead of optimizing the original GAN objective, the way it is implemented in the release leads to more stable training. This is a common way of implementing the GAN learning algorithm. You could check out Goodfellow et al.'s NIPS'14 paper to see the description.
The code above is a part of code in cocogan_trainer.py.
I think the
all_ones = Variable(torch.ones((outputs_a.size(0))).cuda(self.gpu))
should be
all_zeros = Variable(torch.zeros((outputs_a.size(0))).cuda(self.gpu))
Because it calculates the loss when the inputs of Discriminator are fakeA and fakeB.
Is my understanding right?
Do I misunderstand it?
The text was updated successfully, but these errors were encountered: