ethz-asl / hfnet

From Coarse to Fine: Robust Hierarchical Localization at Large Scale with HF-Net (https://arxiv.org/abs/1812.03506)
MIT License
776 stars 185 forks source link

Using matching method in hfnet to replace 2d-2d matching in colmap #37

Closed tiger20 closed 4 years ago

tiger20 commented 4 years ago

I noticed that the matching method used in hfnet is quite efficient, it pile up the descriptors of several retrieval images into a big matrix and then match with the query descriptor matrix.after that it apply low ratio test to select valid matches. In this way, multiple database images can match with the query image in the same time.However , in colmap, when we use colmap sequential_mathcer, it only match one image pair at a time, which is slow compared to the matching method in hfnet.Is there any way to accelerate the matcher in colmap like the way hfnet did?

sarlinpe commented 4 years ago

As far as i know COLMAP does support batched descriptor matching on GPU. Maybe you are referring to our reconstruction code, which I admit is not the most efficient. I plan to release a new codebase to do all of this in a much simpler and smoother way, stay tuned.

sarlinpe commented 4 years ago

If you're looking for a fast codebase for SfM reconstruction with SuperPoint/SuperGlue, check out my new hloc toolbox: https://github.com/cvg/Hierarchical-Localization