nerfstudio-project / nerfstudio

A collaboration friendly studio for NeRFs
https://docs.nerf.studio
Apache License 2.0
9.55k stars 1.3k forks source link

convert gauusian splatting .pt to .ply or .splat #3390

Open NIZAHO opened 2 months ago

NIZAHO commented 2 months ago

Is there a way in nerfstudio to convert .pt files generated in the gsplat library to .ply or .splat?

alancneves commented 2 months ago

Are you talking about the export feature? Using ns-export, you can generate a .ply splat file to be opened on external viewers, such as PlayCanvas.

Just do:

ns-export gaussian-splat --load-config <config_file> --output-dir <output_dir>

where _configfile is your YML file obtained through the training and _outputdir is the directory where to put the splat.

naga-k commented 1 month ago

@alancneves How do i export .splat? Would be useful for the WebGL Viewer

alancneves commented 1 month ago

@alancneves How do i export .splat? Would be useful for the WebGL Viewer

Given the .ply file, use the converter from https://github.com/antimatter15/splat!