Skip to content

Add LoMa - #63

Merged
alexstoken merged 3 commits into
gmberton:mainfrom
davnords:main
Apr 20, 2026
Merged

alexstoken merged 3 commits into
gmberton:mainfrom
davnords:main

Conversation

@davnords

Copy link
Copy Markdown
Contributor

Attempt to add the LoMa matcher from LoMa: Local Feature Matching Revisited.

/ David

@Parskatt

Copy link
Copy Markdown

@gmberton are you using 0.5 or 0.0 topleft pixel center? Now no tyro import btw

@gmberton

Copy link
Copy Markdown
Owner

Thank you both! We try to touch the models as little as possible so each method uses a different convention. I'll merge in a few days

@hqtang-git hqtang-git left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice job!

@alexstoken

Copy link
Copy Markdown
Collaborator

@Parskatt I think you ask bc of this rescaling, to_px_coords()?

And if a different convention, then there will be slight differences in kpt locations. So to answer the question, 0.0 top left px center.

I think you usually use 0.5, right? in which case, we might want to adjust the kpts or add a brach to the function to do top left 0.5.

@alexstoken

alexstoken commented Apr 15, 2026 •

Copy link
Copy Markdown
Collaborator

@davnords looking good! do you want to merge now and add do a separate PR for LoMa-R, or update this PR with LoMA-R? My slight preference would be to update this one but would be happy either way.

If updating this one, be sure to update the submodule to point to the latest commit of LoMa which has the -R model.

thanks for adding this! really excited about this work.

@Parskatt

Copy link
Copy Markdown

Yep, we use COLMAP convention. Easiest I guess is to subtract 0.5.

@alexstoken

Copy link
Copy Markdown
Collaborator

Ok, lets add that subtraction in the PR here and I'll put in another MR shortly that adds an option for convention in the to_px_coords() fn, which will fix the error in other matchers (mostly your awesome contributions ;) ).

That'll be a bit more of a chore bc will need to review which matchers use which convention so should be done separate from this.

@davnords

Copy link
Copy Markdown
Contributor Author

@alexstoken thanks for your interest in our work, glad it can be of use. Hold off on merging, I'll update this one with LoMa-R and make sure to also point the submodule to the latest commit.

@davnords

Copy link
Copy Markdown
Contributor Author

@alexstoken I'll also subtract the 0.5

@alexstoken

Copy link
Copy Markdown
Collaborator

thanks for both! @davnords

@davnords

davnords commented Apr 15, 2026 •

Copy link
Copy Markdown
Contributor Author

Updated the PR with the above requested changes.

Note

When running vismatch_match.py, I get this warning:

!!! HF repo 'vismatch/loma' not found: 404 Client Error. (Request ID: Root=1-69dfe6b8-2e025d8323d3b06354287105;676711ad-0bae-4386-9c78-0e877e16e071)

However, the weights are not loaded from HF but instead auto-installed from a GitHub release. I thus ignored it.

@alexstoken

alexstoken commented Apr 16, 2026 •

Copy link
Copy Markdown
Collaborator

Thank you! That warning is because we use HF "dummy" downloads to track model use stats .

I'll add the bits for model tracking tomorrow, then we'll be ready to merge.

@alexstoken
alexstoken merged commit 6aa83d6 into gmberton:main Apr 20, 2026
@jo-chemla jo-chemla mentioned this pull request Apr 21, 2026
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

Successfully merging this pull request may close these issues.

5 participants