Skip to content

Very Noisy Gradients with Respect to Latent Variables? #1215

Answered by njroussel
coult099 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 11 replies

Comment options

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

@coult099
Comment options

@coult099
Comment options

@coult099
Comment options

@njroussel
Comment options

Answer selected by coult099
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