Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

add dedode descriptor B weights for lightglue (#2769)

Dmytro Mishkinb13b7b038b13
diff --git a/kornia/feature/integrated.py b/kornia/feature/integrated.py
index 03ab204d3..3a8480339 100644
--- a/kornia/feature/integrated.py
+++ b/kornia/feature/integrated.py
@@ -412,6 +412,7 @@ class LightGlueMatcher(GeometryAwareDescriptorMatcher):
known_modes: ClassVar[List[str]] = [
"superpoint",
"disk",
+ "dedodeb",
"aliked",
"keynet_affnet_hardnet",
"dog_affnet_hardnet",
diff --git a/kornia/feature/lightglue.py b/kornia/feature/lightglue.py
index aed295ea6..893e7143b 100644
--- a/kornia/feature/lightglue.py
+++ b/kornia/feature/lightglue.py
@@ -349,6 +349,10 @@ class LightGlue(Module):
"weights": "superpoint_lightglue",
"input_dim": 256,
},
+ "dedodeb": {
+ "weights": "dedodeb_lightglue",
+ "input_dim": 256,
+ },
"disk": {
"weights": "disk_lightglue",
"input_dim": 128,
@@ -424,6 +428,9 @@ class LightGlue(Module):
if features in ["keynet_affnet_hardnet"]:
fname = "keynet_affnet_hardnet_lightlue.pth"
url = "http://cmp.felk.cvut.cz/~mishkdmy/models/keynet_affnet_hardnet_lightlue.pth"
+ elif features in ["dedodeb"]:
+ fname = "dedodeb_lightglue.pth"
+ url = "http://cmp.felk.cvut.cz/~mishkdmy/models/dedodeb_lightglue.pth"
else:
url = self.url.format(self.version, features)
state_dict = torch.hub.load_state_dict_from_url(url, file_name=fname)