-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Call rescale_output_resolution before early return #2897
Conversation
Thank you for catching it! This condition can actually happen quite frequently when there's no gaussians in front (e.g., due to cropping + moving the camera away from the cropbox). The fix looks great, but I'm just wondering if we can remove duplicate code, by moving the camera rescaling logic (L745, and L763) before the radii check (L738): nerfstudio/nerfstudio/models/splatfacto.py Lines 737 to 747 in c5520fb
And we can change ... unless there's any dependence on the |
Thanks for catching the issue. Instead of adding this line to early return, could you move the line later to an earlier position: right after project_gaussian() call. We no longer need |
You can test your code by enabling |
lgtm |
…t#2897) * Call rescale_output_resolution before early return Co-authored-by: Chung Min Kim <[email protected]>
Hello 👋
While looking through the splatfacto implementation, I noticed that in the case of an early exit in the forward pass due to a zero radii sum the camera does not get rescaled back to its original dimensions. I think this might be a mistake? I haven't found a dataset where the condition occurs, but it seems correct to make sure the camera is rescaled back before returning.