# LightGlue

> Local feature matching at light speed

Source: https://talira.ai/catalog/lightglue-vw8e3sxk
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, AI model
- Categories: [ai / computer vision / feature matching](https://talira.ai/categories/ai/computer-vision/feature-matching), [languages / python](https://talira.ai/categories/languages/python)
- Licence: Apache-2.0[^1][^4]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (Apache-2.0). The bundled SuperPoint extractor and the SuperPoint-trained weights are for non-commercial research use only.
- Free tier: yes[^1]
- Self-hostable: yes[^1]
- Backed by: [Computer Vision and Geometry Group](https://talira.ai/orgs/eth-cvg.md)
- Creator: Philipp Lindenberger, Paul-Edouard Sarlin and Marc Pollefeys

LightGlue is a deep neural network that matches sparse local features between two images (ICCV 2023), from ETH Zurich's Computer Vision and Geometry Group. Given keypoints and descriptors for each image it returns the indices of corresponding points, and it adapts its depth and width per image pair: easy pairs stop after a few layers and unmatchable points are pruned early, which makes it 4 to 10 times faster than SuperGlue. Pretrained weights cover SuperPoint, DISK, ALIKED and SIFT features. LightGlue's code and weights are Apache-2.0, but SuperPoint is under Magic Leap's non-commercial licence, so commercial users pick DISK, ALIKED or SIFT. It's also available in Hugging Face Transformers, Kornia and [OpenCV](https://talira.ai/catalog/opencv-1r0jceb2.md) 5, and trained with the group's Glue Factory.

## Links

- GitHub: https://github.com/cvg/LightGlue

## Problems it solves

- match keypoints between two images faster than SuperGlue without losing accuracy
- replace brute-force descriptor matching and ratio tests with a learned matcher that rejects outliers
- learned feature matcher I can use in a commercial product without a non-commercial licence
- register a photographed page against a reference scan using matched local features
- speed up structure-from-motion or visual localization by swapping in a faster matcher
- match SIFT features better without changing my existing keypoint extractor
- real-time feature matching on a GPU for AR or robotics
- export a feature matcher to ONNX or TensorRT for deployment
- train a feature matcher on my own dataset and local features
- image matching that spends less compute on easy image pairs and more on hard ones

## Features

- matches sparse keypoints and descriptors and returns corresponding point indices with scores
- pretrained weights for SuperPoint, DISK, ALIKED, SIFT and DoGHardNet features
- adaptive depth (early stopping) and width (point pruning) per image pair
- FlashAttention, mixed precision and torch.compile support
- match_pair convenience function for two images
- benchmark script for GPU and CPU
- in Hugging Face Transformers (LightGlueForKeypointMatching)
- available through Kornia's LightGlue and LightGlueMatcher
- part of OpenCV 5's Features module
- training and evaluation in Glue Factory

## Limitations

- SuperPoint features not licensed for commercial use: SuperPoint and the LightGlue weights trained on it are non-commercial research only; DISK, ALIKED and SIFT aren't[^1][^2][^3]

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.35 out of 1.
Signals: backing 0.50, extensibility 0.00.

- backed by Computer Vision and Geometry Group
- created by Philipp Lindenberger, Paul-Edouard Sarlin and Marc Pollefeys

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [OpenCV](https://talira.ai/catalog/opencv-1r0jceb2.md)

## Alternatives

- [XFeat](https://talira.ai/catalog/xfeat-7m1py293.md): Accelerated features for lightweight image matching
- [RoMa](https://talira.ai/catalog/roma-7cd161xj.md): Robust dense feature matching

## Sources

[^1]: https://github.com/cvg/LightGlue (checked 20 Nov 2026)
[^2]: https://huggingface.co/ETH-CVG/lightglue_superpoint (checked 20 Nov 2026)
[^3]: https://github.com/magicleap/SuperPointPretrainedNetwork/blob/master/LICENSE (checked 20 Nov 2026)
[^4]: https://github.com/cvg/LightGlue/blob/main/LICENSE (checked 20 Nov 2026)
