Summary: Gradient calculation flags were not properly routed through the Python interface. This diff fixes this. In particular, gradients for focal length (only if no other camera gradients were calculated) and opacity were not calculated as required.

Reviewed By: gkioxari

Differential Revision: D25921202

fbshipit-source-id: 22cbae3bda886d81bb95878f0be45c2ddd29934c
This commit is contained in:
Christoph Lassner 2021-01-19 19:25:29 -08:00 committed by Facebook GitHub Bot
parent b24d89a283
commit 154ace4ba4

View File

@ -238,8 +238,9 @@ class _Render(torch.autograd.Function):
ctx.needs_input_grad[3] ctx.needs_input_grad[3]
or ctx.needs_input_grad[4] or ctx.needs_input_grad[4]
or ctx.needs_input_grad[5] or ctx.needs_input_grad[5]
or ctx.needs_input_grad[6], or ctx.needs_input_grad[6]
ctx.needs_input_grad[13], or ctx.needs_input_grad[7],
ctx.needs_input_grad[14],
None, # No debug information provided. None, # No debug information provided.
) )
else: else: