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

Not Implementing IWAE? #1

Open
GloryyrolG opened this issue Jun 2, 2021 · 2 comments
Open

Not Implementing IWAE? #1

GloryyrolG opened this issue Jun 2, 2021 · 2 comments

Comments

@GloryyrolG
Copy link

Hi,

Thanks for your good work and repo. May I ask did you implement the exact IWAE as a tighter lower bound, in case I missed it?

See the reference:

[z,mu,logvar] = netE(x)

@XavierXiao
Copy link
Owner

We don't train the VAE by IWAE objective, we simply use the plain ELBO (or IWAE with k=1). We only compute the likelihood estimate by IWAE during test time.

@GloryyrolG
Copy link
Author

I see. Btw, should not we only max along the dim of samples z?

NLL_loss = -(torch.log(torch.mean(torch.exp(weights - weights.max())))+weights.max())

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