oppo-us-research / SpacetimeGaussians

[CVPR 2024] Spacetime Gaussian Feature Splatting for Real-Time Dynamic View Synthesis
https://oppo-us-research.github.io/SpacetimeGaussians-website/
Other
616 stars 45 forks source link

Export individual frames #24

Closed pablodawson closed 8 months ago

pablodawson commented 9 months ago

Hey, thanks for your great work!

I'm trying to export individual video frames from SpacetimeGaussians to the standard 3DGS format PLY (so it can be used with the og rasterizer). For now, I managed to export positions, rotations, and colors correctly. For example, I exported positions by applying your formula using the pc._motion of the current frame. However, scales seem to be wrong. Do you handle scales in a different way to 3DGS? Using scales_final = pc.computedscales seems to be wrong.

If this is a functionality you'd like to have I can PR it.

lizhan17 commented 9 months ago

for scales without activation, you can directly call pc._scaling

the computed scales is after activation pc.computedscales = torch.exp(pc._scaling)

pablodawson commented 8 months ago

thanks!