Replies: 1 comment 4 replies
-
Hi @FMRobS I'm not quite sure this is possible, if I understood correctly. Fundamentally, this is a discrete & discontinuous problem. An infinitely small displacement of your camera viewpoint or of the points in your point cloud will not produce any changes in the coverage. The coverage is discrete and changes discontinuously, hence your gradient should always be 0. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Thank you for developing this wonderful tool.
I am trying to do something, that I believe should be possible with the reparametrized ray tracing.
Simply put, I want to compute gradients through a point to point visibility mask. Where the rays are starting from a single viewpoint and traced the an object point set.
I have the following snippet I want to make differentiable:
However it contains a few steps that break the AD, 'ray_test' and 'dr.count' are not AD compatible.
I would like to have both forward and backward AD.
For backward AD: gradient of coverage wrt position view_point
For forward AD: for each point the derivative of the visibility mask (what comes out of ray_test) wrt coordinates of view_point
For forward AD I have the following working:
Right now the gradients are still dependent on the hit length 't'.
Is there a better way of calculating the gradients (forward & backward) of a visibility mask?
Beta Was this translation helpful? Give feedback.
All reactions