Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

526 B
Raw Blame

match_mnn, match_snn and match_smnn wait for the device once per call, where they waited two, three and nine times: each selects its matches with one torch.nonzero instead of indexing several tensors with a boolean mask, and match_smnn runs both ratio tests and the mutual check on one distance matrix instead of calling match_snn both ways. On CUDA (RTX 4090, 2,048 to 4,096 descriptors per image), match_smnn is 1.4-1.9x faster per pair, match_snn 1.2-1.3x and match_mnn up to 1.1x. Outputs are unchanged.