We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e2a551 commit ef2ab60Copy full SHA for ef2ab60
1 file changed
hloc/localize_sfm.py
@@ -58,6 +58,8 @@ def __init__(self, reconstruction, config=None):
58
def localize(self, points2D_all, points2D_idxs, points3D_id, query_camera):
59
points2D = points2D_all[points2D_idxs]
60
points3D = [self.reconstruction.points3D[j].xyz for j in points3D_id]
61
+ if points2D.shape[0] == 0:
62
+ return None
63
ret = pycolmap.estimate_and_refine_absolute_pose(
64
points2D,
65
points3D,
0 commit comments