qaihm-bot commited on
Commit
c7df1b6
·
verified ·
1 Parent(s): 3c65006

See https://github.com/quic/ai-hub-models/releases/v0.46.1 for changelog.

MobileNet-v3-Large_float.dlc DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:29a62db5f9d74501b0e9f12d12217387fc82cfe79ded969486c2c35948485506
3
- size 22059436
 
 
 
 
MobileNet-v3-Large_float.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:2421515b1d3aff9af339962e0f197fb89a1bf077b2a04c31339bf70173a47a0b
3
- size 20389126
 
 
 
 
MobileNet-v3-Large_float.tflite DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5cfec5847172f61f9ca2660b964129dca5e8a2bf5958f718a94216ae9e9cca01
3
- size 21925620
 
 
 
 
MobileNet-v3-Large_w8a16.dlc DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:aee45a306d4e20933c84f0e57e84bc5d864775268f67017590b0facb4c7abc3a
3
- size 6682764
 
 
 
 
MobileNet-v3-Large_w8a16.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6c8747859cbf87fbbec843284a1f99c480d569e038f5133e3e09c6ebd49359e1
3
- size 10153913
 
 
 
 
README.md CHANGED
@@ -12,267 +12,117 @@ pipeline_tag: image-classification
12
 
13
  ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mobilenet_v3_large/web-assets/model_demo.png)
14
 
15
- # MobileNet-v3-Large: Optimized for Mobile Deployment
16
- ## Imagenet classifier and general purpose backbone
17
-
18
 
19
  MobileNet-v3-Large is a machine learning model that can classify images from the Imagenet dataset. It can also be used as a backbone in building more complex models for specific use cases.
20
 
21
- This model is an implementation of MobileNet-v3-Large found [here](https://github.com/pytorch/vision/blob/main/torchvision/models/mobilenetv3.py).
22
-
23
-
24
- This repository provides scripts to run MobileNet-v3-Large on Qualcomm® devices.
25
- More details on model performance across various devices, can be found
26
- [here](https://aihub.qualcomm.com/models/mobilenet_v3_large).
27
-
28
-
29
-
30
- ### Model Details
31
-
32
- - **Model Type:** Model_use_case.image_classification
33
- - **Model Stats:**
34
- - Model checkpoint: Imagenet
35
- - Input resolution: 224x224
36
- - Number of parameters: 5.47M
37
- - Model size (float): 20.9 MB
38
- - Model size (w8a16): 6.35 MB
39
-
40
- | Model | Precision | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit | Target Model
41
- |---|---|---|---|---|---|---|---|---|
42
- | MobileNet-v3-Large | float | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | TFLITE | 2.971 ms | 0 - 132 MB | NPU | [MobileNet-v3-Large.tflite](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.tflite) |
43
- | MobileNet-v3-Large | float | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | QNN_DLC | 2.862 ms | 1 - 128 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.dlc) |
44
- | MobileNet-v3-Large | float | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | TFLITE | 1.757 ms | 0 - 163 MB | NPU | [MobileNet-v3-Large.tflite](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.tflite) |
45
- | MobileNet-v3-Large | float | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | QNN_DLC | 1.748 ms | 1 - 159 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.dlc) |
46
- | MobileNet-v3-Large | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | TFLITE | 0.942 ms | 0 - 3 MB | NPU | [MobileNet-v3-Large.tflite](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.tflite) |
47
- | MobileNet-v3-Large | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | QNN_DLC | 0.934 ms | 1 - 2 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.dlc) |
48
- | MobileNet-v3-Large | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | ONNX | 0.885 ms | 0 - 15 MB | NPU | [MobileNet-v3-Large.onnx.zip](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.onnx.zip) |
49
- | MobileNet-v3-Large | float | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | TFLITE | 1.351 ms | 0 - 132 MB | NPU | [MobileNet-v3-Large.tflite](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.tflite) |
50
- | MobileNet-v3-Large | float | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | QNN_DLC | 1.307 ms | 1 - 128 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.dlc) |
51
- | MobileNet-v3-Large | float | SA7255P ADP | Qualcomm® SA7255P | TFLITE | 2.971 ms | 0 - 132 MB | NPU | [MobileNet-v3-Large.tflite](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.tflite) |
52
- | MobileNet-v3-Large | float | SA7255P ADP | Qualcomm® SA7255P | QNN_DLC | 2.862 ms | 1 - 128 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.dlc) |
53
- | MobileNet-v3-Large | float | SA8295P ADP | Qualcomm® SA8295P | TFLITE | 1.778 ms | 0 - 142 MB | NPU | [MobileNet-v3-Large.tflite](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.tflite) |
54
- | MobileNet-v3-Large | float | SA8295P ADP | Qualcomm® SA8295P | QNN_DLC | 1.755 ms | 0 - 136 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.dlc) |
55
- | MobileNet-v3-Large | float | SA8775P ADP | Qualcomm® SA8775P | TFLITE | 1.351 ms | 0 - 132 MB | NPU | [MobileNet-v3-Large.tflite](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.tflite) |
56
- | MobileNet-v3-Large | float | SA8775P ADP | Qualcomm® SA8775P | QNN_DLC | 1.307 ms | 1 - 128 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.dlc) |
57
- | MobileNet-v3-Large | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | TFLITE | 0.646 ms | 0 - 159 MB | NPU | [MobileNet-v3-Large.tflite](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.tflite) |
58
- | MobileNet-v3-Large | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | QNN_DLC | 0.636 ms | 1 - 156 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.dlc) |
59
- | MobileNet-v3-Large | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | ONNX | 0.595 ms | 0 - 127 MB | NPU | [MobileNet-v3-Large.onnx.zip](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.onnx.zip) |
60
- | MobileNet-v3-Large | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | TFLITE | 0.511 ms | 0 - 136 MB | NPU | [MobileNet-v3-Large.tflite](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.tflite) |
61
- | MobileNet-v3-Large | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | QNN_DLC | 0.504 ms | 0 - 130 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.dlc) |
62
- | MobileNet-v3-Large | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | ONNX | 0.503 ms | 0 - 101 MB | NPU | [MobileNet-v3-Large.onnx.zip](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.onnx.zip) |
63
- | MobileNet-v3-Large | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | TFLITE | 0.426 ms | 0 - 137 MB | NPU | [MobileNet-v3-Large.tflite](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.tflite) |
64
- | MobileNet-v3-Large | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | QNN_DLC | 0.429 ms | 0 - 132 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.dlc) |
65
- | MobileNet-v3-Large | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | ONNX | 0.472 ms | 1 - 105 MB | NPU | [MobileNet-v3-Large.onnx.zip](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.onnx.zip) |
66
- | MobileNet-v3-Large | float | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_DLC | 1.112 ms | 1 - 1 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.dlc) |
67
- | MobileNet-v3-Large | float | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 0.824 ms | 13 - 13 MB | NPU | [MobileNet-v3-Large.onnx.zip](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large.onnx.zip) |
68
- | MobileNet-v3-Large | w8a16 | Dragonwing Q-6690 MTP | Qualcomm® QCM6690 | QNN_DLC | 4.012 ms | 0 - 133 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.dlc) |
69
- | MobileNet-v3-Large | w8a16 | Dragonwing Q-6690 MTP | Qualcomm® QCM6690 | ONNX | 30.911 ms | 23 - 37 MB | CPU | [MobileNet-v3-Large.onnx.zip](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.onnx.zip) |
70
- | MobileNet-v3-Large | w8a16 | Dragonwing RB3 Gen 2 Vision Kit | Qualcomm® QCS6490 | QNN_DLC | 2.806 ms | 0 - 2 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.dlc) |
71
- | MobileNet-v3-Large | w8a16 | Dragonwing RB3 Gen 2 Vision Kit | Qualcomm® QCS6490 | ONNX | 58.672 ms | 22 - 26 MB | CPU | [MobileNet-v3-Large.onnx.zip](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.onnx.zip) |
72
- | MobileNet-v3-Large | w8a16 | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | QNN_DLC | 2.106 ms | 0 - 126 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.dlc) |
73
- | MobileNet-v3-Large | w8a16 | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | QNN_DLC | 1.219 ms | 0 - 152 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.dlc) |
74
- | MobileNet-v3-Large | w8a16 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | QNN_DLC | 0.928 ms | 0 - 3 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.dlc) |
75
- | MobileNet-v3-Large | w8a16 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | ONNX | 0.886 ms | 0 - 10 MB | NPU | [MobileNet-v3-Large.onnx.zip](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.onnx.zip) |
76
- | MobileNet-v3-Large | w8a16 | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | QNN_DLC | 1.183 ms | 0 - 125 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.dlc) |
77
- | MobileNet-v3-Large | w8a16 | SA7255P ADP | Qualcomm® SA7255P | QNN_DLC | 2.106 ms | 0 - 126 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.dlc) |
78
- | MobileNet-v3-Large | w8a16 | SA8295P ADP | Qualcomm® SA8295P | QNN_DLC | 1.577 ms | 0 - 134 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.dlc) |
79
- | MobileNet-v3-Large | w8a16 | SA8775P ADP | Qualcomm® SA8775P | QNN_DLC | 1.183 ms | 0 - 125 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.dlc) |
80
- | MobileNet-v3-Large | w8a16 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | QNN_DLC | 0.664 ms | 0 - 148 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.dlc) |
81
- | MobileNet-v3-Large | w8a16 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | ONNX | 0.601 ms | 0 - 129 MB | NPU | [MobileNet-v3-Large.onnx.zip](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.onnx.zip) |
82
- | MobileNet-v3-Large | w8a16 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | QNN_DLC | 0.454 ms | 0 - 128 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.dlc) |
83
- | MobileNet-v3-Large | w8a16 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | ONNX | 0.47 ms | 0 - 111 MB | NPU | [MobileNet-v3-Large.onnx.zip](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.onnx.zip) |
84
- | MobileNet-v3-Large | w8a16 | Snapdragon 7 Gen 4 QRD | Snapdragon® 7 Gen 4 Mobile | QNN_DLC | 1.002 ms | 0 - 131 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.dlc) |
85
- | MobileNet-v3-Large | w8a16 | Snapdragon 7 Gen 4 QRD | Snapdragon® 7 Gen 4 Mobile | ONNX | 27.4 ms | 24 - 40 MB | CPU | [MobileNet-v3-Large.onnx.zip](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.onnx.zip) |
86
- | MobileNet-v3-Large | w8a16 | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | QNN_DLC | 0.363 ms | 0 - 129 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.dlc) |
87
- | MobileNet-v3-Large | w8a16 | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | ONNX | 0.398 ms | 0 - 108 MB | NPU | [MobileNet-v3-Large.onnx.zip](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.onnx.zip) |
88
- | MobileNet-v3-Large | w8a16 | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_DLC | 1.105 ms | 0 - 0 MB | NPU | [MobileNet-v3-Large.dlc](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.dlc) |
89
- | MobileNet-v3-Large | w8a16 | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 0.831 ms | 6 - 6 MB | NPU | [MobileNet-v3-Large.onnx.zip](https://huggingface.co/qualcomm/MobileNet-v3-Large/blob/main/MobileNet-v3-Large_w8a16.onnx.zip) |
90
-
91
-
92
-
93
-
94
- ## Installation
95
-
96
-
97
- Install the package via pip:
98
- ```bash
99
- pip install qai-hub-models
100
- ```
101
-
102
-
103
- ## Configure Qualcomm® AI Hub Workbench to run this model on a cloud-hosted device
104
-
105
- Sign-in to [Qualcomm® AI Hub Workbench](https://workbench.aihub.qualcomm.com/) with your
106
- Qualcomm® ID. Once signed in navigate to `Account -> Settings -> API Token`.
107
-
108
- With this API token, you can configure your client to run models on the cloud
109
- hosted devices.
110
- ```bash
111
- qai-hub configure --api_token API_TOKEN
112
- ```
113
- Navigate to [docs](https://workbench.aihub.qualcomm.com/docs/) for more information.
114
-
115
-
116
-
117
- ## Demo off target
118
-
119
- The package contains a simple end-to-end demo that downloads pre-trained
120
- weights and runs this model on a sample input.
121
-
122
- ```bash
123
- python -m qai_hub_models.models.mobilenet_v3_large.demo
124
- ```
125
-
126
- The above demo runs a reference implementation of pre-processing, model
127
- inference, and post processing.
128
-
129
- **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
130
- environment, please add the following to your cell (instead of the above).
131
- ```
132
- %run -m qai_hub_models.models.mobilenet_v3_large.demo
133
- ```
134
-
135
-
136
- ### Run model on a cloud-hosted device
137
-
138
- In addition to the demo, you can also run the model on a cloud-hosted Qualcomm®
139
- device. This script does the following:
140
- * Performance check on-device on a cloud-hosted device
141
- * Downloads compiled assets that can be deployed on-device for Android.
142
- * Accuracy check between PyTorch and on-device outputs.
143
-
144
- ```bash
145
- python -m qai_hub_models.models.mobilenet_v3_large.export
146
- ```
147
-
148
-
149
-
150
- ## How does this work?
151
-
152
- This [export script](https://aihub.qualcomm.com/models/mobilenet_v3_large/qai_hub_models/models/MobileNet-v3-Large/export.py)
153
- leverages [Qualcomm® AI Hub](https://aihub.qualcomm.com/) to optimize, validate, and deploy this model
154
- on-device. Lets go through each step below in detail:
155
-
156
- Step 1: **Compile model for on-device deployment**
157
-
158
- To compile a PyTorch model for on-device deployment, we first trace the model
159
- in memory using the `jit.trace` and then call the `submit_compile_job` API.
160
-
161
- ```python
162
- import torch
163
-
164
- import qai_hub as hub
165
- from qai_hub_models.models.mobilenet_v3_large import Model
166
-
167
- # Load the model
168
- torch_model = Model.from_pretrained()
169
-
170
- # Device
171
- device = hub.Device("Samsung Galaxy S25")
172
-
173
- # Trace model
174
- input_shape = torch_model.get_input_spec()
175
- sample_inputs = torch_model.sample_inputs()
176
-
177
- pt_model = torch.jit.trace(torch_model, [torch.tensor(data[0]) for _, data in sample_inputs.items()])
178
-
179
- # Compile model on a specific device
180
- compile_job = hub.submit_compile_job(
181
- model=pt_model,
182
- device=device,
183
- input_specs=torch_model.get_input_spec(),
184
- )
185
-
186
- # Get target model to run on-device
187
- target_model = compile_job.get_target_model()
188
-
189
- ```
190
-
191
-
192
- Step 2: **Performance profiling on cloud-hosted device**
193
-
194
- After compiling models from step 1. Models can be profiled model on-device using the
195
- `target_model`. Note that this scripts runs the model on a device automatically
196
- provisioned in the cloud. Once the job is submitted, you can navigate to a
197
- provided job URL to view a variety of on-device performance metrics.
198
- ```python
199
- profile_job = hub.submit_profile_job(
200
- model=target_model,
201
- device=device,
202
- )
203
-
204
- ```
205
-
206
- Step 3: **Verify on-device accuracy**
207
-
208
- To verify the accuracy of the model on-device, you can run on-device inference
209
- on sample input data on the same cloud hosted device.
210
- ```python
211
- input_data = torch_model.sample_inputs()
212
- inference_job = hub.submit_inference_job(
213
- model=target_model,
214
- device=device,
215
- inputs=input_data,
216
- )
217
- on_device_output = inference_job.download_output_data()
218
-
219
- ```
220
- With the output of the model, you can compute like PSNR, relative errors or
221
- spot check the output with expected output.
222
-
223
- **Note**: This on-device profiling and inference requires access to Qualcomm®
224
- AI Hub Workbench. [Sign up for access](https://myaccount.qualcomm.com/signup).
225
-
226
-
227
-
228
- ## Run demo on a cloud-hosted device
229
-
230
- You can also run the demo on-device.
231
-
232
- ```bash
233
- python -m qai_hub_models.models.mobilenet_v3_large.demo --eval-mode on-device
234
- ```
235
-
236
- **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
237
- environment, please add the following to your cell (instead of the above).
238
- ```
239
- %run -m qai_hub_models.models.mobilenet_v3_large.demo -- --eval-mode on-device
240
- ```
241
-
242
-
243
- ## Deploying compiled model to Android
244
-
245
-
246
- The models can be deployed using multiple runtimes:
247
- - TensorFlow Lite (`.tflite` export): [This
248
- tutorial](https://www.tensorflow.org/lite/android/quickstart) provides a
249
- guide to deploy the .tflite model in an Android application.
250
-
251
-
252
- - QNN (`.so` export ): This [sample
253
- app](https://docs.qualcomm.com/bundle/publicresource/topics/80-63442-50/sample_app.html)
254
- provides instructions on how to use the `.so` shared library in an Android application.
255
-
256
-
257
- ## View on Qualcomm® AI Hub
258
- Get more details on MobileNet-v3-Large's performance across various devices [here](https://aihub.qualcomm.com/models/mobilenet_v3_large).
259
- Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
260
-
261
 
262
  ## License
263
  * The license for the original implementation of MobileNet-v3-Large can be found
264
  [here](https://github.com/pytorch/vision/blob/main/LICENSE).
265
 
266
-
267
-
268
  ## References
269
  * [Searching for MobileNetV3](https://arxiv.org/abs/1905.02244)
270
  * [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/mobilenetv3.py)
271
 
272
-
273
-
274
  ## Community
275
  * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
276
  * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
277
-
278
-
 
12
 
13
  ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mobilenet_v3_large/web-assets/model_demo.png)
14
 
15
+ # MobileNet-v3-Large: Optimized for Qualcomm Devices
 
 
16
 
17
  MobileNet-v3-Large is a machine learning model that can classify images from the Imagenet dataset. It can also be used as a backbone in building more complex models for specific use cases.
18
 
19
+ This is based on the implementation of MobileNet-v3-Large found [here](https://github.com/pytorch/vision/blob/main/torchvision/models/mobilenetv3.py).
20
+ This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the [Qualcomm® AI Hub Models](https://github.com/quic/ai-hub-models/blob/main/qai_hub_models/models/mobilenet_v3_large) library to export with custom configurations. More details on model performance across various devices, can be found [here](#performance-summary).
21
+
22
+ 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.
23
+
24
+ ## Getting Started
25
+ There are two ways to deploy this model on your device:
26
+
27
+ ### Option 1: Download Pre-Exported Models
28
+
29
+ Below are pre-exported model assets ready for deployment.
30
+
31
+ | Runtime | Precision | Chipset | SDK Versions | Download |
32
+ |---|---|---|---|---|
33
+ | ONNX | float | Universal | QAIRT 2.37, ONNX Runtime 1.23.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mobilenet_v3_large/releases/v0.46.1/mobilenet_v3_large-onnx-float.zip)
34
+ | ONNX | w8a16 | Universal | QAIRT 2.37, ONNX Runtime 1.23.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mobilenet_v3_large/releases/v0.46.1/mobilenet_v3_large-onnx-w8a16.zip)
35
+ | QNN_DLC | float | Universal | QAIRT 2.42 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mobilenet_v3_large/releases/v0.46.1/mobilenet_v3_large-qnn_dlc-float.zip)
36
+ | QNN_DLC | w8a16 | Universal | QAIRT 2.42 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mobilenet_v3_large/releases/v0.46.1/mobilenet_v3_large-qnn_dlc-w8a16.zip)
37
+ | TFLITE | float | Universal | QAIRT 2.42, TFLite 2.17.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mobilenet_v3_large/releases/v0.46.1/mobilenet_v3_large-tflite-float.zip)
38
+
39
+ For more device-specific assets and performance metrics, visit **[MobileNet-v3-Large on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/mobilenet_v3_large)**.
40
+
41
+
42
+ ### Option 2: Export with Custom Configurations
43
+
44
+ Use the [Qualcomm® AI Hub Models](https://github.com/quic/ai-hub-models/blob/main/qai_hub_models/models/mobilenet_v3_large) Python library to compile and export the model with your own:
45
+ - Custom weights (e.g., fine-tuned checkpoints)
46
+ - Custom input shapes
47
+ - Target device and runtime configurations
48
+
49
+ This option is ideal if you need to customize the model beyond the default configuration provided here.
50
+
51
+ See our repository for [MobileNet-v3-Large on GitHub](https://github.com/quic/ai-hub-models/blob/main/qai_hub_models/models/mobilenet_v3_large) for usage instructions.
52
+
53
+ ## Model Details
54
+
55
+ **Model Type:** Model_use_case.image_classification
56
+
57
+ **Model Stats:**
58
+ - Model checkpoint: Imagenet
59
+ - Input resolution: 224x224
60
+ - Number of parameters: 5.47M
61
+ - Model size (float): 20.9 MB
62
+ - Model size (w8a16): 6.35 MB
63
+
64
+ ## Performance Summary
65
+ | Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit
66
+ |---|---|---|---|---|---|---
67
+ | MobileNet-v3-Large | ONNX | float | Snapdragon® X Elite | 0.826 ms | 13 - 13 MB | NPU
68
+ | MobileNet-v3-Large | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 0.682 ms | 0 - 123 MB | NPU
69
+ | MobileNet-v3-Large | ONNX | float | Qualcomm® QCS8550 (Proxy) | 0.901 ms | 0 - 25 MB | NPU
70
+ | MobileNet-v3-Large | ONNX | float | Qualcomm® QCS9075 | 1.257 ms | 1 - 3 MB | NPU
71
+ | MobileNet-v3-Large | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.528 ms | 0 - 103 MB | NPU
72
+ | MobileNet-v3-Large | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.479 ms | 0 - 104 MB | NPU
73
+ | MobileNet-v3-Large | ONNX | w8a16 | Snapdragon® X Elite | 0.824 ms | 6 - 6 MB | NPU
74
+ | MobileNet-v3-Large | ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 0.674 ms | 0 - 127 MB | NPU
75
+ | MobileNet-v3-Large | ONNX | w8a16 | Qualcomm® QCS6490 | 55.392 ms | 21 - 26 MB | CPU
76
+ | MobileNet-v3-Large | ONNX | w8a16 | Qualcomm® QCS8550 (Proxy) | 0.918 ms | 0 - 9 MB | NPU
77
+ | MobileNet-v3-Large | ONNX | w8a16 | Qualcomm® QCS9075 | 1.003 ms | 0 - 3 MB | NPU
78
+ | MobileNet-v3-Large | ONNX | w8a16 | Qualcomm® QCM6690 | 30.839 ms | 24 - 33 MB | CPU
79
+ | MobileNet-v3-Large | ONNX | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 0.483 ms | 0 - 109 MB | NPU
80
+ | MobileNet-v3-Large | ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 21.181 ms | 24 - 32 MB | CPU
81
+ | MobileNet-v3-Large | ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 0.397 ms | 0 - 107 MB | NPU
82
+ | MobileNet-v3-Large | QNN_DLC | float | Snapdragon® X Elite | 1.183 ms | 1 - 1 MB | NPU
83
+ | MobileNet-v3-Large | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 0.683 ms | 0 - 54 MB | NPU
84
+ | MobileNet-v3-Large | QNN_DLC | float | Qualcomm® QCS8275 (Proxy) | 2.975 ms | 1 - 35 MB | NPU
85
+ | MobileNet-v3-Large | QNN_DLC | float | Qualcomm® QCS8550 (Proxy) | 1.003 ms | 1 - 2 MB | NPU
86
+ | MobileNet-v3-Large | QNN_DLC | float | Qualcomm® SA8775P | 1.346 ms | 1 - 37 MB | NPU
87
+ | MobileNet-v3-Large | QNN_DLC | float | Qualcomm® QCS9075 | 1.227 ms | 1 - 3 MB | NPU
88
+ | MobileNet-v3-Large | QNN_DLC | float | Qualcomm® QCS8450 (Proxy) | 1.924 ms | 0 - 58 MB | NPU
89
+ | MobileNet-v3-Large | QNN_DLC | float | Qualcomm® SA7255P | 2.975 ms | 1 - 35 MB | NPU
90
+ | MobileNet-v3-Large | QNN_DLC | float | Qualcomm® SA8295P | 1.823 ms | 0 - 35 MB | NPU
91
+ | MobileNet-v3-Large | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.523 ms | 0 - 39 MB | NPU
92
+ | MobileNet-v3-Large | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.424 ms | 1 - 40 MB | NPU
93
+ | MobileNet-v3-Large | QNN_DLC | w8a16 | Snapdragon® X Elite | 1.115 ms | 0 - 0 MB | NPU
94
+ | MobileNet-v3-Large | QNN_DLC | w8a16 | Snapdragon® 8 Gen 3 Mobile | 0.659 ms | 0 - 47 MB | NPU
95
+ | MobileNet-v3-Large | QNN_DLC | w8a16 | Qualcomm® QCS6490 | 2.7 ms | 2 - 4 MB | NPU
96
+ | MobileNet-v3-Large | QNN_DLC | w8a16 | Qualcomm® QCS8275 (Proxy) | 2.077 ms | 0 - 34 MB | NPU
97
+ | MobileNet-v3-Large | QNN_DLC | w8a16 | Qualcomm® QCS8550 (Proxy) | 0.941 ms | 0 - 7 MB | NPU
98
+ | MobileNet-v3-Large | QNN_DLC | w8a16 | Qualcomm® SA8775P | 1.15 ms | 0 - 35 MB | NPU
99
+ | MobileNet-v3-Large | QNN_DLC | w8a16 | Qualcomm® QCS9075 | 1.163 ms | 2 - 4 MB | NPU
100
+ | MobileNet-v3-Large | QNN_DLC | w8a16 | Qualcomm® QCM6690 | 4.074 ms | 0 - 146 MB | NPU
101
+ | MobileNet-v3-Large | QNN_DLC | w8a16 | Qualcomm® QCS8450 (Proxy) | 1.244 ms | 0 - 52 MB | NPU
102
+ | MobileNet-v3-Large | QNN_DLC | w8a16 | Qualcomm® SA7255P | 2.077 ms | 0 - 34 MB | NPU
103
+ | MobileNet-v3-Large | QNN_DLC | w8a16 | Qualcomm® SA8295P | 1.542 ms | 0 - 31 MB | NPU
104
+ | MobileNet-v3-Large | QNN_DLC | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 0.456 ms | 0 - 31 MB | NPU
105
+ | MobileNet-v3-Large | QNN_DLC | w8a16 | Snapdragon® 7 Gen 4 Mobile | 0.992 ms | 0 - 31 MB | NPU
106
+ | MobileNet-v3-Large | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 0.363 ms | 0 - 35 MB | NPU
107
+ | MobileNet-v3-Large | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 0.682 ms | 0 - 61 MB | NPU
108
+ | MobileNet-v3-Large | TFLITE | float | Qualcomm® QCS8275 (Proxy) | 3.053 ms | 0 - 40 MB | NPU
109
+ | MobileNet-v3-Large | TFLITE | float | Qualcomm® QCS8550 (Proxy) | 1.011 ms | 0 - 2 MB | NPU
110
+ | MobileNet-v3-Large | TFLITE | float | Qualcomm® SA8775P | 1.384 ms | 0 - 43 MB | NPU
111
+ | MobileNet-v3-Large | TFLITE | float | Qualcomm® QCS9075 | 1.275 ms | 0 - 15 MB | NPU
112
+ | MobileNet-v3-Large | TFLITE | float | Qualcomm® QCS8450 (Proxy) | 1.922 ms | 0 - 64 MB | NPU
113
+ | MobileNet-v3-Large | TFLITE | float | Qualcomm® SA7255P | 3.053 ms | 0 - 40 MB | NPU
114
+ | MobileNet-v3-Large | TFLITE | float | Qualcomm® SA8295P | 1.842 ms | 0 - 40 MB | NPU
115
+ | MobileNet-v3-Large | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.52 ms | 0 - 40 MB | NPU
116
+ | MobileNet-v3-Large | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.43 ms | 0 - 45 MB | NPU
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
 
118
  ## License
119
  * The license for the original implementation of MobileNet-v3-Large can be found
120
  [here](https://github.com/pytorch/vision/blob/main/LICENSE).
121
 
 
 
122
  ## References
123
  * [Searching for MobileNetV3](https://arxiv.org/abs/1905.02244)
124
  * [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/mobilenetv3.py)
125
 
 
 
126
  ## Community
127
  * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
128
  * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
 
 
tool-versions.yaml DELETED
@@ -1,4 +0,0 @@
1
- tool_versions:
2
- onnx:
3
- qairt: 2.37.1.250807093845_124904
4
- onnx_runtime: 1.23.0