Skip to content

Python bindings#34

Closed
skywolf829 wants to merge 8 commits intonianticlabs:mainfrom
skywolf829:main
Closed

Python bindings#34
skywolf829 wants to merge 8 commits intonianticlabs:mainfrom
skywolf829:main

Conversation

@skywolf829
Copy link
Collaborator

@skywolf829 skywolf829 commented May 26, 2025

Makes the repo pip-installable and adds some (mostly Claude generated) Python bindings for ply_to_spz and spz_to_ply to start so I could use this in my existing python code that writes out plys. A test PLY file is also added.

Tested in my personal repo with a pip install from git and used it after some gsplat training to convert the ply to spz in the end.

from spz import ply_to_spz
ply_to_spz("file.ply", "file.spz")

Can directly support writing from the gaussian buffers directly to SPZ without the PLY in the middle as a follow-up PR

Notes

#30 was required for my uv sync that included this new python spz package for it to be installed correctly. There was an error with the const expr not being const that #30 fixes.

takeru and others added 8 commits April 23, 2025 01:46
…emove duplicate implementation from source file.
…package structure with pip installability - Created pybind11 C++ bindings for PLY to SPZ conversion - Implemented ply_to_spz() function with coordinate system support - Enhanced C++ PLY loader to handle comment lines properly - Added comprehensive test suite (7 tests) - Added example usage script and documentation - Supports all coordinate systems: RDF, RUB, LUF, RUF, UNSPECIFIED - Achieves 12.43x compression ratio on sample data (25MB -> 2MB) - Compatible with standard PLY files including comment lines
Add Python bindings with ply_to_spz function - Added complete Python …
@crazyzyz
Copy link

I've tried what you did with python and now I'm wondering if it's possible to compress it even smaller, so far I've been looking at 10x, I don't know if you know SOGS, it can compress ply 15-20x. So I wondered if I could change what part of it, keeping the ply file format the same, but with better compression

@ProjitB ProjitB self-requested a review June 10, 2025 18:42
@skywolf829 skywolf829 closed this Jun 11, 2025
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

Successfully merging this pull request may close these issues.

3 participants