[ Click to show commands ]
```bash
python demo.py --model gim_dkm
```
or
```bash
python demo.py --model gim_loftr
```
or
```bash
python demo.py --model gim_lightglue
```
The code will match a1.png and a2.png in the folder assets/demo,and output a1_a2_match.png and a1_a2_warp.png.
[ Click to show
a1.png
and
a2.png ]
[ Click to show
a1_a2_match.png ]
a1_a2_match.png is a visualization of the match between the two images
[ Click to show
a1_a2_warp.png ]
a1_a2_warp.png shows the effect of projecting image a2 onto image a1 using homography
There are more images in the assets/demo folder, you can try them out.
[ Click to show other images ]
π ZEB: Zero-shot Evaluation Benchmark
Create a folder named zeb.
Download zip archives containing the ZEB data from the URL, put it into the zeb folder and unzip zip archives.
Run the following commands
[ Click to show commands ]
The number **1** below represents the number of GPUs you want to use. If you want to use **2 GPUs**, change the number **1** to **2**.
```bash
sh TEST_GIM_DKM.sh 1
```
or
```bash
sh TEST_GIM_LOFTR.sh 1
```
or
```bash
sh TEST_GIM_LIGHTGLUE.sh 1
```
or
```bash
sh TEST_ROOT_SIFT.sh 1
```
Run the command python check.py to check if everything outputs "Good".
Run the command python analysis.py --dir dump/zeb --wid gim_dkm --version 100h --verbose to get result.
Paste the ZEB result to the Excel file named zeb.xlsx.
[ Click to show ZEB Result ]
> The data in this table comes from the **ZEB**: Zero-shot Evaluation Benchmark for Image Matching proposed in the paper. This benchmark consists of 12 public datasets that cover a variety of scenes, weather conditions, and camera models, corresponding to the 12 test sequences starting from GL3 in the table.
| |
If the paper and code from gim help your research, we kindly ask you to give a citation to our paper β€οΈ. Additionally, if you appreciate our work and find this repository useful, giving it a star βοΈ would be a wonderful way to support our work. Thank you very much.
@inproceedings{
xuelun2024gim,
title={GIM: Learning Generalizable Image Matcher From Internet Videos},
author={Xuelun Shen and Zhipeng Cai and Wei Yin and Matthias MΓΌller and Zijun Li and Kaixuan Wang and Xiaozhi Chen and Cheng Wang},
booktitle={The Twelfth International Conference on Learning Representations},
year={2024}
}
π Star History
License
This repository is under the MIT License. This content/model is provided here for research purposes only. Any use beyond this is your sole responsibility and subject to your securing the necessary rights for your purpose.