Fix pose centering flag for ARKitScenes dataparser (#1528)

This commit is contained in:
Georgy Ponimatkin authored and GitHub committed 2023-02-27 17:30:53 -08:00
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: