qaihm-bot commited on
Commit
921a529
·
verified ·
1 Parent(s): 361059c

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

README.md CHANGED
@@ -11,234 +11,118 @@ pipeline_tag: image-classification
11
 
12
  ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_base/web-assets/model_demo.png)
13
 
14
- # Swin-Base: Optimized for Mobile Deployment
15
- ## Imagenet classifier and general purpose backbone
16
-
17
 
18
  SwinBase 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-Base found [here](https://github.com/pytorch/vision/blob/main/torchvision/models/swin_transformer.py).
21
-
22
-
23
- This repository provides scripts to run Swin-Base on Qualcomm® devices.
24
- More details on model performance across various devices, can be found
25
- [here](https://aihub.qualcomm.com/models/swin_base).
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: 88.8M
36
- - Model size (float): 339 MB
37
- - Model size (w8a16): 90.2 MB
38
-
39
- | Model | Precision | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit | Target Model
40
- |---|---|---|---|---|---|---|---|---|
41
- | Swin-Base | float | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | TFLITE | 58.202 ms | 0 - 531 MB | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
42
- | Swin-Base | float | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | TFLITE | 30.835 ms | 0 - 580 MB | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
43
- | Swin-Base | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | TFLITE | 22.022 ms | 1 - 4 MB | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
44
- | Swin-Base | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | ONNX | 18.981 ms | 0 - 195 MB | NPU | [Swin-Base.onnx.zip](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.onnx.zip) |
45
- | Swin-Base | float | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | TFLITE | 24.974 ms | 0 - 528 MB | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
46
- | Swin-Base | float | SA7255P ADP | Qualcomm® SA7255P | TFLITE | 58.202 ms | 0 - 531 MB | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
47
- | Swin-Base | float | SA8295P ADP | Qualcomm® SA8295P | TFLITE | 31.95 ms | 0 - 518 MB | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
48
- | Swin-Base | float | SA8775P ADP | Qualcomm® SA8775P | TFLITE | 24.974 ms | 0 - 528 MB | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
49
- | Swin-Base | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | TFLITE | 14.871 ms | 0 - 606 MB | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
50
- | Swin-Base | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | ONNX | 12.836 ms | 0 - 556 MB | NPU | [Swin-Base.onnx.zip](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.onnx.zip) |
51
- | Swin-Base | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | TFLITE | 11.061 ms | 0 - 840 MB | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
52
- | Swin-Base | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | ONNX | 9.662 ms | 1 - 452 MB | NPU | [Swin-Base.onnx.zip](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.onnx.zip) |
53
- | Swin-Base | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | TFLITE | 9.026 ms | 0 - 540 MB | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
54
- | Swin-Base | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | ONNX | 8.06 ms | 1 - 474 MB | NPU | [Swin-Base.onnx.zip](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.onnx.zip) |
55
- | Swin-Base | float | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 19.418 ms | 175 - 175 MB | NPU | [Swin-Base.onnx.zip](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.onnx.zip) |
56
-
57
-
58
-
59
-
60
- ## Installation
61
-
62
-
63
- Install the package via pip:
64
- ```bash
65
- pip install qai-hub-models
66
- ```
67
-
68
-
69
- ## Configure Qualcomm® AI Hub Workbench to run this model on a cloud-hosted device
70
-
71
- Sign-in to [Qualcomm® AI Hub Workbench](https://workbench.aihub.qualcomm.com/) with your
72
- Qualcomm® ID. Once signed in navigate to `Account -> Settings -> API Token`.
73
-
74
- With this API token, you can configure your client to run models on the cloud
75
- hosted devices.
76
- ```bash
77
- qai-hub configure --api_token API_TOKEN
78
- ```
79
- Navigate to [docs](https://workbench.aihub.qualcomm.com/docs/) for more information.
80
-
81
-
82
-
83
- ## Demo off target
84
-
85
- The package contains a simple end-to-end demo that downloads pre-trained
86
- weights and runs this model on a sample input.
87
-
88
- ```bash
89
- python -m qai_hub_models.models.swin_base.demo
90
- ```
91
-
92
- The above demo runs a reference implementation of pre-processing, model
93
- inference, and post processing.
94
-
95
- **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
96
- environment, please add the following to your cell (instead of the above).
97
- ```
98
- %run -m qai_hub_models.models.swin_base.demo
99
- ```
100
-
101
-
102
- ### Run model on a cloud-hosted device
103
-
104
- In addition to the demo, you can also run the model on a cloud-hosted Qualcomm®
105
- device. This script does the following:
106
- * Performance check on-device on a cloud-hosted device
107
- * Downloads compiled assets that can be deployed on-device for Android.
108
- * Accuracy check between PyTorch and on-device outputs.
109
-
110
- ```bash
111
- python -m qai_hub_models.models.swin_base.export
112
- ```
113
-
114
-
115
-
116
- ## How does this work?
117
-
118
- This [export script](https://aihub.qualcomm.com/models/swin_base/qai_hub_models/models/Swin-Base/export.py)
119
- leverages [Qualcomm® AI Hub](https://aihub.qualcomm.com/) to optimize, validate, and deploy this model
120
- on-device. Lets go through each step below in detail:
121
-
122
- Step 1: **Compile model for on-device deployment**
123
-
124
- To compile a PyTorch model for on-device deployment, we first trace the model
125
- in memory using the `jit.trace` and then call the `submit_compile_job` API.
126
-
127
- ```python
128
- import torch
129
-
130
- import qai_hub as hub
131
- from qai_hub_models.models.swin_base import Model
132
-
133
- # Load the model
134
- torch_model = Model.from_pretrained()
135
-
136
- # Device
137
- device = hub.Device("Samsung Galaxy S25")
138
-
139
- # Trace model
140
- input_shape = torch_model.get_input_spec()
141
- sample_inputs = torch_model.sample_inputs()
142
-
143
- pt_model = torch.jit.trace(torch_model, [torch.tensor(data[0]) for _, data in sample_inputs.items()])
144
-
145
- # Compile model on a specific device
146
- compile_job = hub.submit_compile_job(
147
- model=pt_model,
148
- device=device,
149
- input_specs=torch_model.get_input_spec(),
150
- )
151
-
152
- # Get target model to run on-device
153
- target_model = compile_job.get_target_model()
154
-
155
- ```
156
-
157
-
158
- Step 2: **Performance profiling on cloud-hosted device**
159
-
160
- After compiling models from step 1. Models can be profiled model on-device using the
161
- `target_model`. Note that this scripts runs the model on a device automatically
162
- provisioned in the cloud. Once the job is submitted, you can navigate to a
163
- provided job URL to view a variety of on-device performance metrics.
164
- ```python
165
- profile_job = hub.submit_profile_job(
166
- model=target_model,
167
- device=device,
168
- )
169
-
170
- ```
171
-
172
- Step 3: **Verify on-device accuracy**
173
-
174
- To verify the accuracy of the model on-device, you can run on-device inference
175
- on sample input data on the same cloud hosted device.
176
- ```python
177
- input_data = torch_model.sample_inputs()
178
- inference_job = hub.submit_inference_job(
179
- model=target_model,
180
- device=device,
181
- inputs=input_data,
182
- )
183
- on_device_output = inference_job.download_output_data()
184
-
185
- ```
186
- With the output of the model, you can compute like PSNR, relative errors or
187
- spot check the output with expected output.
188
-
189
- **Note**: This on-device profiling and inference requires access to Qualcomm®
190
- AI Hub Workbench. [Sign up for access](https://myaccount.qualcomm.com/signup).
191
-
192
-
193
-
194
- ## Run demo on a cloud-hosted device
195
-
196
- You can also run the demo on-device.
197
-
198
- ```bash
199
- python -m qai_hub_models.models.swin_base.demo --eval-mode on-device
200
- ```
201
-
202
- **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
203
- environment, please add the following to your cell (instead of the above).
204
- ```
205
- %run -m qai_hub_models.models.swin_base.demo -- --eval-mode on-device
206
- ```
207
-
208
-
209
- ## Deploying compiled model to Android
210
-
211
-
212
- The models can be deployed using multiple runtimes:
213
- - TensorFlow Lite (`.tflite` export): [This
214
- tutorial](https://www.tensorflow.org/lite/android/quickstart) provides a
215
- guide to deploy the .tflite model in an Android application.
216
-
217
-
218
- - QNN (`.so` export ): This [sample
219
- app](https://docs.qualcomm.com/bundle/publicresource/topics/80-63442-50/sample_app.html)
220
- provides instructions on how to use the `.so` shared library in an Android application.
221
-
222
-
223
- ## View on Qualcomm® AI Hub
224
- Get more details on Swin-Base's performance across various devices [here](https://aihub.qualcomm.com/models/swin_base).
225
- Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
226
-
227
 
228
  ## License
229
  * The license for the original implementation of Swin-Base can be found
230
  [here](https://github.com/pytorch/vision/blob/main/LICENSE).
231
 
232
-
233
-
234
  ## References
235
  * [Swin Transformer: Hierarchical Vision Transformer using Shifted Windows](https://arxiv.org/abs/2103.14030)
236
  * [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/swin_transformer.py)
237
 
238
-
239
-
240
  ## Community
241
  * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
242
  * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
243
-
244
-
 
11
 
12
  ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_base/web-assets/model_demo.png)
13
 
14
+ # Swin-Base: Optimized for Qualcomm Devices
 
 
15
 
16
  SwinBase 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-Base 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_base) 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_base/releases/v0.51.0/swin_base-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_base/releases/v0.51.0/swin_base-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_base/releases/v0.51.0/swin_base-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_base/releases/v0.51.0/swin_base-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_base/releases/v0.51.0/swin_base-tflite-float.zip)
37
+
38
+ For more device-specific assets and performance metrics, visit **[Swin-Base on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/swin_base)**.
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_base) 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-Base on GitHub](https://github.com/qualcomm/ai-hub-models/blob/main/src/qai_hub_models/models/swin_base) 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: 88.8M
60
+ - Model size (float): 339 MB
61
+ - Model size (w8a16): 90.2 MB
62
+
63
+ ## Performance Summary
64
+ | Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit
65
+ |---|---|---|---|---|---|---
66
+ | Swin-Base | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 8.962 ms | 1 - 539 MB | NPU
67
+ | Swin-Base | ONNX | float | Snapdragon® X2 Elite | 9.862 ms | 187 - 187 MB | NPU
68
+ | Swin-Base | ONNX | float | Snapdragon® X Elite | 24.088 ms | 186 - 186 MB | NPU
69
+ | Swin-Base | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 15.991 ms | 0 - 594 MB | NPU
70
+ | Swin-Base | ONNX | float | Qualcomm® QCS8550 (Proxy) | 22.958 ms | 0 - 197 MB | NPU
71
+ | Swin-Base | ONNX | float | Qualcomm® QCS9075 | 27.442 ms | 0 - 4 MB | NPU
72
+ | Swin-Base | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 11.706 ms | 1 - 520 MB | NPU
73
+ | Swin-Base | ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 7.166 ms | 0 - 475 MB | NPU
74
+ | Swin-Base | ONNX | w8a16 | Snapdragon® X2 Elite | 7.739 ms | 99 - 99 MB | NPU
75
+ | Swin-Base | ONNX | w8a16 | Snapdragon® X Elite | 18.014 ms | 106 - 106 MB | NPU
76
+ | Swin-Base | ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 11.731 ms | 0 - 598 MB | NPU
77
+ | Swin-Base | ONNX | w8a16 | Qualcomm® QCS6490 | 1121.83 ms | 53 - 83 MB | CPU
78
+ | Swin-Base | ONNX | w8a16 | Qualcomm® QCS8550 (Proxy) | 17.208 ms | 0 - 128 MB | NPU
79
+ | Swin-Base | ONNX | w8a16 | Qualcomm® QCS9075 | 21.312 ms | 0 - 3 MB | NPU
80
+ | Swin-Base | ONNX | w8a16 | Qualcomm® QCM6690 | 632.98 ms | 121 - 139 MB | CPU
81
+ | Swin-Base | ONNX | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 9.178 ms | 0 - 470 MB | NPU
82
+ | Swin-Base | ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 598.327 ms | 145 - 168 MB | CPU
83
+ | Swin-Base | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 7.962 ms | 1 - 399 MB | NPU
84
+ | Swin-Base | QNN_DLC | float | Snapdragon® X2 Elite | 8.883 ms | 1 - 1 MB | NPU
85
+ | Swin-Base | QNN_DLC | float | Snapdragon® X Elite | 20.535 ms | 1 - 1 MB | NPU
86
+ | Swin-Base | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 13.231 ms | 0 - 527 MB | NPU
87
+ | Swin-Base | QNN_DLC | float | Qualcomm® QCS8275 (Proxy) | 55.5 ms | 1 - 372 MB | NPU
88
+ | Swin-Base | QNN_DLC | float | Qualcomm® QCS8550 (Proxy) | 19.752 ms | 1 - 3 MB | NPU
89
+ | Swin-Base | QNN_DLC | float | Qualcomm® SA8775P | 22.555 ms | 1 - 371 MB | NPU
90
+ | Swin-Base | QNN_DLC | float | Qualcomm® QCS9075 | 23.682 ms | 1 - 3 MB | NPU
91
+ | Swin-Base | QNN_DLC | float | Qualcomm® QCS8450 (Proxy) | 30.385 ms | 0 - 517 MB | NPU
92
+ | Swin-Base | QNN_DLC | float | Qualcomm® SA7255P | 55.5 ms | 1 - 372 MB | NPU
93
+ | Swin-Base | QNN_DLC | float | Qualcomm® SA8295P | 28.889 ms | 1 - 363 MB | NPU
94
+ | Swin-Base | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 9.767 ms | 1 - 369 MB | NPU
95
+ | Swin-Base | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 7.611 ms | 0 - 442 MB | NPU
96
+ | Swin-Base | QNN_DLC | w8a16 | Snapdragon® X2 Elite | 8.605 ms | 0 - 0 MB | NPU
97
+ | Swin-Base | QNN_DLC | w8a16 | Snapdragon® X Elite | 21.06 ms | 0 - 0 MB | NPU
98
+ | Swin-Base | QNN_DLC | w8a16 | Snapdragon® 8 Gen 3 Mobile | 13.167 ms | 0 - 536 MB | NPU
99
+ | Swin-Base | QNN_DLC | w8a16 | Qualcomm® QCS8275 (Proxy) | 36.159 ms | 0 - 435 MB | NPU
100
+ | Swin-Base | QNN_DLC | w8a16 | Qualcomm® QCS8550 (Proxy) | 19.666 ms | 0 - 29 MB | NPU
101
+ | Swin-Base | QNN_DLC | w8a16 | Qualcomm® SA8775P | 19.996 ms | 0 - 436 MB | NPU
102
+ | Swin-Base | QNN_DLC | w8a16 | Qualcomm® QCS9075 | 24.05 ms | 0 - 2 MB | NPU
103
+ | Swin-Base | QNN_DLC | w8a16 | Qualcomm® QCM6690 | 123.017 ms | 0 - 904 MB | NPU
104
+ | Swin-Base | QNN_DLC | w8a16 | Qualcomm® SA7255P | 36.159 ms | 0 - 435 MB | NPU
105
+ | Swin-Base | QNN_DLC | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 9.809 ms | 0 - 425 MB | NPU
106
+ | Swin-Base | QNN_DLC | w8a16 | Snapdragon® 7 Gen 4 Mobile | 22.155 ms | 0 - 825 MB | NPU
107
+ | Swin-Base | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 8.724 ms | 0 - 409 MB | NPU
108
+ | Swin-Base | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 14.988 ms | 0 - 535 MB | NPU
109
+ | Swin-Base | TFLITE | float | Qualcomm® QCS8275 (Proxy) | 58.496 ms | 0 - 387 MB | NPU
110
+ | Swin-Base | TFLITE | float | Qualcomm® QCS8550 (Proxy) | 21.905 ms | 0 - 4 MB | NPU
111
+ | Swin-Base | TFLITE | float | Qualcomm® SA8775P | 25.026 ms | 0 - 386 MB | NPU
112
+ | Swin-Base | TFLITE | float | Qualcomm® QCS9075 | 27.434 ms | 0 - 178 MB | NPU
113
+ | Swin-Base | TFLITE | float | Qualcomm® QCS8450 (Proxy) | 32.232 ms | 0 - 531 MB | NPU
114
+ | Swin-Base | TFLITE | float | Qualcomm® SA7255P | 58.496 ms | 0 - 387 MB | NPU
115
+ | Swin-Base | TFLITE | float | Qualcomm® SA8295P | 31.877 ms | 0 - 388 MB | NPU
116
+ | Swin-Base | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 11.147 ms | 0 - 364 MB | NPU
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
 
118
  ## License
119
  * The license for the original implementation of Swin-Base 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-Base_float.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0f6774edd13ca703dd025c5c3ec89237c7dd725ee03d043e5e00fa46626a994f
3
- size 326781127
 
 
 
 
Swin-Base_float.tflite DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:626a885cee0baff18eaf488a555dfc8fa16ccaaa6d3381b10b8660d3628579d0
3
- size 355516588
 
 
 
 
release_assets.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "0.51.0",
3
+ "precisions": {
4
+ "float": {
5
+ "universal_assets": {
6
+ "tflite": {
7
+ "tool_versions": {
8
+ "qairt": "2.45.0.260326154327",
9
+ "litert": "1.4.2"
10
+ },
11
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_base/releases/v0.51.0/swin_base-tflite-float.zip"
12
+ },
13
+ "qnn_dlc": {
14
+ "tool_versions": {
15
+ "qairt": "2.45.0.260326154327"
16
+ },
17
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_base/releases/v0.51.0/swin_base-qnn_dlc-float.zip"
18
+ },
19
+ "onnx": {
20
+ "tool_versions": {
21
+ "qairt": "2.42.0.251225135753_193295",
22
+ "onnx_runtime": "1.24.3"
23
+ },
24
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swin_base/releases/v0.51.0/swin_base-onnx-float.zip"
25
+ }
26
+ }
27
+ },
28
+ "w8a16": {
29
+ "universal_assets": {
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_base/releases/v0.51.0/swin_base-qnn_dlc-w8a16.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_base/releases/v0.51.0/swin_base-onnx-w8a16.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