xiaowei-hu / CycleGAN-tensorflow

Tensorflow implementation for learning an image-to-image translation without input-output pairs. https://arxiv.org/pdf/1703.10593.pdf
715 stars 294 forks source link

Cycle gan g_loss and d_loss become nan after some epochs during training #32

Open Ayesha-Rafiq opened 6 years ago

Ayesha-Rafiq commented 6 years ago

Generator loss and Discriminator loss become nan after some epochs and cycle gan start to generate black images.

Auth0rM0rgan commented 6 years ago

Check your optimizer section, It may be related to set something wrong in optimizer.

hala3 commented 5 years ago

i want to change the loss function by pixel wise loss , how i can do that please

nagaswethar commented 5 years ago

self.g_loss_a2b = self.criterionGAN(self.DB_fake, tf.ones_like(self.DB_fake)) \

can any one explain this loss function and what \ indicates in code