qaihm-bot commited on
Commit
e95c8b6
·
verified ·
1 Parent(s): ad99596

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

README.md CHANGED
@@ -11,242 +11,118 @@ pipeline_tag: image-classification
11
 
12
  ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_tiny/web-assets/model_demo.png)
13
 
14
- # Swin-Tiny: Optimized for Mobile Deployment
15
- ## Imagenet classifier and general purpose backbone
16
-
17
 
18
  SwinTiny 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.
19
 
20
- This model is an implementation of Swin-Tiny found [here](https://github.com/pytorch/vision/blob/main/torchvision/models/swin_transformer.py).
21
-
22
-
23
- This repository provides scripts to run Swin-Tiny on Qualcomm® devices.
24
- More details on model performance across various devices, can be found
25
- [here](https://aihub.qualcomm.com/models/swin_tiny).
26
-
27
-
28
-
29
- ### Model Details
30
-
31
- - **Model Type:** Model_use_case.image_classification
32
- - **Model Stats:**
33
- - Model checkpoint: Imagenet
34
- - Input resolution: 224x224
35
- - Number of parameters: 28.8M
36
- - Model size (float): 110 MB
37
- - Model size (w8a16): 29.9 MB
38
-
39
- | Model | Precision | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit | Target Model
40
- |---|---|---|---|---|---|---|---|---|
41
- | Swin-Tiny | float | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | TFLITE | 23.049 ms | 0 - 303 MB | NPU | [Swin-Tiny.tflite](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny.tflite) |
42
- | Swin-Tiny | float | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | TFLITE | 15.486 ms | 0 - 355 MB | NPU | [Swin-Tiny.tflite](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny.tflite) |
43
- | Swin-Tiny | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | TFLITE | 10.29 ms | 0 - 4 MB | NPU | [Swin-Tiny.tflite](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny.tflite) |
44
- | Swin-Tiny | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | ONNX | 8.81 ms | 0 - 66 MB | NPU | [Swin-Tiny.onnx.zip](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny.onnx.zip) |
45
- | Swin-Tiny | float | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | TFLITE | 51.611 ms | 0 - 303 MB | NPU | [Swin-Tiny.tflite](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny.tflite) |
46
- | Swin-Tiny | float | SA7255P ADP | Qualcomm® SA7255P | TFLITE | 23.049 ms | 0 - 303 MB | NPU | [Swin-Tiny.tflite](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny.tflite) |
47
- | Swin-Tiny | float | SA8295P ADP | Qualcomm® SA8295P | TFLITE | 14.973 ms | 0 - 296 MB | NPU | [Swin-Tiny.tflite](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny.tflite) |
48
- | Swin-Tiny | float | SA8775P ADP | Qualcomm® SA8775P | TFLITE | 51.611 ms | 0 - 303 MB | NPU | [Swin-Tiny.tflite](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny.tflite) |
49
- | Swin-Tiny | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | TFLITE | 6.802 ms | 0 - 369 MB | NPU | [Swin-Tiny.tflite](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny.tflite) |
50
- | Swin-Tiny | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | ONNX | 5.749 ms | 1 - 328 MB | NPU | [Swin-Tiny.onnx.zip](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny.onnx.zip) |
51
- | Swin-Tiny | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | TFLITE | 5.178 ms | 0 - 297 MB | NPU | [Swin-Tiny.tflite](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny.tflite) |
52
- | Swin-Tiny | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | ONNX | 4.447 ms | 0 - 257 MB | NPU | [Swin-Tiny.onnx.zip](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny.onnx.zip) |
53
- | Swin-Tiny | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | TFLITE | 4.141 ms | 0 - 304 MB | NPU | [Swin-Tiny.tflite](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny.tflite) |
54
- | Swin-Tiny | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | ONNX | 3.806 ms | 0 - 482 MB | NPU | [Swin-Tiny.onnx.zip](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny.onnx.zip) |
55
- | Swin-Tiny | float | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 9.231 ms | 57 - 57 MB | NPU | [Swin-Tiny.onnx.zip](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny.onnx.zip) |
56
- | Swin-Tiny | w8a16 | Dragonwing Q-6690 MTP | Qualcomm® QCM6690 | ONNX | 216.307 ms | 104 - 121 MB | CPU | [Swin-Tiny.onnx.zip](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny_w8a16.onnx.zip) |
57
- | Swin-Tiny | w8a16 | Dragonwing RB3 Gen 2 Vision Kit | Qualcomm® QCS6490 | ONNX | 402.27 ms | 97 - 115 MB | CPU | [Swin-Tiny.onnx.zip](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny_w8a16.onnx.zip) |
58
- | Swin-Tiny | w8a16 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | ONNX | 92.895 ms | 33 - 55 MB | NPU | [Swin-Tiny.onnx.zip](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny_w8a16.onnx.zip) |
59
- | Swin-Tiny | w8a16 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | ONNX | 75.47 ms | 34 - 311 MB | NPU | [Swin-Tiny.onnx.zip](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny_w8a16.onnx.zip) |
60
- | Swin-Tiny | w8a16 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | ONNX | 62.948 ms | 20 - 228 MB | NPU | [Swin-Tiny.onnx.zip](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny_w8a16.onnx.zip) |
61
- | Swin-Tiny | w8a16 | Snapdragon 7 Gen 4 QRD | Snapdragon® 7 Gen 4 Mobile | ONNX | 197.88 ms | 107 - 126 MB | CPU | [Swin-Tiny.onnx.zip](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny_w8a16.onnx.zip) |
62
- | Swin-Tiny | w8a16 | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | ONNX | 58.349 ms | 44 - 243 MB | NPU | [Swin-Tiny.onnx.zip](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny_w8a16.onnx.zip) |
63
- | Swin-Tiny | w8a16 | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 68.431 ms | 62 - 62 MB | NPU | [Swin-Tiny.onnx.zip](https://huggingface.co/qualcomm/Swin-Tiny/blob/main/Swin-Tiny_w8a16.onnx.zip) |
64
-
65
-
66
-
67
-
68
- ## Installation
69
-
70
-
71
- Install the package via pip:
72
- ```bash
73
- pip install qai-hub-models
74
- ```
75
-
76
-
77
- ## Configure Qualcomm® AI Hub Workbench to run this model on a cloud-hosted device
78
-
79
- Sign-in to [Qualcomm® AI Hub Workbench](https://workbench.aihub.qualcomm.com/) with your
80
- Qualcomm® ID. Once signed in navigate to `Account -> Settings -> API Token`.
81
-
82
- With this API token, you can configure your client to run models on the cloud
83
- hosted devices.
84
- ```bash
85
- qai-hub configure --api_token API_TOKEN
86
- ```
87
- Navigate to [docs](https://workbench.aihub.qualcomm.com/docs/) for more information.
88
-
89
-
90
-
91
- ## Demo off target
92
-
93
- The package contains a simple end-to-end demo that downloads pre-trained
94
- weights and runs this model on a sample input.
95
-
96
- ```bash
97
- python -m qai_hub_models.models.swin_tiny.demo
98
- ```
99
-
100
- The above demo runs a reference implementation of pre-processing, model
101
- inference, and post processing.
102
-
103
- **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
104
- environment, please add the following to your cell (instead of the above).
105
- ```
106
- %run -m qai_hub_models.models.swin_tiny.demo
107
- ```
108
-
109
-
110
- ### Run model on a cloud-hosted device
111
-
112
- In addition to the demo, you can also run the model on a cloud-hosted Qualcomm®
113
- device. This script does the following:
114
- * Performance check on-device on a cloud-hosted device
115
- * Downloads compiled assets that can be deployed on-device for Android.
116
- * Accuracy check between PyTorch and on-device outputs.
117
-
118
- ```bash
119
- python -m qai_hub_models.models.swin_tiny.export
120
- ```
121
-
122
-
123
-
124
- ## How does this work?
125
-
126
- This [export script](https://aihub.qualcomm.com/models/swin_tiny/qai_hub_models/models/Swin-Tiny/export.py)
127
- leverages [Qualcomm® AI Hub](https://aihub.qualcomm.com/) to optimize, validate, and deploy this model
128
- on-device. Lets go through each step below in detail:
129
-
130
- Step 1: **Compile model for on-device deployment**
131
-
132
- To compile a PyTorch model for on-device deployment, we first trace the model
133
- in memory using the `jit.trace` and then call the `submit_compile_job` API.
134
-
135
- ```python
136
- import torch
137
-
138
- import qai_hub as hub
139
- from qai_hub_models.models.swin_tiny import Model
140
-
141
- # Load the model
142
- torch_model = Model.from_pretrained()
143
-
144
- # Device
145
- device = hub.Device("Samsung Galaxy S25")
146
-
147
- # Trace model
148
- input_shape = torch_model.get_input_spec()
149
- sample_inputs = torch_model.sample_inputs()
150
-
151
- pt_model = torch.jit.trace(torch_model, [torch.tensor(data[0]) for _, data in sample_inputs.items()])
152
-
153
- # Compile model on a specific device
154
- compile_job = hub.submit_compile_job(
155
- model=pt_model,
156
- device=device,
157
- input_specs=torch_model.get_input_spec(),
158
- )
159
-
160
- # Get target model to run on-device
161
- target_model = compile_job.get_target_model()
162
-
163
- ```
164
-
165
-
166
- Step 2: **Performance profiling on cloud-hosted device**
167
-
168
- After compiling models from step 1. Models can be profiled model on-device using the
169
- `target_model`. Note that this scripts runs the model on a device automatically
170
- provisioned in the cloud. Once the job is submitted, you can navigate to a
171
- provided job URL to view a variety of on-device performance metrics.
172
- ```python
173
- profile_job = hub.submit_profile_job(
174
- model=target_model,
175
- device=device,
176
- )
177
-
178
- ```
179
-
180
- Step 3: **Verify on-device accuracy**
181
-
182
- To verify the accuracy of the model on-device, you can run on-device inference
183
- on sample input data on the same cloud hosted device.
184
- ```python
185
- input_data = torch_model.sample_inputs()
186
- inference_job = hub.submit_inference_job(
187
- model=target_model,
188
- device=device,
189
- inputs=input_data,
190
- )
191
- on_device_output = inference_job.download_output_data()
192
-
193
- ```
194
- With the output of the model, you can compute like PSNR, relative errors or
195
- spot check the output with expected output.
196
-
197
- **Note**: This on-device profiling and inference requires access to Qualcomm®
198
- AI Hub Workbench. [Sign up for access](https://myaccount.qualcomm.com/signup).
199
-
200
-
201
-
202
- ## Run demo on a cloud-hosted device
203
-
204
- You can also run the demo on-device.
205
-
206
- ```bash
207
- python -m qai_hub_models.models.swin_tiny.demo --eval-mode on-device
208
- ```
209
-
210
- **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
211
- environment, please add the following to your cell (instead of the above).
212
- ```
213
- %run -m qai_hub_models.models.swin_tiny.demo -- --eval-mode on-device
214
- ```
215
-
216
-
217
- ## Deploying compiled model to Android
218
-
219
-
220
- The models can be deployed using multiple runtimes:
221
- - TensorFlow Lite (`.tflite` export): [This
222
- tutorial](https://www.tensorflow.org/lite/android/quickstart) provides a
223
- guide to deploy the .tflite model in an Android application.
224
-
225
-
226
- - QNN (`.so` export ): This [sample
227
- app](https://docs.qualcomm.com/bundle/publicresource/topics/80-63442-50/sample_app.html)
228
- provides instructions on how to use the `.so` shared library in an Android application.
229
-
230
-
231
- ## View on Qualcomm® AI Hub
232
- Get more details on Swin-Tiny's performance across various devices [here](https://aihub.qualcomm.com/models/swin_tiny).
233
- Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
234
-
235
 
236
  ## License
237
  * The license for the original implementation of Swin-Tiny can be found
238
  [here](https://github.com/pytorch/vision/blob/main/LICENSE).
239
 
240
-
241
-
242
  ## References
243
  * [Swin Transformer: Hierarchical Vision Transformer using Shifted Windows](https://arxiv.org/abs/2103.14030)
244
  * [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/swin_transformer.py)
245
 
246
-
247
-
248
  ## Community
249
  * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
250
  * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
251
-
252
-
 
11
 
12
  ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_tiny/web-assets/model_demo.png)
13
 
14
+ # Swin-Tiny: Optimized for Qualcomm Devices
 
 
15
 
16
  SwinTiny 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.
17
 
18
+ This is based on the implementation of Swin-Tiny found [here](https://github.com/pytorch/vision/blob/main/torchvision/models/swin_transformer.py).
19
+ 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/main/src/qai_hub_models/models/swin_tiny) library to export with custom configurations. More details on model performance across various devices, can be found [here](#performance-summary).
20
+
21
+ 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.
22
+
23
+ ## Getting Started
24
+ There are two ways to deploy this model on your device:
25
+
26
+ ### Option 1: Download Pre-Exported Models
27
+
28
+ Below are pre-exported model assets ready for deployment.
29
+
30
+ | Runtime | Precision | Chipset | SDK Versions | Download |
31
+ |---|---|---|---|---|
32
+ | ONNX | float | Universal | QAIRT 2.42, ONNX Runtime 1.24.3 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_tiny/releases/v0.51.0/swin_tiny-onnx-float.zip)
33
+ | ONNX | w8a16 | Universal | QAIRT 2.42, ONNX Runtime 1.24.3 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_tiny/releases/v0.51.0/swin_tiny-onnx-w8a16.zip)
34
+ | QNN_DLC | float | Universal | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_tiny/releases/v0.51.0/swin_tiny-qnn_dlc-float.zip)
35
+ | QNN_DLC | w8a16 | Universal | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_tiny/releases/v0.51.0/swin_tiny-qnn_dlc-w8a16.zip)
36
+ | TFLITE | float | Universal | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_tiny/releases/v0.51.0/swin_tiny-tflite-float.zip)
37
+
38
+ For more device-specific assets and performance metrics, visit **[Swin-Tiny on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/swin_tiny)**.
39
+
40
+
41
+ ### Option 2: Export with Custom Configurations
42
+
43
+ Use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/main/src/qai_hub_models/models/swin_tiny) Python library to compile and export the model with your own:
44
+ - Custom weights (e.g., fine-tuned checkpoints)
45
+ - Custom input shapes
46
+ - Target device and runtime configurations
47
+
48
+ This option is ideal if you need to customize the model beyond the default configuration provided here.
49
+
50
+ See our repository for [Swin-Tiny on GitHub](https://github.com/qualcomm/ai-hub-models/blob/main/src/qai_hub_models/models/swin_tiny) for usage instructions.
51
+
52
+ ## Model Details
53
+
54
+ **Model Type:** Model_use_case.image_classification
55
+
56
+ **Model Stats:**
57
+ - Model checkpoint: Imagenet
58
+ - Input resolution: 224x224
59
+ - Number of parameters: 28.8M
60
+ - Model size (float): 110 MB
61
+ - Model size (w8a16): 29.9 MB
62
+
63
+ ## Performance Summary
64
+ | Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit
65
+ |---|---|---|---|---|---|---
66
+ | Swin-Tiny | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 4.071 ms | 1 - 254 MB | NPU
67
+ | Swin-Tiny | ONNX | float | Snapdragon® X2 Elite | 4.398 ms | 61 - 61 MB | NPU
68
+ | Swin-Tiny | ONNX | float | Snapdragon® X Elite | 10.97 ms | 60 - 60 MB | NPU
69
+ | Swin-Tiny | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 6.896 ms | 0 - 315 MB | NPU
70
+ | Swin-Tiny | ONNX | float | Qualcomm® QCS8550 (Proxy) | 10.279 ms | 0 - 74 MB | NPU
71
+ | Swin-Tiny | ONNX | float | Qualcomm® QCS9075 | 12.34 ms | 0 - 4 MB | NPU
72
+ | Swin-Tiny | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 5.027 ms | 1 - 216 MB | NPU
73
+ | Swin-Tiny | ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 3.432 ms | 0 - 248 MB | NPU
74
+ | Swin-Tiny | ONNX | w8a16 | Snapdragon® X2 Elite | 3.678 ms | 33 - 33 MB | NPU
75
+ | Swin-Tiny | ONNX | w8a16 | Snapdragon® X Elite | 8.831 ms | 34 - 34 MB | NPU
76
+ | Swin-Tiny | ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 5.445 ms | 0 - 348 MB | NPU
77
+ | Swin-Tiny | ONNX | w8a16 | Qualcomm® QCS6490 | 423.954 ms | 96 - 112 MB | CPU
78
+ | Swin-Tiny | ONNX | w8a16 | Qualcomm® QCS8550 (Proxy) | 8.315 ms | 0 - 44 MB | NPU
79
+ | Swin-Tiny | ONNX | w8a16 | Qualcomm® QCS9075 | 10.077 ms | 0 - 3 MB | NPU
80
+ | Swin-Tiny | ONNX | w8a16 | Qualcomm® QCM6690 | 217.014 ms | 107 - 123 MB | CPU
81
+ | Swin-Tiny | ONNX | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 4.357 ms | 0 - 289 MB | NPU
82
+ | Swin-Tiny | ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 199.597 ms | 107 - 124 MB | CPU
83
+ | Swin-Tiny | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 3.849 ms | 0 - 424 MB | NPU
84
+ | Swin-Tiny | QNN_DLC | float | Snapdragon® X2 Elite | 4.433 ms | 1 - 1 MB | NPU
85
+ | Swin-Tiny | QNN_DLC | float | Snapdragon® X Elite | 10.433 ms | 1 - 1 MB | NPU
86
+ | Swin-Tiny | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 6.278 ms | 0 - 594 MB | NPU
87
+ | Swin-Tiny | QNN_DLC | float | Qualcomm® QCS8275 (Proxy) | 22.039 ms | 1 - 440 MB | NPU
88
+ | Swin-Tiny | QNN_DLC | float | Qualcomm® QCS8550 (Proxy) | 9.571 ms | 1 - 2 MB | NPU
89
+ | Swin-Tiny | QNN_DLC | float | Qualcomm® SA8775P | 10.93 ms | 1 - 182 MB | NPU
90
+ | Swin-Tiny | QNN_DLC | float | Qualcomm® QCS9075 | 11.969 ms | 1 - 3 MB | NPU
91
+ | Swin-Tiny | QNN_DLC | float | Qualcomm® QCS8450 (Proxy) | 15.33 ms | 0 - 244 MB | NPU
92
+ | Swin-Tiny | QNN_DLC | float | Qualcomm® SA7255P | 22.039 ms | 1 - 440 MB | NPU
93
+ | Swin-Tiny | QNN_DLC | float | Qualcomm® SA8295P | 14.292 ms | 1 - 435 MB | NPU
94
+ | Swin-Tiny | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 4.777 ms | 1 - 418 MB | NPU
95
+ | Swin-Tiny | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 3.829 ms | 0 - 441 MB | NPU
96
+ | Swin-Tiny | QNN_DLC | w8a16 | Snapdragon® X2 Elite | 4.423 ms | 0 - 0 MB | NPU
97
+ | Swin-Tiny | QNN_DLC | w8a16 | Snapdragon® X Elite | 10.929 ms | 0 - 0 MB | NPU
98
+ | Swin-Tiny | QNN_DLC | w8a16 | Snapdragon® 8 Gen 3 Mobile | 6.536 ms | 0 - 509 MB | NPU
99
+ | Swin-Tiny | QNN_DLC | w8a16 | Qualcomm® QCS8275 (Proxy) | 17.481 ms | 0 - 438 MB | NPU
100
+ | Swin-Tiny | QNN_DLC | w8a16 | Qualcomm® QCS8550 (Proxy) | 9.967 ms | 0 - 190 MB | NPU
101
+ | Swin-Tiny | QNN_DLC | w8a16 | Qualcomm® SA8775P | 10.561 ms | 0 - 446 MB | NPU
102
+ | Swin-Tiny | QNN_DLC | w8a16 | Qualcomm® QCS9075 | 11.794 ms | 0 - 2 MB | NPU
103
+ | Swin-Tiny | QNN_DLC | w8a16 | Qualcomm® QCM6690 | 40.36 ms | 0 - 519 MB | NPU
104
+ | Swin-Tiny | QNN_DLC | w8a16 | Qualcomm® SA7255P | 17.481 ms | 0 - 438 MB | NPU
105
+ | Swin-Tiny | QNN_DLC | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 4.944 ms | 0 - 436 MB | NPU
106
+ | Swin-Tiny | QNN_DLC | w8a16 | Snapdragon® 7 Gen 4 Mobile | 10.679 ms | 0 - 427 MB | NPU
107
+ | Swin-Tiny | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 4.095 ms | 0 - 203 MB | NPU
108
+ | Swin-Tiny | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 6.861 ms | 0 - 281 MB | NPU
109
+ | Swin-Tiny | TFLITE | float | Qualcomm® QCS8275 (Proxy) | 23.322 ms | 0 - 209 MB | NPU
110
+ | Swin-Tiny | TFLITE | float | Qualcomm® QCS8550 (Proxy) | 10.613 ms | 0 - 3 MB | NPU
111
+ | Swin-Tiny | TFLITE | float | Qualcomm® SA8775P | 11.662 ms | 0 - 209 MB | NPU
112
+ | Swin-Tiny | TFLITE | float | Qualcomm® QCS9075 | 12.887 ms | 0 - 60 MB | NPU
113
+ | Swin-Tiny | TFLITE | float | Qualcomm® QCS8450 (Proxy) | 15.623 ms | 0 - 266 MB | NPU
114
+ | Swin-Tiny | TFLITE | float | Qualcomm® SA7255P | 23.322 ms | 0 - 209 MB | NPU
115
+ | Swin-Tiny | TFLITE | float | Qualcomm® SA8295P | 15.204 ms | 0 - 208 MB | NPU
116
+ | Swin-Tiny | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 5.146 ms | 0 - 199 MB | NPU
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
 
118
  ## License
119
  * The license for the original implementation of Swin-Tiny can be found
120
  [here](https://github.com/pytorch/vision/blob/main/LICENSE).
121
 
 
 
122
  ## References
123
  * [Swin Transformer: Hierarchical Vision Transformer using Shifted Windows](https://arxiv.org/abs/2103.14030)
124
  * [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/swin_transformer.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).
 
 
Swin-Tiny_float.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b676c362776aefe606232197cb18c2e7fc866ed5e4d02c7c3ab2b1434b5e231d
3
- size 105339415
 
 
 
 
Swin-Tiny_float.tflite DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:30aa63ba1bd105871670dd0873b16c92b474dc2fc596a48f0857b4762278ebdd
3
- size 115345012
 
 
 
 
Swin-Tiny_w8a16.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0788192f2fdbadec66ce7be44374bf9fdaff1697fcda451542721d1ef83ce60b
3
- size 97056770
 
 
 
 
release_assets.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "0.51.0",
3
+ "precisions": {
4
+ "w8a16": {
5
+ "universal_assets": {
6
+ "qnn_dlc": {
7
+ "tool_versions": {
8
+ "qairt": "2.45.0.260326154327"
9
+ },
10
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_tiny/releases/v0.51.0/swin_tiny-qnn_dlc-w8a16.zip"
11
+ },
12
+ "onnx": {
13
+ "tool_versions": {
14
+ "qairt": "2.42.0.251225135753_193295",
15
+ "onnx_runtime": "1.24.3"
16
+ },
17
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_tiny/releases/v0.51.0/swin_tiny-onnx-w8a16.zip"
18
+ }
19
+ }
20
+ },
21
+ "float": {
22
+ "universal_assets": {
23
+ "tflite": {
24
+ "tool_versions": {
25
+ "qairt": "2.45.0.260326154327",
26
+ "litert": "1.4.2"
27
+ },
28
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_tiny/releases/v0.51.0/swin_tiny-tflite-float.zip"
29
+ },
30
+ "qnn_dlc": {
31
+ "tool_versions": {
32
+ "qairt": "2.45.0.260326154327"
33
+ },
34
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_tiny/releases/v0.51.0/swin_tiny-qnn_dlc-float.zip"
35
+ },
36
+ "onnx": {
37
+ "tool_versions": {
38
+ "qairt": "2.42.0.251225135753_193295",
39
+ "onnx_runtime": "1.24.3"
40
+ },
41
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_tiny/releases/v0.51.0/swin_tiny-onnx-float.zip"
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
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