-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make resetting the near_plane in NearFarCollider optional. #2465
Conversation
It is not always desired to reset the near plane to 0.0 during inference. Added an optional flag.
I'm curious why it was there in the first place. Could it be removed for good? @tancik |
I think it was there because otherwise the scene can get clipped when viewing it in the viewer. iirc this was an issue with the blender synthetic datasets awhile ago. |
I wonder if we can remove this for good... |
It seems like this would only matter if the camera gets super close to objects in the scene, how often do people do this? What situations would you want to keep the near plane the same as training? |
Well some methods do not even work when the near plane is zero. E.g. if the sampler is |
I think changing the near plane skews the sampling in nerf/mipnerf potentially decreasing the eval perf. |
I would vote for removing resetting to zero. I don’t think having the option here is useful. |
@brentyi, do you accept this PR? |
It looks good to me, I just tweaked the comment to add details on why we reset the clipping plane. I don't feel strongly, but I'd vote to keep the argument + current reset behavior. I agree that it'd likely hurt eval metrics when evaluation images are a similar distance to the object as the training images (as is the case in the synthetic datasets), but it would dramatically improve them if the evaluation images get much closer (not present in evaluation datasets, but IMO more useful in the real world). |
…o-project#2465) * Make resetting the near_plane in NearFarCollider optional. It is not always desired to reset the near plane to 0.0 during inference. Added an optional flag. * no need to change precision * Update scene_colliders.py --------- Co-authored-by: Brent Yi <yibrenth@gmail.com>
It is not always desired to reset the near plane to 0 during inference. Added an optional flag.