π Geometric Computer Vision Library for Spatial AI
ALIKED computes the per-keypoint convolutions of its descriptor head (SDDH) as matrix products with the same weights. At 2048 keypoints on a 480 x 640 image, this makes the head about 3x faster and the whole forward about 1.5x faster on an Apple M1 CPU, where conv2d sent these inputs to NNPACK. On an x86 CPU (i7-14700K), which uses oneDNN, the head and the forward are about 5 % faster, and on CUDA the head is about 10 % faster. On CPU the descriptors change at float32 rounding level only. On CUDA they move closer to float64, because the convolutions ran in TF32 by default (torch.backends.cudnn.allow_tf32) and the matrix products do not (torch.backends.cuda.matmul.allow_tf32 is off by default).