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

Foreground extract #77

Open
Kairui-SHI opened this issue Aug 17, 2024 · 2 comments
Open

Foreground extract #77

Kairui-SHI opened this issue Aug 17, 2024 · 2 comments

Comments

@Kairui-SHI
Copy link

Kairui-SHI commented Aug 17, 2024

Hi, thanks for your great work. I noticed that you recommend below to set a bbox to select gs points to save. May I ask can I use some method like near plane far plane if I have depth images to extract foreground? How should I set the params or I need to write one?

"Otherwise if you only want to extract the mesh for the foreground region, you can define a bbox for the object and only use the gaussian within the bbox for mesh extraction by changing the code here https://github.com/autonomousvision/gaussian-opacity-fields/blob/main/scene/gaussian_model.py#L379-L384."
Originally posted by @niujinshuchong in #37 (comment)

@niujinshuchong
Copy link
Member

Hi, currently the near-plane is hard coded in the cuda code https://github.com/autonomousvision/gaussian-opacity-fields/blob/main/submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h#L27. I think you could try to project all the gaussian centers to the cameras and only the gaussian with the near and far plane when you generate the tetrahedal grids. You can change the code here: https://github.com/autonomousvision/gaussian-opacity-fields/blob/main/scene/gaussian_model.py#L392-L397

@Kairui-SHI
Copy link
Author

I see. That's true one method to extract mesh use near-far plane. Now always we need to use w2c to project all gs points to one camera view. Thanks for your help!

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