How fast can image matching be?
This repository aims to combine the fastest feature extraction and matching methods, i.e. XFeat and LightGlue, and evaluate their performance on laptop and service devices.
git clone https://github.com/LuoXubo/FastMatch.git
conda create -n fastmatch python=3.8 -y
conda activate fastmatch
pip install -r requirements.txt
See demo.ipynb
for a quick start.
- Test device: Ubuntu 20.04, RTX 3090 Ti
- Test image size: 800x600
Method | Feature Extraction | Matching | Total Time |
---|---|---|---|
SP + LG | 0.06s | 0.02s | 0.08s |
Efficient LoFTR | - | - | 0.063s |
XFeat + mnn (sparse) | 0.016s | 0.0007s | 0.0167s |
XFeat + mnn (semi-dense) | 0.17s | 0.007 | 0.177s |
- Test device: Ubuntu 20.04, RTX 3090 Ti
- Test video size: 1280x720, 30fps, shot by iPhone 13
- Test video length: 12s
XFeat + mnn
SuperPoint + LightGlue
Efficient LoFTR
Usage:
python video_matching.py --ref=assets/groot/groot.jpg --tgt=assets/groot/groot.mp4 --method=sp+lg --save_path=assets/groot/groot_sp+lg.mp4
This project is licensed under the MIT License - see the LICENSE.md file for details.