Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Potential bug] Regardless of the input, pyopengv.relative_pose_sixpt( ) returns NAN. #123

Open
irtizaimmersal opened this issue May 24, 2024 · 0 comments

Comments

@irtizaimmersal
Copy link

@laurentkneip @paulinus @simogasp

I am running a small test for pyopengv.relative_pose_sixpt( ). Tried multiple inputs, it appears it always return NAN and as a last entry I get identity.

d = RelativePoseDataset(10, 0.0, 0.0)
 indices = np.random.choice(d.bearing_vectors1.shape[0], 6, replace=False)
 sixpt_rotations = pyopengv.relative_pose_sixpt(
        d.bearing_vectors1[indices],
        d.bearing_vectors2[indices],
    )
    print("relative_pose_sixpt", sixpt_rotations)

I get all arrays as NAN except for last, see below.

 ...
 ...
  array([[nan, nan, nan],
       [nan, nan, nan],
       [nan, nan, nan]]), array([[nan, nan, nan],
       [nan, nan, nan],
       [nan, nan, nan]]), array([[nan, nan, nan],
       [nan, nan, nan],
       [nan, nan, nan]]), array([[1., 0., 0.],
       [0., 1., 0.],
       [0., 0., 1.]])]

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant