File tree Expand file tree Collapse file tree 3 files changed +44
-0
lines changed Expand file tree Collapse file tree 3 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 114
114
"resize_max" : 1600 ,
115
115
},
116
116
},
117
+ "aliked-n16" : {
118
+ "output" : "feats-aliked-n16" ,
119
+ "model" : {
120
+ "name" : "aliked" ,
121
+ "model_name" : "aliked-n16" ,
122
+ },
123
+ "preprocessing" : {
124
+ "grayscale" : False ,
125
+ "resize_max" : 1024 ,
126
+ },
127
+ },
117
128
# Global descriptors
118
129
"dir" : {
119
130
"output" : "global-feats-dir" ,
Original file line number Diff line number Diff line change
1
+ from lightglue import ALIKED as ALIKED_
2
+
3
+ from ..utils .base_model import BaseModel
4
+
5
+
6
+ class ALIKED (BaseModel ):
7
+ default_conf = {
8
+ "model_name" : "aliked-n16" ,
9
+ "max_num_keypoints" : - 1 ,
10
+ "detection_threshold" : 0.2 ,
11
+ "nms_radius" : 2 ,
12
+ }
13
+ required_inputs = ["image" ]
14
+
15
+ def _init (self , conf ):
16
+ conf .pop ("name" )
17
+ self .model = ALIKED_ (** conf )
18
+
19
+ def _forward (self , data ):
20
+ features = self .model (data )
21
+
22
+ return {
23
+ "keypoints" : [f for f in features ["keypoints" ]],
24
+ "keypoint_scores" : [f for f in features ["keypoint_scores" ]],
25
+ "descriptors" : [f .t () for f in features ["descriptors" ]],
26
+ }
Original file line number Diff line number Diff line change 35
35
"features" : "disk" ,
36
36
},
37
37
},
38
+ "aliked+lightglue" : {
39
+ "output" : "matches-aliked-lightglue" ,
40
+ "model" : {
41
+ "name" : "lightglue" ,
42
+ "features" : "aliked" ,
43
+ },
44
+ },
38
45
"superglue" : {
39
46
"output" : "matches-superglue" ,
40
47
"model" : {
You can’t perform that action at this time.
0 commit comments