From d824040adedef5cae2dd5e77b47e80b922b38081 Mon Sep 17 00:00:00 2001 From: Kevin Chen <79341521+kevinddchen@users.noreply.github.com> Date: Fri, 21 Oct 2022 16:39:02 -0700 Subject: [PATCH] Fix pose translation when orientation_method=none (#823) --- nerfstudio/cameras/camera_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nerfstudio/cameras/camera_utils.py b/nerfstudio/cameras/camera_utils.py index 35f6c1503..b0de30a9b 100644 --- a/nerfstudio/cameras/camera_utils.py +++ b/nerfstudio/cameras/camera_utils.py @@ -458,6 +458,6 @@ def auto_orient_and_center_poses( oriented_poses = transform @ poses elif method == "none": oriented_poses = poses - poses[:, 3, :3] -= translation + poses[:, :3, 3] -= translation return oriented_poses