Skip to content
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

Remove unnecessary suspend_grad #1452

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Remove unnecessary suspend_grad #1452

wants to merge 1 commit into from

Conversation

dvicini
Copy link
Member

@dvicini dvicini commented Jan 10, 2025

PRB suspends gradients on sample positions, ray and ray weight in the backward pass. I think this might be a leftover from the time we supported reparameterized PRB, where it was important to carefully detach the splatting position. Since the basic PRB integrator generally does not support differentiating sensor pose, I don't think this is needed anymore. Projective sampling anyway uses a separate base integrator class.

We came across this when trying to optimize a scale on the ray weight (e.g., an exposure parameter), which did not work due to this suspend_grad context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant