-
Notifications
You must be signed in to change notification settings - Fork 377
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
2nd element of recon_loss? #3
Comments
Hi, @YongWookHa were you able to figure the logic behind the reconstruction loss in vae_keras_celeba.py?
|
Hello, @moha23. x_out = Subtract()([x_in, x_recon])
recon_loss = 0.5 * K.sum(K.mean(x_out**2, 0)) + 0.5 * np.log(2*np.pi) * np.prod(K.int_shape(x_out)[1:]) As I think, in So, I guess you would be able to get similar result without the latter code. Have a nice day. |
Thanks @YongWookHa! Yes that's the direction I was going too 👍 Wishing another fruitful year ahead :) |
Hello, I'm a student studying deep learning.
First of all, Your code is really helpful to learn about VAE.
Thank you very much.
I've got a question.
I'm curious about the reason that you put
log(2pi)
to the 2nd element recon_loss.Thank you for the answer in advance.
Have a good day.
The text was updated successfully, but these errors were encountered: