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

visualization #18

Open
wwj-53 opened this issue Jul 8, 2024 · 4 comments
Open

visualization #18

wwj-53 opened this issue Jul 8, 2024 · 4 comments

Comments

@wwj-53
Copy link

wwj-53 commented Jul 8, 2024

May I ask how to visualize the constructed 3D model?

@JackeyLee007
Copy link

I have the same question.

@telamon
Copy link

telamon commented Sep 7, 2024

grep -rwn . -e '.ply'

shows:

        if save_ply:
            points = self.gs_render.gaussians._xyz.detach().cpu().numpy()
            pcd_data = o3d.geometry.PointCloud()
            pcd_data.points = o3d.utility.Vector3dVector(points)
            pcd_data.colors = o3d.utility.Vector3dVector(np.ones_like(points))
            o3d.io.write_point_cloud(
                filename.replace('.png', '.ply'), pcd_data)

in cf3dgs_trainer.py and then there's the function called construct_point

I'm not quite sure when this is supposed to be invoked.
There's 3-4 more issues here on github asking the same question and were closed without a hint. :/

@Feng1909
Copy link

I add a command self.gs_render.gaussians.save_ply("point_cloud1.ply") after training codes just like the original gaussian splatting method, and using supersplat to visualize the .plyfile

@telamon
Copy link

telamon commented Sep 16, 2024

Appended line to run_cf3dgs.py:

    trainer.gs_render.gaussians.save_ply(f'{model_cfg.source_path}/output.ply') # assuming global 3dgs

then training with

python run_cf3dgs.py -s ./drg/ --mode train --data_type custom

The results are not quite what I expected, which parameters should I inspect?

Inputs
image

Output

image
image
image

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

4 participants