|
Download README.md from qualcomm/NetVLAD: direct link, hf CLI and curl.
- Browser
- Download file 6.43 kB
-
https://huggingface.co/qualcomm/NetVLAD/resolve/main/README.md
- Command line
-
hf download hf://qualcomm/NetVLAD/README.md
-
curl -L -o README.md https://huggingface.co/qualcomm/NetVLAD/resolve/main/README.md
6.43 kB
| library_name: pytorch | |
| license: mit | |
| tags: | |
| - backbone | |
| - robotics | |
| - android | |
| pipeline_tag: image-classification | |
|  | |
| # NetVLAD: Optimized for Qualcomm Devices | |
| NetVLAD is a CNN-based visual place recognition model that aggregates dense local descriptors into a compact VLAD descriptor using a differentiable soft assignment to learned cluster centroids. Built on a VGG-16 backbone, it produces a 32,768-d L2-normalized descriptor suitable for nearest-neighbour place retrieval across images taken under varying conditions. | |
| This is based on the implementation of NetVLAD found [here](https://github.com/Nanne/pytorch-NetVlad). | |
| This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/v0.68.0/src/qai_hub_models/models/netvlad) library to export with custom configurations. More details on model performance across various devices, can be found [here](#performance-summary). | |
| Qualcomm AI Hub Models uses [Qualcomm AI Hub Workbench](https://workbench.aihub.qualcomm.com) to compile, profile, and evaluate this model. [Sign up](https://myaccount.qualcomm.com/signup) 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 | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/netvlad/releases/v0.68.0/netvlad-onnx-float.zip) | |
| | ONNX | w8a8_mixed_int16 | Universal | QAIRT 2.51, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/netvlad/releases/v0.68.0/netvlad-onnx-w8a8_mixed_int16.zip) | |
| | QNN_DLC | float | Universal | QAIRT 2.51 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/netvlad/releases/v0.68.0/netvlad-qnn_dlc-float.zip) | |
| For more device-specific assets and performance metrics, visit **[NetVLAD on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/netvlad)**. | |
| ### Option 2: Export with Custom Configurations | |
| Use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/v0.68.0/src/qai_hub_models/models/netvlad) 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 [NetVLAD on GitHub](https://github.com/qualcomm/ai-hub-models/blob/v0.68.0/src/qai_hub_models/models/netvlad) for usage instructions. | |
| ## Model Details | |
| **Model Type:** Model_use_case.image_classification | |
| **Model Stats:** | |
| ## Performance Summary | |
| | Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit | |
| |---|---|---|---|---|---|--- | |
| | NetVLAD | ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 8.287 ms | 0 - 149 MB | NPU | |
| | NetVLAD | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 11.285 ms | 2 - 148 MB | NPU | |
| | NetVLAD | ONNX | float | Snapdragon® X2 Elite | 10.529 ms | 4 - 4 MB | NPU | |
| | NetVLAD | ONNX | float | Snapdragon® X Elite | 19.277 ms | 27 - 27 MB | NPU | |
| | NetVLAD | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 36.019 ms | 4 - 192 MB | NPU | |
| | NetVLAD | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 42.384 ms | 4 - 8 MB | NPU | |
| | NetVLAD | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 18.722 ms | 0 - 30 MB | NPU | |
| | NetVLAD | ONNX | float | Qualcomm® QCS8450 | 36.019 ms | 4 - 192 MB | NPU | |
| | NetVLAD | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 37.058 ms | 4 - 7 MB | NPU | |
| | NetVLAD | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 19.277 ms | 27 - 27 MB | NPU | |
| | NetVLAD | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 11.285 ms | 2 - 148 MB | NPU | |
| | NetVLAD | ONNX | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 7.164 ms | 4 - 148 MB | NPU | |
| | NetVLAD | ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | 7.512 ms | 4 - 148 MB | NPU | |
| | NetVLAD | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 8.284 ms | 0 - 144 MB | NPU | |
| | NetVLAD | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 11.407 ms | 4 - 150 MB | NPU | |
| | NetVLAD | QNN_DLC | float | Snapdragon® X2 Elite | 10.949 ms | 0 - 0 MB | NPU | |
| | NetVLAD | QNN_DLC | float | Snapdragon® X Elite | 19.442 ms | 0 - 0 MB | NPU | |
| | NetVLAD | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 35.893 ms | 0 - 187 MB | NPU | |
| | NetVLAD | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 41.795 ms | 0 - 3 MB | NPU | |
| | NetVLAD | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 18.617 ms | 0 - 2 MB | NPU | |
| | NetVLAD | QNN_DLC | float | Qualcomm® SA8650P | 36.248 ms | 2 - 143 MB | NPU | |
| | NetVLAD | QNN_DLC | float | Qualcomm® SA8255P | 36.248 ms | 2 - 143 MB | NPU | |
| | NetVLAD | QNN_DLC | float | Qualcomm® QCS8450 | 35.893 ms | 0 - 187 MB | NPU | |
| | NetVLAD | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 36.813 ms | 2 - 4 MB | NPU | |
| | NetVLAD | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 19.442 ms | 0 - 0 MB | NPU | |
| | NetVLAD | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 11.407 ms | 4 - 150 MB | NPU | |
| | NetVLAD | QNN_DLC | float | Qualcomm® SA8295P | 39.827 ms | 0 - 147 MB | NPU | |
| | NetVLAD | QNN_DLC | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 7.161 ms | 0 - 143 MB | NPU | |
| | NetVLAD | QNN_DLC | float | Snapdragon® 8 Elite Gen 6 Mobile | 7.415 ms | 0 - 143 MB | NPU | |
| ## License | |
| * The license for the original implementation of NetVLAD can be found | |
| [here](https://github.com/relja/netvlad/blob/master/LICENCE). | |
| ## References | |
| * [NetVLAD: CNN architecture for weakly supervised place recognition](https://arxiv.org/abs/1511.07247) | |
| * [Source Model Implementation](https://github.com/Nanne/pytorch-NetVlad) | |
| ## Community | |
| * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI. | |
| * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com). | |