Skip to content

Commit

Permalink
Update differentiable_renderer_tensorflow.py
Browse files Browse the repository at this point in the history
  • Loading branch information
martin de la gorce committed Jul 15, 2023
1 parent d8b3187 commit e8ea471
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deodr/tensorflow/differentiable_renderer_tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ def forward(
scene.scene_2d.colors = np.array(colors)

scene.scene_2d.depths = np.array(scene.scene_2d.depths)
differentiable_renderer_cython.renderSceneCpp(scene.scene_2d, 1, image, z_buffer)
differentiable_renderer_cython.renderSceneCpp(
scene.scene_2d, 1, image, z_buffer
)

def backward(image_b: tf.Tensor) -> Tuple[tf.Tensor, tf.Tensor]:
assert scene.scene_2d.colors is not None
Expand Down

0 comments on commit e8ea471

Please sign in to comment.