nerfstudio-project / nerfacc

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

Would 3D AABB affect the training? #234

Closed FlyCole closed 1 year ago

FlyCole commented 1 year ago

Hello,

I'm now trying to squeeze the 3D aabb bounding box used by NGPradianceField() and OccupancyGrid() generation, in order to eliminate the floaters. (I'm not so sure if that makes sense, but intuitively it does.) However, I found that if the bounding box is too tight for the object (for example double the volume of the tightest aabb), the training is just wrong, leading to either grayscale 2D rendering or darker 2D rendering, like the images below. But after I enlarge the 3D aabb to almost include the whole scene, everything goes well. May I ask if the 3D AABB really affects the training or if there should be some bugs within my code? Thank you! rgb_0000 obj1_rgb_test_63

liruilong940607 commented 1 year ago

The AABB definitely affects training but I would say what you get is reasonable.

I guess one way to debug this is to first make sure the AABB you are setting is a reasonable AABB that does contain the object you want to focus one. And then you can gradually adjust the AABB, starting with the one that can make everything work and see when it starts to make things fall part and investigate why.