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

Question about info["gaussian_ids"] in packed mode #450

Open
wooseokS opened this issue Oct 14, 2024 · 2 comments
Open

Question about info["gaussian_ids"] in packed mode #450

wooseokS opened this issue Oct 14, 2024 · 2 comments

Comments

@wooseokS
Copy link

wooseokS commented Oct 14, 2024

Hi, thanks for your hard works.

I'm confusing exactly what info["gaussian_ids"] means when packed=True.

I thought that a key "gaussian_ids" means the IDs of individual 3D Gaussians, so that we can easily access on the attributes of Gaussians.

But when I ran this code right after the step_post_backward process,

if step % 50 == 0:
    ids = info["gaussian_ids"]
    print(f"{step} : {ids.size()}")
    print(f"{step} : {self.splats['means'].size()}")

It appears that the two tensor's sizes are different.
(I expected ids.size(dim=0) == self.splats['means'].size(dim=0))

0 : torch.Size([24137])
0 : torch.Size([54275, 3])
50 : torch.Size([28588])
50 : torch.Size([54275, 3])
...

Could you explain me about what exactly the "gaussian_ids" means in packed mode?

I appreciate for your kindness.

@Metro1998
Copy link

Do use the batch_size rasterization? It may cause info['gaussian_ids'] < info['means2D'], as the former just records which gaussian primitives have been rasterized in all batch cameras.

@wooseokS
Copy link
Author

wooseokS commented Oct 17, 2024

Oh, I see. So info["gaussian_ids"] means the id of gaussians which will be rendered in the batch cameras. Is it right?

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