diff --git a/pytorch3d/io/ply_io.py b/pytorch3d/io/ply_io.py index d7070ab8..a1885915 100644 --- a/pytorch3d/io/ply_io.py +++ b/pytorch3d/io/ply_io.py @@ -839,8 +839,10 @@ def _get_verts_column_indices( color_scale = 1.0 / 255 return ( point_idxs, + # pyre-fixme[22]: The cast is redundant. None if None in color_idxs else cast(List[int], color_idxs), color_scale, + # pyre-fixme[22]: The cast is redundant. None if None in normal_idxs else cast(List[int], normal_idxs), ) diff --git a/pytorch3d/renderer/camera_conversions.py b/pytorch3d/renderer/camera_conversions.py index 663537a5..88c1426e 100644 --- a/pytorch3d/renderer/camera_conversions.py +++ b/pytorch3d/renderer/camera_conversions.py @@ -79,6 +79,7 @@ def _opencv_from_cameras_projection( scale = scale.expand(-1, 2) c0 = (image_size_wh - 1) / 2.0 + # pyre-fixme[29]: `Union[BoundMethod[typing.Callable(torch.Tensor.__neg__)[[Named... principal_point = -p0_pytorch3d * scale + c0 focal_length = focal_pytorch3d * scale