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

getting 0 image matching correspondences for some image pair when giving whole video as consecutive image frames. #49

Open
Meda2997 opened this issue Aug 17, 2023 · 2 comments

Comments

@Meda2997
Copy link

Meda2997 commented Aug 17, 2023

Hello, It was a very helpful project. I am trying to get the camera pose from the image correspondences. but when i am giving the whole video as frames some of the frames are getting 0 or less 3 matches .

` extractor = SuperPoint(max_num_keypoints=2048)
matcher = LightGlue(features='superpoint')
feats0 = extractor.extract(image0)
feats1 = extractor.extract(image1)
matches01 = matcher({'image0': feats0, 'image1': feats1})
feats0, feats1, matches01 = [rbd(x) for x in [feats0, feats1, matches01]] # remove batch dimension

kpts0, kpts1, matches = feats0['keypoints'], feats1['keypoints'], matches01['matches']
m_kpts0, m_kpts1 = kpts0[matches[..., 0]], kpts1[matches[..., 1]]
return m_kpts0.cpu(),m_kpts1.cpu()

`

@sarlinpe
Copy link
Member

Thank you for reporting this issue. Can you please try out with the latest version of the repo, and, if the issue still occurs, share an example of input that reproduces it?

@chnclsr
Copy link

chnclsr commented Oct 7, 2023

matcher returns [] for last glue weight

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

3 participants