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

Can I get a matching distances?? #53

Open
HyeokJaeKiM opened this issue Aug 22, 2023 · 1 comment
Open

Can I get a matching distances?? #53

HyeokJaeKiM opened this issue Aug 22, 2023 · 1 comment

Comments

@HyeokJaeKiM
Copy link

I want to know about each matching points'matching accuracy so I have to make use of matching distances
but there are errors that there are no matching distances in 'matches01'

so could you know how to solve it?

@alexandrukis
Copy link

The matcher returns a dict with multiple keys, including matches0, matches, and scores. You can fetch the scores from there:

matcher = LightGlue(...).eval().cuda()

match_data = rbd(matcher({"image0": features_1, "image1": features_2}))
matches, scores = match_data["matches"], match_data["scores"]

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