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

_loss_g_masked_cond divided by batch_size #90

Open
kgu3 opened this issue Mar 1, 2019 · 0 comments
Open

_loss_g_masked_cond divided by batch_size #90

kgu3 opened this issue Mar 1, 2019 · 0 comments

Comments

@kgu3
Copy link

kgu3 commented Mar 1, 2019

Hi Albert,
Very nice job!!

I got a question about the loss for AU.
When computing the loss for Discriminator's AU regression head, you divided it by batch_size, as shown below:
self._loss_g_masked_cond = self._criterion_D_cond(d_fake_desired_img_masked_cond, self._desired_cond) / self._B * self._opt.lambda_D_cond

Just wondering is there any reason for that?

Thank you!

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