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

Visualizing Latent points before decoding? #76

Open
Javiergonb opened this issue Aug 12, 2024 · 2 comments
Open

Visualizing Latent points before decoding? #76

Javiergonb opened this issue Aug 12, 2024 · 2 comments

Comments

@Javiergonb
Copy link

Hi again @ZENGXH,

Is there a way to visualize the z_local tensor that is created when running the DDPM on the encoded h0?
When using the sample method of the LION model the output dict returns a z_local with (num_samples, 8192,1,1) dimensions. From my understanding this is the z_local after decoding? I am not sure how visualize in 3D the z_local that is created before the decoding, like how the show here:

image

How did you do it?

Thanks in advance!

@ZENGXH
Copy link
Collaborator

ZENGXH commented Aug 20, 2024

could you try to reshape it to z_reshape in (num_samples, 2048, 4,1,1) and then visualize z_reshape[:,:,:3] (the last channel is feature not xyz, so we dont plot it)? Let me know if it does not work

@Javiergonb
Copy link
Author

Yes this works. I was trying to do something similar with the VAE. I am getting h0 from the recont method in the VAE model. This part of the code:

https://github.com/nv-tlabs/LION/blob/333c5b4903098418a2aae897ff079bcf0adc3eae/models/vae_adain.py#L202C16-L202C99

I believe this is getting a 3d representation of h0 no?

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