diff --git a/pytorch3d/datasets/r2n2/utils.py b/pytorch3d/datasets/r2n2/utils.py index 0bb52ae1..a2e64850 100644 --- a/pytorch3d/datasets/r2n2/utils.py +++ b/pytorch3d/datasets/r2n2/utils.py @@ -458,6 +458,8 @@ class BlenderCamera(CamerasBase): # pragma: no cover def get_projection_transform(self, **kwargs) -> Transform3d: transform = Transform3d(device=self.device) + # pyre-fixme[29]: `Union[(self: TensorBase, dim0: int, dim1: int) -> Tensor, + # Tensor, Module]` is not a function. transform._matrix = self.K.transpose(1, 2).contiguous() return transform diff --git a/pytorch3d/ops/cameras_alignment.py b/pytorch3d/ops/cameras_alignment.py index b6575902..5986206f 100644 --- a/pytorch3d/ops/cameras_alignment.py +++ b/pytorch3d/ops/cameras_alignment.py @@ -181,6 +181,8 @@ def _align_camera_extrinsics( ``` """ # pyre-fixme[6]: For 1st argument expected `Tensor` but got `Union[Tensor, Module]`. + # pyre-fixme[29]: `Union[(self: TensorBase, dim0: int, dim1: int) -> Tensor, + # Tensor, Module]` is not a function. RRcov = torch.bmm(cameras_src.R, cameras_tgt.R.transpose(2, 1)).mean(0) U, _, V = torch.svd(RRcov) align_t_R = V @ U.t()