mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 13:59:10 +08:00
Fix minor scannet bug. (#1555)
This commit is contained in:
1 parent
7b8999ac3d
commit
c0c714c831
1 file changed
+3
-3
@@ -82,9 +82,9 @@ class ScanNet(DataParser):
|
|||||||
K = np.loadtxt(self.config.data / "intrinsic" / "intrinsic_color.txt")
|
K = np.loadtxt(self.config.data / "intrinsic" / "intrinsic_color.txt")
|
||||||
for img, depth, pose in zip(img_dir_sorted, depth_dir_sorted, pose_dir_sorted):
|
for img, depth, pose in zip(img_dir_sorted, depth_dir_sorted, pose_dir_sorted):
|
||||||
pose = np.loadtxt(pose)
|
pose = np.loadtxt(pose)
|
||||||
frame_pose[0:3, 1:3] *= -1
|
pose[0:3, 1:3] *= -1
|
||||||
frame_pose = frame_pose[np.array([1, 0, 2, 3]), :]
|
pose = pose[np.array([1, 0, 2, 3]), :]
|
||||||
frame_pose[2, :] *= -1
|
pose[2, :] *= -1
|
||||||
|
|
||||||
# We cannot accept files directly, as some of the poses are invalid
|
# We cannot accept files directly, as some of the poses are invalid
|
||||||
if np.isinf(pose).any():
|
if np.isinf(pose).any():
|
||||||
|
|||||||
Reference in new issue
Block a user