Commit 154ace4b authored by Christoph Lassner's avatar Christoph Lassner Committed by Facebook GitHub Bot
Browse files

Fix #501.

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
parent b24d89a2
......@@ -238,8 +238,9 @@ class _Render(torch.autograd.Function):
ctx.needs_input_grad[3]
or ctx.needs_input_grad[4]
or ctx.needs_input_grad[5]
or ctx.needs_input_grad[6],
ctx.needs_input_grad[13],
or ctx.needs_input_grad[6]
or ctx.needs_input_grad[7],
ctx.needs_input_grad[14],
None, # No debug information provided.
)
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment