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

How to achieve the inverse transformation between latent z and input x with conditions in HCNAF method? #1

Open
MingyuanXu opened this issue Jul 19, 2021 · 0 comments

Comments

@MingyuanXu
Copy link

MingyuanXu commented Jul 19, 2021

Hi, I’m reading your paper of HCNAF and the source code of its Pytorch implementation, I have met a question. In the paper, it claims that HCNAF is an invertible flow-based model, which means we could simply get the inverse transformation from latent z to input x with conditions. I want to achieve this inverse transformation but I didn’t find the directly equation or implementation of the inverse transformation in HCNAF. Could you give me some advices?
I have found some clues in source code at line 167~169 of hcnaf_gaussians.py. It seems the transformation between input and output is as following:
output=W_norm×input+Bias
Then it is possible to get input with the following equations:
input=(output-Bias)/W_norm
But the calculations of input×W_norm is achieved with torch.matmul() functions in your implementations, which is not invertible for non-square matrix input. Is there any trick here?

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