-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Hi @coult099 Your code looks fine. I do indeed think that the noise-level difference is also related to the magnitude of the actual derivative. Indirect diffuse light will barely see any change if you scale/move the red ball. However, I do thing that your gradients for scale and position are wrong. Are you using the |
Beta Was this translation helpful? Give feedback.
Hi @coult099
Your code looks fine.
I do indeed think that the noise-level difference is also related to the magnitude of the actual derivative. Indirect diffuse light will barely see any change if you scale/move the red ball.
However, I do thing that your gradients for scale and position are wrong. Are you using the
prb_projective
integator? Unless you're using a*_projective
integrator, you won't be accounting for the gradients that arise from changing visibility. (There's a small introduction on this topic in this tutorial.) You can double-check your forward gradients by comparing the to a "brute-force" finite-differences computation, similarly to what is done in this tutorial.