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

Using LoFTR keypoints ? #76

Open
tcourat opened this issue Oct 20, 2023 · 2 comments
Open

Using LoFTR keypoints ? #76

tcourat opened this issue Oct 20, 2023 · 2 comments

Comments

@tcourat
Copy link

tcourat commented Oct 20, 2023

Would it be possible to use lightglue in order to match keypoints obtained from LoFTR (or other semi-dense/dense matchers, not only sparse) ?

I know they already provided the matches and not only the detection, but there are still wrongly matched points in most cases and maybe LightGlue could filter them.

@Phil26AT
Copy link
Collaborator

Hey, we have never tried this but it might be possible. Given the keypoints from both images, You would need to interpolate descriptors from a dense descriptormap (e.g. the one from SuperPoint). Then you can run LightGlue. Please let me know how well this works, I am also curious :)

@tcourat
Copy link
Author

tcourat commented Nov 16, 2023

I have tried on a pair of images to interpolate the SP descriptors at LoFTR keypoint location. Seems to work decently
I adapted the demo notebook.

From SP+Lightglue :
sp2
sp1

From LoFTR + Lightglue (interpolation) :
loftr2
loftr1

Can be downloaded there :
demo_loftr_sp.zip

I guess re-training with LoFTR kpts would lead to even better results, but if we can use lightglue to filter the outliers from SPpoint its already a good thing (I noticed that loftr can often produce some wrong matches).

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

2 participants