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

Question about add_densification_stats #47

Open
programath opened this issue Jun 4, 2024 · 1 comment
Open

Question about add_densification_stats #47

programath opened this issue Jun 4, 2024 · 1 comment

Comments

@programath
Copy link

I am quite confused that why does the code here use the last value of the last dimension of viewspace_point_tensor.grad to accumulate the absolute value of gradient, while the original gaussian splatting uses the first two value instead? I can't find the explanation from the equation (14) and (15) in the paper.

self.xyz_gradient_accum_abs[update_filter] += torch.norm(viewspace_point_tensor.grad[update_filter,2:], dim=-1, keepdim=True)

@niujinshuchong
Copy link
Member

Hi, the third dimension is the sum of the norm of individual pixel gradients (eq. 15 in the paper). You can check the Cuda code here https://github.com/autonomousvision/gaussian-opacity-fields/blob/main/submodules/diff-gaussian-rasterization/cuda_rasterizer/backward.cu#L931-L933 .

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