mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-11 10:34:29 +08:00
Fix pose centering flag for ARKitScenes dataparser (#1528)
This commit is contained in:
parent
258ee26983
commit
2eda6b4523
@ -141,7 +141,7 @@ class ARKitScenes(DataParser):
|
||||
poses = torch.from_numpy(np.stack(poses).astype(np.float32))
|
||||
intrinsics = torch.from_numpy(np.stack(intrinsics).astype(np.float32))
|
||||
|
||||
if self.config.scale_poses:
|
||||
if self.config.center_poses:
|
||||
poses[:, :3, 3] -= poses[:, :3, 3].mean(dim=0)
|
||||
|
||||
if self.config.scale_poses:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user