nerfstudio-project / nerfacc

A General NeRF Acceleration Toolbox in PyTorch.
https://www.nerfacc.com/
Other
1.37k stars 113 forks source link

OccGridEstimator sampling() Is there a gradient? #226

Closed zsy950116 closed 1 year ago

zsy950116 commented 1 year ago

Hi, Thanks for your work! OccGridEstimator sampling() Can backpropagation be carried out? I use the 0.3 ray_marching function, but when the input is graded, the output gradient disappears. Do you have a solution?Thank you very much.

liruilong940607 commented 1 year ago

The sampling() (the old ray_marching()) function is simply not differentiable w.r.t the input.

What's the case that you would need this function to be differentiable?

zsy950116 commented 1 year ago

Yeah, but I found I could skip this step. But thank you for your answer