KeKsBoTer / c3dgs

Compressed 3D Gaussian Splatting for Accelerated Novel View Synthesis
https://keksboter.github.io/c3dgs/
Other
270 stars 30 forks source link

Confused with the type of index #7

Closed moqiyinlun closed 4 months ago

moqiyinlun commented 4 months ago

Why the codebook size is 2**12 but in the paper you say you use a uint32 to store it? Maybe uint16 is enough

KeKsBoTer commented 4 months ago

The codebooks have a size of 2**12 per default. However, we also store the indices to the Gaussian and SH parameters, which we do not quantize (keep). Then uint16 is not enough anymore. In practice, the entropy encoding reduces everything to the required number of bits for storage.

This is something that can probably be improved, but I do not expect it to greatly improve the compression.

moqiyinlun commented 4 months ago

Oh I see, if you separate the cluster center of the attribute and the index of the attribute to store, you can use uint16 to store the index?

KeKsBoTer commented 4 months ago

Yes, that is correct.