qaihm-bot commited on
Commit
02c6045
·
verified ·
1 Parent(s): 07c6753

See https://github.com/qualcomm/ai-hub-models/releases/v0.66.0 for changelog.

Files changed (3) hide show
  1. LICENSE +1 -0
  2. README.md +82 -0
  3. release_assets.json +46 -0
LICENSE ADDED
@@ -0,0 +1 @@
 
 
1
+ The license of the original trained model can be found at https://github.com/relja/netvlad/blob/master/LICENCE.
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: pytorch
3
+ license: mit
4
+ tags:
5
+ - backbone
6
+ - android
7
+ pipeline_tag: image-classification
8
+
9
+ ---
10
+
11
+ ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/netvlad/web-assets/model_demo.png)
12
+
13
+ # NetVLAD: Optimized for Qualcomm Devices
14
+
15
+ 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.
16
+
17
+ This is based on the implementation of NetVLAD found [here](https://github.com/Nanne/pytorch-NetVlad).
18
+ 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.66.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).
19
+
20
+ 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.
21
+
22
+ ## Getting Started
23
+ There are two ways to deploy this model on your device:
24
+
25
+ ### Option 1: Download Pre-Exported Models
26
+
27
+ Below are pre-exported model assets ready for deployment.
28
+
29
+ | Runtime | Precision | Chipset | SDK Versions | Download |
30
+ |---|---|---|---|---|
31
+ | ONNX | float | Universal | QAIRT 2.50, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/netvlad/releases/v0.66.0/netvlad-onnx-float.zip)
32
+ | ONNX | w8a8_mixed_int16 | Universal | QAIRT 2.50, ONNX Runtime 1.30.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/netvlad/releases/v0.66.0/netvlad-onnx-w8a8_mixed_int16.zip)
33
+ | QNN_DLC | float | Universal | QAIRT 2.50 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/netvlad/releases/v0.66.0/netvlad-qnn_dlc-float.zip)
34
+ | QNN_DLC | w8a8_mixed_int16 | Universal | QAIRT 2.50 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/netvlad/releases/v0.66.0/netvlad-qnn_dlc-w8a8_mixed_int16.zip)
35
+ | TFLITE | float | Universal | QAIRT 2.50 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/netvlad/releases/v0.66.0/netvlad-tflite-float.zip)
36
+
37
+ For more device-specific assets and performance metrics, visit **[NetVLAD on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/netvlad)**.
38
+
39
+
40
+ ### Option 2: Export with Custom Configurations
41
+
42
+ Use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/v0.66.0/src/qai_hub_models/models/netvlad) Python library to compile and export the model with your own:
43
+ - Custom weights (e.g., fine-tuned checkpoints)
44
+ - Custom input shapes
45
+ - Target device and runtime configurations
46
+
47
+ This option is ideal if you need to customize the model beyond the default configuration provided here.
48
+
49
+ See our repository for [NetVLAD on GitHub](https://github.com/qualcomm/ai-hub-models/blob/v0.66.0/src/qai_hub_models/models/netvlad) for usage instructions.
50
+
51
+ ## Model Details
52
+
53
+ **Model Type:** Model_use_case.image_classification
54
+
55
+ **Model Stats:**
56
+
57
+
58
+ ## Performance Summary
59
+ | Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit
60
+ |---|---|---|---|---|---|---
61
+ | NetVLAD | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 11.288 ms | 0 - 141 MB | NPU
62
+ | NetVLAD | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 11.288 ms | 0 - 141 MB | NPU
63
+ | NetVLAD | ONNX | w8a8_mixed_int16 | Snapdragon® 8 Elite For Galaxy Mobile | 3.211 ms | 0 - 144 MB | NPU
64
+ | NetVLAD | ONNX | w8a8_mixed_int16 | Qualcomm® Dragonwing™ Q-8750 | 3.211 ms | 0 - 144 MB | NPU
65
+ | NetVLAD | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 12.49 ms | 4 - 143 MB | NPU
66
+ | NetVLAD | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 12.49 ms | 4 - 143 MB | NPU
67
+ | NetVLAD | QNN_DLC | w8a8_mixed_int16 | Snapdragon® 8 Elite For Galaxy Mobile | 3.16 ms | 0 - 142 MB | NPU
68
+ | NetVLAD | QNN_DLC | w8a8_mixed_int16 | Qualcomm® Dragonwing™ Q-8750 | 3.16 ms | 0 - 142 MB | NPU
69
+ | NetVLAD | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 11.272 ms | 0 - 145 MB | NPU
70
+ | NetVLAD | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 11.272 ms | 0 - 145 MB | NPU
71
+
72
+ ## License
73
+ * The license for the original implementation of NetVLAD can be found
74
+ [here](https://github.com/relja/netvlad/blob/master/LICENCE).
75
+
76
+ ## References
77
+ * [NetVLAD: CNN architecture for weakly supervised place recognition](https://arxiv.org/abs/1511.07247)
78
+ * [Source Model Implementation](https://github.com/Nanne/pytorch-NetVlad)
79
+
80
+ ## Community
81
+ * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
82
+ * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
release_assets.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "0.66.0",
3
+ "precisions": {
4
+ "float": {
5
+ "universal_assets": {
6
+ "onnx": {
7
+ "tool_versions": {
8
+ "qairt": "2.50.0.260828221209",
9
+ "onnx_runtime": "1.30.0"
10
+ },
11
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/netvlad/releases/v0.66.0/netvlad-onnx-float.zip"
12
+ },
13
+ "qnn_dlc": {
14
+ "tool_versions": {
15
+ "qairt": "2.50.0.260828221209"
16
+ },
17
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/netvlad/releases/v0.66.0/netvlad-qnn_dlc-float.zip"
18
+ },
19
+ "tflite": {
20
+ "tool_versions": {
21
+ "qairt": "2.50.0.260828221209",
22
+ "litert": "1.4.2"
23
+ },
24
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/netvlad/releases/v0.66.0/netvlad-tflite-float.zip"
25
+ }
26
+ }
27
+ },
28
+ "w8a8_mixed_int16": {
29
+ "universal_assets": {
30
+ "onnx": {
31
+ "tool_versions": {
32
+ "qairt": "2.50.0.260828221209",
33
+ "onnx_runtime": "1.30.0"
34
+ },
35
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/netvlad/releases/v0.66.0/netvlad-onnx-w8a8_mixed_int16.zip"
36
+ },
37
+ "qnn_dlc": {
38
+ "tool_versions": {
39
+ "qairt": "2.50.0.260828221209"
40
+ },
41
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/netvlad/releases/v0.66.0/netvlad-qnn_dlc-w8a8_mixed_int16.zip"
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }