Skip to content

Commit

Permalink
Fix #3417 (#3441)
Browse files Browse the repository at this point in the history
  • Loading branch information
jb-ye authored Sep 25, 2024
1 parent e6941ac commit 01d3f73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nerfstudio/cameras/camera_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,8 @@ def auto_orient_and_center_poses(
oriented_poses = transform @ poses

if oriented_poses.mean(dim=0)[2, 1] < 0:
oriented_poses[:, 1:3] = -1 * oriented_poses[:, 1:3]
oriented_poses[1:3, :] = -1 * oriented_poses[1:3, :]
transform[1:3, :] = -1 * transform[1:3, :]
elif method in ("up", "vertical"):
up = torch.mean(poses[:, :3, 1], dim=0)
up = up / torch.linalg.norm(up)
Expand Down

0 comments on commit 01d3f73

Please sign in to comment.