Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

0.8 is too strict for smnn matching, 0.95 is much better default (#1807)

Dmytro Mishkin810435989d28
diff --git a/kornia/feature/matching.py b/kornia/feature/matching.py
index 455a94223..0050568f5 100644
--- a/kornia/feature/matching.py
+++ b/kornia/feature/matching.py
@@ -125,7 +125,7 @@ def match_snn(
def match_smnn(
- desc1: torch.Tensor, desc2: torch.Tensor, th: float = 0.8, dm: Optional[torch.Tensor] = None
+ desc1: torch.Tensor, desc2: torch.Tensor, th: float = 0.95, dm: Optional[torch.Tensor] = None
) -> Tuple[torch.Tensor, torch.Tensor]:
"""Function, which finds mutual nearest neighbors in desc2 for each vector in desc1.