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

Colors off #14

Open
ladzin opened this issue Dec 13, 2024 · 2 comments
Open

Colors off #14

ladzin opened this issue Dec 13, 2024 · 2 comments

Comments

@ladzin
Copy link

ladzin commented Dec 13, 2024

I'm exporting .ply files from my training scripts using the gsplat library ( https://docs.gsplat.studio/main/apis/rasterization.html ). The files load correctly e.g. in SuperSplat, but in GSOPs I'm seeing some strange differences in colors when rendered in Houdini. I tried disabling the "OpenColorIO" but that only made it worse. I'm optimizing just RGB colors (no SH), they're going through sigmoid activation -- not sure what format is GSOP assuming on input...

@david-rhodes
Copy link
Owner

@ladzin Do you have images for comparison? The base color is directly converted from the .ply file. Here is the VEX used to generate the base color (Cd) and Alpha, based on the original Inria implementation:

// https://github.com/graphdeco-inria/gaussian-splatting/blob/2eee0e26d2d5fd00ec462df47752223952f6bf4e/utils/sh_utils.py

float SH_C0 = 0.28209479177387814;
float r = 0.5 + SH_C0 * f@f_dc_0;
float g = 0.5 + SH_C0 * f@f_dc_1;
float b = 0.5 + SH_C0 * f@f_dc_2;
v@Cd = set(r, g, b);

float alpha = (1 / (1 + exp(-f@opacity)));
f@Alpha = alpha;

@david-rhodes
Copy link
Owner

@ladzin did you resolve this?

I had another thought: we don't yet support rotation of models (it breaks the view dependent colors/spherical harmonics). Any chance you transformed your model?

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

2 participants