diff --git a/docs/tutorials/camera_position_optimization_with_differentiable_rendering.ipynb b/docs/tutorials/camera_position_optimization_with_differentiable_rendering.ipynb index ee879db3..2c83027a 100644 --- a/docs/tutorials/camera_position_optimization_with_differentiable_rendering.ipynb +++ b/docs/tutorials/camera_position_optimization_with_differentiable_rendering.ipynb @@ -350,8 +350,8 @@ " self.device = meshes.device\n", " self.renderer = renderer\n", " \n", - " # Get the silhouette of the reference RGB image by finding all the non zero values. \n", - " image_ref = torch.from_numpy((image_ref[..., :3].max(-1) != 0).astype(np.float32))\n", + " # Get the silhouette of the reference RGB image by finding all non-white pixel values. \n", + " image_ref = torch.from_numpy((image_ref[..., :3].max(-1) != 1).astype(np.float32))\n", " self.register_buffer('image_ref', image_ref)\n", " \n", " # Create an optimizable parameter for the x, y, z position of the camera. \n",