Skip to content

Commit 037f906

Browse files
committed
update gif
1 parent e7d2eb8 commit 037f906

File tree

6 files changed

+26
-2
lines changed

6 files changed

+26
-2
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,18 @@ See `demo.ipynb` for a quick start.
6161
- Test video size: 1280x720, 30fps, shot by iPhone 13
6262
- Test video length: 12s
6363

64+
XFeat + mnn
65+
6466
![video](assets/xfeat+mnn.gif)
6567

68+
SuperPoint + LightGlue
69+
6670
![video](assets/sp+lg.gif)
6771

72+
Efficient LoFTR
73+
74+
![video](assets/eloftr.gif)
75+
6876
**Usage:**
6977

7078
```bash

assets/eloftr.gif

16.8 MB
Loading

assets/sp+lg.gif

-121 KB
Loading

assets/xfeat+mnn.gif

70.1 KB
Loading

requirments.txt

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
torch>=1.11.0
22
torchvision>=0.12
33
numpy
4-
opencv-python
4+
opencv-python==4.10.0.84
5+
opencv-contrib-python
56
matplotlib
67
kornia>=0.6.12
78
opencv-contrib-python-headless==4.10.0.84
89
tqdm
9-
opencv-contrib-python
10+
albumentations==0.5.1 --no-binary=imgaug,albumentations
11+
ray>=1.0.1
12+
einops==0.3.0
13+
loguru==0.5.3
14+
yacs>=0.1.8
15+
autopep8
16+
pylint
17+
ipython
18+
jupyterlab
19+
h5py==3.1.0
20+
pytorch-lightning==1.3.5
21+
torchmetrics==0.6.0 # version problem: https://github.com/NVIDIA/DeepLearningExamples/issues/1113#issuecomment-1102969461
22+
joblib>=1.0.1

utils.py

+3
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ def eloftr(model, ref, tgt):
123123
time_mat: time taken for matching
124124
"""
125125

126+
ref = cv2.cvtColor(ref, cv2.COLOR_RGB2GRAY)
127+
tgt = cv2.cvtColor(tgt, cv2.COLOR_RGB2GRAY)
128+
126129
ref = cv2.resize(ref, (ref.shape[1]//32*32, ref.shape[0]//32*32))
127130
tgt = cv2.resize(tgt, (tgt.shape[1]//32*32, tgt.shape[0]//32*32))
128131

0 commit comments

Comments
 (0)