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

Fix SH #3010

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix SH #3010

wants to merge 1 commit into from

Conversation

jkulhanek
Copy link
Contributor

I think there is a bug in the SH pytorch impl. This PR should fix it. Please take a look to see if it's correct. I took the correct implementation from ingp.

@jkulhanek jkulhanek requested review from brentyi and removed request for brentyi March 20, 2024 14:07
@jb-ye
Copy link
Collaborator

jb-ye commented Mar 20, 2024

Just to cite Inria gaussian splatting's implenentation: https://github.com/graphdeco-inria/gaussian-splatting/blob/main/utils/sh_utils.py

@jkulhanek
Copy link
Contributor Author

Inria’s impl us also correct. The ingp’s one, however, supports more degrees.

@@ -31,7 +31,8 @@ def test_sh_renderer():
levels = 4
num_samples = 10

sh = torch.ones((3, num_samples, 3 * levels**2))
sh = torch.zeros((3, num_samples, 3 * levels**2))
sh[..., 0] = 3.6
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this for? maybe add a comment

@jb-ye
Copy link
Collaborator

jb-ye commented Apr 19, 2024

Just want to revisit this topic: Shall we remove SH evaluation in nerfstudio, and use the one from gsplat library? So it minimize our maintenance effort. @kerrj

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.

None yet

3 participants