WU-CVGL / BAD-NeRF

[CVPR 2023] 😈BAD-NeRF: Bundle Adjusted Deblur Neural Radiance Fields
https://wangpeng000.github.io/BAD-NeRF/
MIT License
185 stars 13 forks source link

about NAN in the gradients #10

Closed boxuLibrary closed 6 months ago

boxuLibrary commented 7 months ago

hi, it's a excellent work. However, when i run my own dataset with the code. There will be NAN in the backward gradient. I checked the gradient graph. I found that the reason is that the rotation interpolation algorithm results in NAN in the rotation part of the estimated variables. Do you know why this happened? Thank you very much.

LingzheZhao commented 7 months ago

Hi, you can first try lowering the pose_lrate. And if the dataset that you are using is not captured in LLFF style, you need to disable the NDC scene contraction option.

In case you missed it BTW, we had a similar discussion here in this issue: #9 .

If the problem still happens, please provide more details about your problem, e.g., used dataset and settings like pose_lrate so we can dig into the problem together.