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

convert H3DGS model (.hier) to 3DGS legacy model (.ply) #87

Open
Yang-Xijie opened this issue Nov 6, 2024 · 4 comments
Open

convert H3DGS model (.hier) to 3DGS legacy model (.ply) #87

Yang-Xijie opened this issue Nov 6, 2024 · 4 comments

Comments

@Yang-Xijie
Copy link

As described in README,

The interface includes a field for tau (size limit) which defines the desired granularity setting. Note that tau = 0 will try to render the complete dataset (all leaf nodes).

Is it reasonable to export all the finest gaussians from the final result (.hier) and save them into a legacy 3DGS model (.ply)? Will there be any differences if I compare the rendering results of them (using H3DGS viewer and 3DGS viewer respectively)?

How to filter all leaf nodes by setting tau = 0 in Python code?

@Yang-Xijie
Copy link
Author

Yang-Xijie commented Nov 8, 2024

For a single chunk, gaussians in the point_cloud.ply are the leaves in the .hier file.
However, for a merged large scene with several chunks, since there is no such merged.ply, leaves can only be exported from the merged.hier file.

@ameuleman
Copy link
Collaborator

Hi,
Getting the indices of the Gaussians to render with a zero threshold should give you the leaves (see expand_to_size).
We can extract the relevant Gaussians from the indices: scene.gaussians._xyz = scene.gaussians._xyz[render_inds] (this has to run for all other 3D Gaussian parameters).
Then we should be able to save the leaves with save_ply.
Note that we have not tested this process and it will require a lot of GPU memory to load the full scene without hierarchy.

@ameuleman
Copy link
Collaborator

Also, the viewer has to support correct antialiasing (see #47). This is now available in 3DGS.

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