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
loss_D_real = 0 if D_main: if self.d_loss == "logistic": loss_D_real = torch.nn.functional.softplus(-real_logits) # -log(sigmoid(real_logits)) elif self.d_loss == "hinge": loss_D_real = torch.clamp(1.0 - real_logits, min = 0) elif self.d_loss == "wgan": loss_D_real = -real_logits + tf.square(real_logits) * wgan_epsilon training_stats.report("Loss/D/loss", loss_D_gen + loss_D_real)
In line 142 of loss.py, it should be loss_D_real = -real_logits + torch.square(real_logits) * self.wgan_epsilon instead.
loss_D_real = -real_logits + torch.square(real_logits) * self.wgan_epsilon
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In line 142 of loss.py, it should be
loss_D_real = -real_logits + torch.square(real_logits) * self.wgan_epsilon
instead.The text was updated successfully, but these errors were encountered: