mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-30 21:09:58 +08:00
Fix pose centering flag for ARKitScenes dataparser (#1528)
This commit is contained in:
1 parent
258ee26983
commit
2eda6b4523
1 file changed
+1
-1
@@ -141,7 +141,7 @@ class ARKitScenes(DataParser):
|
|||||||
poses = torch.from_numpy(np.stack(poses).astype(np.float32))
|
poses = torch.from_numpy(np.stack(poses).astype(np.float32))
|
||||||
intrinsics = torch.from_numpy(np.stack(intrinsics).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)
|
poses[:, :3, 3] -= poses[:, :3, 3].mean(dim=0)
|
||||||
|
|
||||||
if self.config.scale_poses:
|
if self.config.scale_poses:
|
||||||
|
|||||||
Reference in new issue
Block a user