gsplat icon indicating copy to clipboard operation
gsplat copied to clipboard

numerical stability problem

Open wuzirui opened this issue 8 months ago • 12 comments

Hi! I've recently run into a numerical stability problem with the rasterization kernel as shown below: I call the rasterization kernel with the following command: image I've checked the inputs and all the tensors are guaranteed to be not nan, but when I tried to calculate the gradient of render_outputs or alpha over gaussian params (e.g. scales), nan values appear: image

Could you please give me some hints on which part of the code may be numerically unstable so I can come up with some walkaround, or where I shall start to fix the problem? Thanks a lot!

wuzirui avatar Jul 01 '24 10:07 wuzirui