Skip to content
New issue

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

when training “the loss_d_real is negative value ” is OK? and why #114

Open
talengu opened this issue May 31, 2020 · 0 comments
Open

Comments

@talengu
Copy link

talengu commented May 31, 2020

The result is amazing! I have two questions about loss.

  1. But I have a question that the three loss below will influence each other?some positive some negative.

“self._loss_d_real + self._loss_d_cond + self._loss_d_fake”

  1. when I am training “loss_d_real is negative value” is right" and why
self._loss_d_real = self._compute_loss_D(d_real_img_prob, True) * self._opt.lambda_D_prob
def _compute_loss_D(self, estim, is_real):
        return -torch.mean(estim) if is_real else torch.mean(estim)

批注 2020-05-31 114808
image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant