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

Whether it is right about KL_loss #60

Open
yangzhikai opened this issue May 20, 2019 · 1 comment
Open

Whether it is right about KL_loss #60

yangzhikai opened this issue May 20, 2019 · 1 comment

Comments

@yangzhikai
Copy link

I find the calculation of KL-loss is different from VAE.
Because:
latent_loss = 0.5 * tf.reduce_sum( tf.square(z_mean) + tf.square(z_stddev)
                      - tf.log(tf.square(z_stddev)) - 1, 1 )
I think the "self.mu.pow(2) " of line-154 in bicycle_gan_model.py should be "self.mu.pow(-2)".

@junyanz
Copy link
Owner

junyanz commented May 21, 2019

@pathak22 I think it should be pow(2) according to Equation (10) in the VAE paper.

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

2 participants