Spaces:
Running
on
Zero
Running
on
Zero
Upload more examples
Browse files- datasets/show/Medical/MR_PET/MRI_1.png +3 -0
- datasets/show/Medical/MR_PET/MRI_2.png +3 -0
- datasets/show/Medical/MR_PET/MRI_3.png +3 -0
- datasets/show/Medical/MR_PET/PET_1.png +3 -0
- datasets/show/Medical/MR_PET/PET_2.png +3 -0
- datasets/show/Medical/MR_PET/PET_3.png +3 -0
- datasets/show/Medical/Retina/RetinaFix_32.png +3 -0
- datasets/show/Medical/Retina/RetinaFix_43.png +3 -0
- datasets/show/Medical/Retina/RetinaMove_32.png +3 -0
- datasets/show/Medical/Retina/RetinaMove_43.png +3 -0
- datasets/show/Medical/SPECT_CT/CT_1.png +3 -0
- datasets/show/Medical/SPECT_CT/CT_10.png +3 -0
- datasets/show/Medical/SPECT_CT/SPECT_1.png +3 -0
- datasets/show/Medical/SPECT_CT/SPECT_10.png +3 -0
- datasets/show/RemoteSensing/DayNight/DN4a.png +3 -0
- datasets/show/RemoteSensing/DayNight/DN4b.png +3 -0
- datasets/show/RemoteSensing/DayNight/DN5a.png +3 -0
- datasets/show/RemoteSensing/DayNight/DN5b.png +3 -0
- datasets/show/RemoteSensing/Infrared_Optical/IO1a.png +3 -0
- datasets/show/RemoteSensing/Infrared_Optical/IO1b.png +3 -0
- datasets/show/RemoteSensing/Infrared_Optical/IO3a.png +3 -0
- datasets/show/RemoteSensing/Infrared_Optical/IO3b.png +3 -0
- datasets/show/RemoteSensing/Map_Optical/MO3a.png +3 -0
- datasets/show/RemoteSensing/Map_Optical/MO3b.png +3 -0
- datasets/show/RemoteSensing/Map_Optical/MO6a.png +3 -0
- datasets/show/RemoteSensing/Map_Optical/MO6b.png +3 -0
- datasets/show/RemoteSensing/SAR_Optical/SO1a.png +3 -0
- datasets/show/RemoteSensing/SAR_Optical/SO1b.png +3 -0
- datasets/show/RemoteSensing/SAR_Optical/SO4a.png +3 -0
- datasets/show/RemoteSensing/SAR_Optical/SO4b.png +3 -0
- datasets/show/txt.txt +31 -1
- ui/app_class.py +8 -6
- ui/config.yaml +7 -4
- ui/utils.py +4 -4
datasets/show/Medical/MR_PET/MRI_1.png
ADDED
Git LFS Details
|
datasets/show/Medical/MR_PET/MRI_2.png
ADDED
Git LFS Details
|
datasets/show/Medical/MR_PET/MRI_3.png
ADDED
Git LFS Details
|
datasets/show/Medical/MR_PET/PET_1.png
ADDED
Git LFS Details
|
datasets/show/Medical/MR_PET/PET_2.png
ADDED
Git LFS Details
|
datasets/show/Medical/MR_PET/PET_3.png
ADDED
Git LFS Details
|
datasets/show/Medical/Retina/RetinaFix_32.png
ADDED
Git LFS Details
|
datasets/show/Medical/Retina/RetinaFix_43.png
ADDED
Git LFS Details
|
datasets/show/Medical/Retina/RetinaMove_32.png
ADDED
Git LFS Details
|
datasets/show/Medical/Retina/RetinaMove_43.png
ADDED
Git LFS Details
|
datasets/show/Medical/SPECT_CT/CT_1.png
ADDED
Git LFS Details
|
datasets/show/Medical/SPECT_CT/CT_10.png
ADDED
Git LFS Details
|
datasets/show/Medical/SPECT_CT/SPECT_1.png
ADDED
Git LFS Details
|
datasets/show/Medical/SPECT_CT/SPECT_10.png
ADDED
Git LFS Details
|
datasets/show/RemoteSensing/DayNight/DN4a.png
ADDED
Git LFS Details
|
datasets/show/RemoteSensing/DayNight/DN4b.png
ADDED
Git LFS Details
|
datasets/show/RemoteSensing/DayNight/DN5a.png
ADDED
Git LFS Details
|
datasets/show/RemoteSensing/DayNight/DN5b.png
ADDED
Git LFS Details
|
datasets/show/RemoteSensing/Infrared_Optical/IO1a.png
ADDED
Git LFS Details
|
datasets/show/RemoteSensing/Infrared_Optical/IO1b.png
ADDED
Git LFS Details
|
datasets/show/RemoteSensing/Infrared_Optical/IO3a.png
ADDED
Git LFS Details
|
datasets/show/RemoteSensing/Infrared_Optical/IO3b.png
ADDED
Git LFS Details
|
datasets/show/RemoteSensing/Map_Optical/MO3a.png
ADDED
Git LFS Details
|
datasets/show/RemoteSensing/Map_Optical/MO3b.png
ADDED
Git LFS Details
|
datasets/show/RemoteSensing/Map_Optical/MO6a.png
ADDED
Git LFS Details
|
datasets/show/RemoteSensing/Map_Optical/MO6b.png
ADDED
Git LFS Details
|
datasets/show/RemoteSensing/SAR_Optical/SO1a.png
ADDED
Git LFS Details
|
datasets/show/RemoteSensing/SAR_Optical/SO1b.png
ADDED
Git LFS Details
|
datasets/show/RemoteSensing/SAR_Optical/SO4a.png
ADDED
Git LFS Details
|
datasets/show/RemoteSensing/SAR_Optical/SO4b.png
ADDED
Git LFS Details
|
datasets/show/txt.txt
CHANGED
@@ -15,4 +15,34 @@ event/000289.png
|
|
15 |
vis/000422.png
|
16 |
event/000422.png
|
17 |
vis/000522.png
|
18 |
-
event/000522.png
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
vis/000422.png
|
16 |
event/000422.png
|
17 |
vis/000522.png
|
18 |
+
event/000522.png
|
19 |
+
Medical/MR_PET/MRI_1.png
|
20 |
+
Medical/MR_PET/PET_1.png
|
21 |
+
Medical/MR_PET/MRI_2.png
|
22 |
+
Medical/MR_PET/PET_2.png
|
23 |
+
Medical/MR_PET/MRI_3.png
|
24 |
+
Medical/MR_PET/PET_3.png
|
25 |
+
Medical/SPECT_CT/CT_1.png
|
26 |
+
Medical/SPECT_CT/SPECT_1.png
|
27 |
+
Medical/SPECT_CT/CT_10.png
|
28 |
+
Medical/SPECT_CT/SPECT_10.png
|
29 |
+
Medical\Retina\RetinaFix_32.png
|
30 |
+
Medical\Retina\RetinaMove_32.png
|
31 |
+
Medical\Retina\RetinaFix_43.png
|
32 |
+
Medical\Retina\RetinaMove_43.png
|
33 |
+
RemoteSensing\SAR_Optical\SO1a.png
|
34 |
+
RemoteSensing\SAR_Optical\SO1b.png
|
35 |
+
RemoteSensing\SAR_Optical\SO4a.png
|
36 |
+
RemoteSensing\SAR_Optical\SO4b.png
|
37 |
+
RemoteSensing\Map_Optical\MO3a.png
|
38 |
+
RemoteSensing\Map_Optical\MO3b.png
|
39 |
+
RemoteSensing\Map_Optical\MO6a.png
|
40 |
+
RemoteSensing\Map_Optical\MO6b.png
|
41 |
+
RemoteSensing\DayNight\DN4a.png
|
42 |
+
RemoteSensing\DayNight\DN4b.png
|
43 |
+
RemoteSensing\DayNight\DN5a.png
|
44 |
+
RemoteSensing\DayNight\DN5b.png
|
45 |
+
RemoteSensing\Infrared_Optical\IO1a.png
|
46 |
+
RemoteSensing\Infrared_Optical\IO1b.png
|
47 |
+
RemoteSensing\Infrared_Optical\IO3a.png
|
48 |
+
RemoteSensing\Infrared_Optical\IO3b.png
|
ui/app_class.py
CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
|
|
6 |
import numpy as np
|
7 |
from easydict import EasyDict as edict
|
8 |
from omegaconf import OmegaConf
|
9 |
-
import spaces
|
10 |
sys.path.append(str(Path(__file__).parents[1]))
|
11 |
|
12 |
from ui.sfm import SfmEngine
|
@@ -38,16 +38,18 @@ DESCRIPTION = """
|
|
38 |
</div>
|
39 |
</div>
|
40 |
|
41 |
-
<p style="text-align: center; font-size:
|
42 |
-
This Space is derived from <a href="https://github.com/Vincentqyw/image-matching-webui" style="color: #007BFF;">Image Matching WebUI</a>.
|
|
|
|
|
43 |
</p>
|
44 |
|
45 |
-
<p style="text-align: center; font-size:
|
46 |
-
|
47 |
</p>
|
48 |
|
49 |
<p style="text-align: center; font-size: 16px; color: #666;">
|
50 |
-
|
51 |
</p>
|
52 |
"""
|
53 |
|
|
|
6 |
import numpy as np
|
7 |
from easydict import EasyDict as edict
|
8 |
from omegaconf import OmegaConf
|
9 |
+
# import spaces
|
10 |
sys.path.append(str(Path(__file__).parents[1]))
|
11 |
|
12 |
from ui.sfm import SfmEngine
|
|
|
38 |
</div>
|
39 |
</div>
|
40 |
|
41 |
+
<p style="text-align: center; font-size: 14px; color: #666;">
|
42 |
+
This Space is derived from <a href="https://github.com/Vincentqyw/image-matching-webui" style="color: #007BFF;">Image Matching WebUI</a>.
|
43 |
+
|
44 |
+
We are grateful to the authors for their contribution of the source code.
|
45 |
</p>
|
46 |
|
47 |
+
<p style="text-align: center; font-size: 14px; color: #666;">
|
48 |
+
Here we provide our MINIMA-model in our paper for test and comparison, and this project is undergoing continuous enhancement.
|
49 |
</p>
|
50 |
|
51 |
<p style="text-align: center; font-size: 16px; color: #666;">
|
52 |
+
Special thanks to Hugging Face for providing the ZeroGPU for this Space!
|
53 |
</p>
|
54 |
"""
|
55 |
|
ui/config.yaml
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
server:
|
2 |
name: "0.0.0.0"
|
3 |
-
port:
|
4 |
|
5 |
defaults:
|
6 |
setting_threshold: 0.1
|
7 |
-
max_keypoints:
|
8 |
keypoint_threshold: 0.0005
|
9 |
enable_ransac: true
|
10 |
ransac_method: CV2_USAC_MAGSAC
|
@@ -22,9 +22,12 @@ matcher_zoo:
|
|
22 |
feature: superpoint_max
|
23 |
dense: false
|
24 |
info:
|
25 |
-
name: MINIMA
|
|
|
|
|
|
|
26 |
project: null
|
27 |
-
display:
|
28 |
|
29 |
minima(loftr):
|
30 |
matcher: minima_loftr
|
|
|
1 |
server:
|
2 |
name: "0.0.0.0"
|
3 |
+
port: 7860
|
4 |
|
5 |
defaults:
|
6 |
setting_threshold: 0.1
|
7 |
+
max_keypoints: 2000
|
8 |
keypoint_threshold: 0.0005
|
9 |
enable_ransac: true
|
10 |
ransac_method: CV2_USAC_MAGSAC
|
|
|
22 |
feature: superpoint_max
|
23 |
dense: false
|
24 |
info:
|
25 |
+
name: MINIMA #dispaly name
|
26 |
+
source: "ArXiv 2024"
|
27 |
+
github: https://github.com/LSXI7/MINIMA
|
28 |
+
paper: https://arxiv.org/abs/2412.19412
|
29 |
project: null
|
30 |
+
display: true
|
31 |
|
32 |
minima(loftr):
|
33 |
matcher: minima_loftr
|
ui/utils.py
CHANGED
@@ -36,7 +36,7 @@ warnings.simplefilter("ignore")
|
|
36 |
ROOT = Path(__file__).parent.parent
|
37 |
# some default values
|
38 |
DEFAULT_SETTING_THRESHOLD = 0.1
|
39 |
-
DEFAULT_SETTING_MAX_FEATURES =
|
40 |
DEFAULT_DEFAULT_KEYPOINT_THRESHOLD = 0.0005
|
41 |
DEFAULT_ENABLE_RANSAC = True
|
42 |
DEFAULT_RANSAC_METHOD = "CV2_USAC_MAGSAC"
|
@@ -197,8 +197,8 @@ def gen_examples():
|
|
197 |
random.seed(1)
|
198 |
example_matchers = [
|
199 |
"superpoint+minima(lightglue)",
|
200 |
-
|
201 |
-
|
202 |
]
|
203 |
|
204 |
def distribute_elements(A, B):
|
@@ -251,7 +251,7 @@ def gen_examples():
|
|
251 |
match_setting_threshold,
|
252 |
match_setting_max_features,
|
253 |
detect_keypoints_threshold,
|
254 |
-
mt,
|
255 |
# enable_ransac,
|
256 |
ransac_method,
|
257 |
ransac_reproj_threshold,
|
|
|
36 |
ROOT = Path(__file__).parent.parent
|
37 |
# some default values
|
38 |
DEFAULT_SETTING_THRESHOLD = 0.1
|
39 |
+
DEFAULT_SETTING_MAX_FEATURES = 2000
|
40 |
DEFAULT_DEFAULT_KEYPOINT_THRESHOLD = 0.0005
|
41 |
DEFAULT_ENABLE_RANSAC = True
|
42 |
DEFAULT_RANSAC_METHOD = "CV2_USAC_MAGSAC"
|
|
|
197 |
random.seed(1)
|
198 |
example_matchers = [
|
199 |
"superpoint+minima(lightglue)",
|
200 |
+
"minima(loftr)",
|
201 |
+
"minima(RoMa)",
|
202 |
]
|
203 |
|
204 |
def distribute_elements(A, B):
|
|
|
251 |
match_setting_threshold,
|
252 |
match_setting_max_features,
|
253 |
detect_keypoints_threshold,
|
254 |
+
mt if 'Medical' not in pair[0] else 'minima(RoMa)',
|
255 |
# enable_ransac,
|
256 |
ransac_method,
|
257 |
ransac_reproj_threshold,
|