We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generator loss and Discriminator loss become nan after some epochs and cycle gan start to generate black images.
The text was updated successfully, but these errors were encountered:
Check your optimizer section, It may be related to set something wrong in optimizer.
Sorry, something went wrong.
i want to change the loss function by pixel wise loss , how i can do that please
self.g_loss_a2b = self.criterionGAN(self.DB_fake, tf.ones_like(self.DB_fake)) + self.L1_lambda * abs_criterion(self.real_A, self.fake_A_) + self.L1_lambda * abs_criterion(self.real_B, self.fake_B_) + self.Lg_lambda * gradloss_criterion(self.real_A, self.fake_B, self.weighted_seg_A) + self.Lg_lambda * gradloss_criterion(self.real_B, self.fake_A, self.weighted_seg_B) self.g_loss_b2a = self.criterionGAN(self.DA_fake, tf.ones_like(self.DA_fake)) + self.L1_lambda * abs_criterion(self.real_A, self.fake_A_) + self.L1_lambda * abs_criterion(self.real_B, self.fake_B_) + self.Lg_lambda * gradloss_criterion(self.real_A, self.fake_B, self.weighted_seg_A) + self.Lg_lambda * gradloss_criterion(self.real_B, self.fake_A, self.weighted_seg_B)
can any one explain this loss function and what \ indicates in code
No branches or pull requests
Generator loss and Discriminator loss become nan after some epochs and cycle gan start to generate black images.
The text was updated successfully, but these errors were encountered: