Skip to content
Discussion options

You must be logged in to vote

Hi @zichenwang01

I think this just basic Python at play After the p = p - 1e-2 * dr.grad(loss) the p variable in the body no longer matches the p in the integrator sdf_integrator. You're then trying to backward_to(p) which is the p defined in the loop body and not the integrator and is therefore completely detached from the loss computation (this will obviously give a 0 gradient) .
This is hard to write out clearly, I hope it was clear. Your issue should be solved by doing something like sdf_integrator.p = p.

Without a full minimal reproducer I can't tell for sure.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@njroussel
Comment options

@zichenwang01
Comment options

@njroussel
Comment options

Answer selected by zichenwang01
@zichenwang01
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants