Download README.md from qualcomm/LightGlue: direct link, hf CLI and curl.
- Browser
- Download file 8.17 kB
-
https://huggingface.co/qualcomm/LightGlue/resolve/main/README.md
- Command line
-
hf download hf://qualcomm/LightGlue/README.md
-
curl -L -o README.md https://huggingface.co/qualcomm/LightGlue/resolve/main/README.md
library_name: pytorch
license: apache-2.0
tags:
- real_time
- android
pipeline_tag: keypoint-detection
LightGlue: Optimized for Qualcomm Devices
LightGlue is a deep neural network that matches sparse local features across image pairs. It replaces the traditional combination of nearest-neighbour matching and robust geometric fitting with a fast, lightweight attention-based model, performing both matching and a learned pruning of non-matchable points in a single forward pass. LightGlue consumes keypoints and descriptors already produced by a separate feature extractor (SuperPoint) and outputs point correspondences between the two images. This recipe pairs LightGlue's official checkpoint (trained against Magic-Leap's SuperPoint) with this repo's MIT-licensed SuperPoint port, so reported accuracy is directionally meaningful but not a direct reproduction of the paper's figures.
This is based on the implementation of LightGlue found here. This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the Qualcomm® AI Hub Models library to export with custom configurations. More details on model performance across various devices, can be found here.
Qualcomm AI Hub Models uses Qualcomm AI Hub Workbench to compile, profile, and evaluate this model. Sign up to run these models on a hosted Qualcomm® device.
Getting Started
There are two ways to deploy this model on your device:
Option 1: Download Pre-Exported Models
Below are pre-exported model assets ready for deployment.
| Runtime | Precision | Chipset | SDK Versions | Download |
|---|---|---|---|---|
| ONNX | float | Universal | ONNX Runtime 1.28.0 | Download |
| TFLITE | float | Universal | QAIRT 2.51 | Download |
For more device-specific assets and performance metrics, visit LightGlue on Qualcomm® AI Hub.
Option 2: Export with Custom Configurations
Use the Qualcomm® AI Hub Models Python library to compile and export the model with your own:
- Custom weights (e.g., fine-tuned checkpoints)
- Custom input shapes
- Target device and runtime configurations
This option is ideal if you need to customize the model beyond the default configuration provided here.
See our repository for LightGlue on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.pose_estimation
Model Stats:
- Descriptor dimension: 256
- Input resolution (pixel coords): 480x640
- Max input keypoints per image: 500
- Model checkpoint: superpoint_lightglue_v0-1_arxiv.pth
- Model size (float): 43.7 MB
- Number of parameters: 11.3M
- Number of transformer layers: 9
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| lightglue | ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 48.122 ms | 23 - 402 MB | NPU |
| lightglue | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 46.975 ms | 22 - 387 MB | NPU |
| lightglue | ONNX | float | Snapdragon® X2 Elite | 59.421 ms | 33 - 33 MB | NPU |
| lightglue | ONNX | float | Snapdragon® X Elite | 114.628 ms | 31 - 31 MB | NPU |
| lightglue | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 114.628 ms | 31 - 31 MB | NPU |
| lightglue | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 46.975 ms | 22 - 387 MB | NPU |
| lightglue | ONNX | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 34.753 ms | 21 - 354 MB | NPU |
| lightglue | ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | 59.912 ms | 23 - 411 MB | NPU |
| lightglue | TFLITE | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 49.184 ms | 0 - 821 MB | NPU |
| lightglue | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 55.67 ms | 14 - 811 MB | NPU |
| lightglue | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 120.466 ms | 15 - 1054 MB | NPU |
| lightglue | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 103.423 ms | 14 - 80 MB | NPU |
| lightglue | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 103.666 ms | 15 - 19 MB | NPU |
| lightglue | TFLITE | float | Qualcomm® SA8650P | 116.398 ms | 15 - 800 MB | NPU |
| lightglue | TFLITE | float | Qualcomm® SA8255P | 116.398 ms | 15 - 800 MB | NPU |
| lightglue | TFLITE | float | Qualcomm® QCS8450 | 120.466 ms | 15 - 1054 MB | NPU |
| lightglue | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 111.214 ms | 14 - 80 MB | NPU |
| lightglue | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 55.67 ms | 14 - 811 MB | NPU |
| lightglue | TFLITE | float | Qualcomm® SA8295P | 124.126 ms | 15 - 801 MB | NPU |
| lightglue | TFLITE | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 38.436 ms | 13 - 697 MB | NPU |
| lightglue | TFLITE | float | Snapdragon® 8 Elite Gen 6 Mobile | 58.766 ms | 15 - 691 MB | NPU |
| superpoint | ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 6.844 ms | 28 - 200 MB | NPU |
| superpoint | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 9.338 ms | 28 - 195 MB | NPU |
| superpoint | ONNX | float | Snapdragon® X2 Elite | 7.464 ms | 40 - 40 MB | NPU |
| superpoint | ONNX | float | Snapdragon® X Elite | 16.947 ms | 40 - 40 MB | NPU |
| superpoint | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 16.947 ms | 40 - 40 MB | NPU |
| superpoint | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 9.338 ms | 28 - 195 MB | NPU |
| superpoint | ONNX | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 5.524 ms | 36 - 204 MB | NPU |
| superpoint | ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | 6.645 ms | 33 - 198 MB | NPU |
| superpoint | TFLITE | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 6.793 ms | 12 - 180 MB | NPU |
| superpoint | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 9.451 ms | 12 - 181 MB | NPU |
| superpoint | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 28.985 ms | 0 - 236 MB | NPU |
| superpoint | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 28.394 ms | 12 - 37 MB | NPU |
| superpoint | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 16.732 ms | 7 - 10 MB | NPU |
| superpoint | TFLITE | float | Qualcomm® SA8650P | 23.865 ms | 12 - 173 MB | NPU |
| superpoint | TFLITE | float | Qualcomm® SA8255P | 23.865 ms | 12 - 173 MB | NPU |
| superpoint | TFLITE | float | Qualcomm® QCS8450 | 28.985 ms | 0 - 236 MB | NPU |
| superpoint | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 24.013 ms | 10 - 34 MB | NPU |
| superpoint | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 9.451 ms | 12 - 181 MB | NPU |
| superpoint | TFLITE | float | Qualcomm® SA8295P | 31.116 ms | 12 - 189 MB | NPU |
| superpoint | TFLITE | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 5.426 ms | 10 - 175 MB | NPU |
| superpoint | TFLITE | float | Snapdragon® 8 Elite Gen 6 Mobile | 6.61 ms | 10 - 174 MB | NPU |
License
- The license for the original implementation of LightGlue can be found here.
References
Community
- Join our AI Hub Slack community to collaborate, post questions and learn more about on-device AI.
- For questions or feedback please reach out to us.
