Closed TwiceMao closed 11 months ago
Hi @TwiceMao , could you be more specific about which part of the code you noticed this, and also provide some output?
Hi, Thanks for your query!
We don't explicitly calculate gradients for the camera pose using CUDA. Instead, we use Pytorch. The camera pose can be modeled as a rigid rotation and translation of the Gaussians themselves. This is what you would do internally in a CUDA implementation anyway.
Doing this in Pytorch enables us to directly compute gradients through auto-differentiation as opposed to deriving the Jacobians ourselves.
Nik-V9's answer is exactly what I need, thank you for your enthusiastic answer~
It appears that your diff-gaussian-rasterization-w-depth does not seem to return gradients with respect to camera poses during backpropagation. Is it something I overlooked, or is it intentional that you are not optimizing camera poses through gradients with respect to camera poses?