-
Notifications
You must be signed in to change notification settings - Fork 63
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
depth grad, and add test #126
base: grad_depth
Are you sure you want to change the base?
Conversation
taichi_3d_gaussian_splatting/GaussianPointCloudRasterisation.py
Outdated
Show resolved
Hide resolved
taichi_3d_gaussian_splatting/GaussianPointCloudRasterisation.py
Outdated
Show resolved
Hide resolved
alpha_grad_from_depth = (T_i * (depth_i-d_pixel) + 1.0/(1.0-alpha) * \ | ||
(depth_w_i - acc_alpha_w_i* d_pixel)) / \ | ||
(org_accumulated_alpha+0.00001) * pixel_depth_grad | ||
alpha_grad_from_accumulated_alpha = (T_i- 1.0/(1.0-alpha) * acc_alpha_w_i) * _accumulated_alpha_grad |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please format your code. I haven't looked deep into your formula so I'm not sure if it is correct, but for implementation, it seems to be the same as your formula. Have you gotten it to converge on alpha in some more complex tests? e.g. as an extra loss?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formated the code, hopefully it's now easier to understand.
Have you gotten it to converge on alpha in some more complex tests? e.g. as an extra loss?
What do you mean as an "extra loss"? Do you mean train with RGB and depth loss together?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep
Test depth grad on xyz and alpha.
Note: I found the initialization of alpha is important:
Results: Optimize pts alpha only (red are all points, blue are points with high alpha,)
Results: Optimize pts coords only