qaihm-bot commited on
Commit
1ebdeb4
·
verified ·
1 Parent(s): b49575e

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

README.md CHANGED
@@ -11,232 +11,116 @@ pipeline_tag: image-classification
11
 
12
  ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swinv2_base/web-assets/model_demo.png)
13
 
14
- # SwinV2-Base: Optimized for Mobile Deployment
15
- ## Imagenet classifier and general purpose backbone
16
-
17
 
18
  SwinV2Base 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 SwinV2-Base found [here](https://github.com/pytorch/vision/blob/main/torchvision/models/swin_transformer.py).
21
-
22
-
23
- This repository provides scripts to run SwinV2-Base on Qualcomm® devices.
24
- More details on model performance across various devices, can be found
25
- [here](https://aihub.qualcomm.com/models/swinv2_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: 256x256
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
- | SwinV2-Base | float | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | TFLITE | 81.861 ms | 0 - 614 MB | NPU | [SwinV2-Base.tflite](https://huggingface.co/qualcomm/SwinV2-Base/blob/main/SwinV2-Base.tflite) |
42
- | SwinV2-Base | float | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | TFLITE | 46.905 ms | 0 - 730 MB | NPU | [SwinV2-Base.tflite](https://huggingface.co/qualcomm/SwinV2-Base/blob/main/SwinV2-Base.tflite) |
43
- | SwinV2-Base | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | TFLITE | 35.029 ms | 0 - 4 MB | NPU | [SwinV2-Base.tflite](https://huggingface.co/qualcomm/SwinV2-Base/blob/main/SwinV2-Base.tflite) |
44
- | SwinV2-Base | float | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | TFLITE | 38.721 ms | 0 - 596 MB | NPU | [SwinV2-Base.tflite](https://huggingface.co/qualcomm/SwinV2-Base/blob/main/SwinV2-Base.tflite) |
45
- | SwinV2-Base | float | SA7255P ADP | Qualcomm® SA7255P | TFLITE | 81.861 ms | 0 - 614 MB | NPU | [SwinV2-Base.tflite](https://huggingface.co/qualcomm/SwinV2-Base/blob/main/SwinV2-Base.tflite) |
46
- | SwinV2-Base | float | SA8295P ADP | Qualcomm® SA8295P | TFLITE | 47.037 ms | 0 - 581 MB | NPU | [SwinV2-Base.tflite](https://huggingface.co/qualcomm/SwinV2-Base/blob/main/SwinV2-Base.tflite) |
47
- | SwinV2-Base | float | SA8775P ADP | Qualcomm® SA8775P | TFLITE | 38.721 ms | 0 - 596 MB | NPU | [SwinV2-Base.tflite](https://huggingface.co/qualcomm/SwinV2-Base/blob/main/SwinV2-Base.tflite) |
48
- | SwinV2-Base | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | TFLITE | 24.258 ms | 0 - 745 MB | NPU | [SwinV2-Base.tflite](https://huggingface.co/qualcomm/SwinV2-Base/blob/main/SwinV2-Base.tflite) |
49
- | SwinV2-Base | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | TFLITE | 17.996 ms | 0 - 600 MB | NPU | [SwinV2-Base.tflite](https://huggingface.co/qualcomm/SwinV2-Base/blob/main/SwinV2-Base.tflite) |
50
- | SwinV2-Base | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | ONNX | 35.181 ms | 30 - 290 MB | NPU | [SwinV2-Base.onnx.zip](https://huggingface.co/qualcomm/SwinV2-Base/blob/main/SwinV2-Base.onnx.zip) |
51
- | SwinV2-Base | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | TFLITE | 14.619 ms | 0 - 653 MB | NPU | [SwinV2-Base.tflite](https://huggingface.co/qualcomm/SwinV2-Base/blob/main/SwinV2-Base.tflite) |
52
- | SwinV2-Base | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | ONNX | 40.283 ms | 29 - 318 MB | NPU | [SwinV2-Base.onnx.zip](https://huggingface.co/qualcomm/SwinV2-Base/blob/main/SwinV2-Base.onnx.zip) |
53
- | SwinV2-Base | float | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 64.884 ms | 178 - 178 MB | NPU | [SwinV2-Base.onnx.zip](https://huggingface.co/qualcomm/SwinV2-Base/blob/main/SwinV2-Base.onnx.zip) |
54
-
55
-
56
-
57
-
58
- ## Installation
59
-
60
-
61
- Install the package via pip:
62
- ```bash
63
- pip install qai-hub-models
64
- ```
65
-
66
-
67
- ## Configure Qualcomm® AI Hub Workbench to run this model on a cloud-hosted device
68
-
69
- Sign-in to [Qualcomm® AI Hub Workbench](https://workbench.aihub.qualcomm.com/) with your
70
- Qualcomm® ID. Once signed in navigate to `Account -> Settings -> API Token`.
71
-
72
- With this API token, you can configure your client to run models on the cloud
73
- hosted devices.
74
- ```bash
75
- qai-hub configure --api_token API_TOKEN
76
- ```
77
- Navigate to [docs](https://workbench.aihub.qualcomm.com/docs/) for more information.
78
-
79
-
80
-
81
- ## Demo off target
82
-
83
- The package contains a simple end-to-end demo that downloads pre-trained
84
- weights and runs this model on a sample input.
85
-
86
- ```bash
87
- python -m qai_hub_models.models.swinv2_base.demo
88
- ```
89
-
90
- The above demo runs a reference implementation of pre-processing, model
91
- inference, and post processing.
92
-
93
- **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
94
- environment, please add the following to your cell (instead of the above).
95
- ```
96
- %run -m qai_hub_models.models.swinv2_base.demo
97
- ```
98
-
99
-
100
- ### Run model on a cloud-hosted device
101
-
102
- In addition to the demo, you can also run the model on a cloud-hosted Qualcomm®
103
- device. This script does the following:
104
- * Performance check on-device on a cloud-hosted device
105
- * Downloads compiled assets that can be deployed on-device for Android.
106
- * Accuracy check between PyTorch and on-device outputs.
107
-
108
- ```bash
109
- python -m qai_hub_models.models.swinv2_base.export
110
- ```
111
-
112
-
113
-
114
- ## How does this work?
115
-
116
- This [export script](https://aihub.qualcomm.com/models/swinv2_base/qai_hub_models/models/SwinV2-Base/export.py)
117
- leverages [Qualcomm® AI Hub](https://aihub.qualcomm.com/) to optimize, validate, and deploy this model
118
- on-device. Lets go through each step below in detail:
119
-
120
- Step 1: **Compile model for on-device deployment**
121
-
122
- To compile a PyTorch model for on-device deployment, we first trace the model
123
- in memory using the `jit.trace` and then call the `submit_compile_job` API.
124
-
125
- ```python
126
- import torch
127
-
128
- import qai_hub as hub
129
- from qai_hub_models.models.swinv2_base import Model
130
-
131
- # Load the model
132
- torch_model = Model.from_pretrained()
133
-
134
- # Device
135
- device = hub.Device("Samsung Galaxy S25")
136
-
137
- # Trace model
138
- input_shape = torch_model.get_input_spec()
139
- sample_inputs = torch_model.sample_inputs()
140
-
141
- pt_model = torch.jit.trace(torch_model, [torch.tensor(data[0]) for _, data in sample_inputs.items()])
142
-
143
- # Compile model on a specific device
144
- compile_job = hub.submit_compile_job(
145
- model=pt_model,
146
- device=device,
147
- input_specs=torch_model.get_input_spec(),
148
- )
149
-
150
- # Get target model to run on-device
151
- target_model = compile_job.get_target_model()
152
-
153
- ```
154
-
155
-
156
- Step 2: **Performance profiling on cloud-hosted device**
157
-
158
- After compiling models from step 1. Models can be profiled model on-device using the
159
- `target_model`. Note that this scripts runs the model on a device automatically
160
- provisioned in the cloud. Once the job is submitted, you can navigate to a
161
- provided job URL to view a variety of on-device performance metrics.
162
- ```python
163
- profile_job = hub.submit_profile_job(
164
- model=target_model,
165
- device=device,
166
- )
167
-
168
- ```
169
-
170
- Step 3: **Verify on-device accuracy**
171
-
172
- To verify the accuracy of the model on-device, you can run on-device inference
173
- on sample input data on the same cloud hosted device.
174
- ```python
175
- input_data = torch_model.sample_inputs()
176
- inference_job = hub.submit_inference_job(
177
- model=target_model,
178
- device=device,
179
- inputs=input_data,
180
- )
181
- on_device_output = inference_job.download_output_data()
182
-
183
- ```
184
- With the output of the model, you can compute like PSNR, relative errors or
185
- spot check the output with expected output.
186
-
187
- **Note**: This on-device profiling and inference requires access to Qualcomm®
188
- AI Hub Workbench. [Sign up for access](https://myaccount.qualcomm.com/signup).
189
-
190
-
191
-
192
- ## Run demo on a cloud-hosted device
193
-
194
- You can also run the demo on-device.
195
-
196
- ```bash
197
- python -m qai_hub_models.models.swinv2_base.demo --eval-mode on-device
198
- ```
199
-
200
- **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
201
- environment, please add the following to your cell (instead of the above).
202
- ```
203
- %run -m qai_hub_models.models.swinv2_base.demo -- --eval-mode on-device
204
- ```
205
-
206
-
207
- ## Deploying compiled model to Android
208
-
209
-
210
- The models can be deployed using multiple runtimes:
211
- - TensorFlow Lite (`.tflite` export): [This
212
- tutorial](https://www.tensorflow.org/lite/android/quickstart) provides a
213
- guide to deploy the .tflite model in an Android application.
214
-
215
-
216
- - QNN (`.so` export ): This [sample
217
- app](https://docs.qualcomm.com/bundle/publicresource/topics/80-63442-50/sample_app.html)
218
- provides instructions on how to use the `.so` shared library in an Android application.
219
-
220
-
221
- ## View on Qualcomm® AI Hub
222
- Get more details on SwinV2-Base's performance across various devices [here](https://aihub.qualcomm.com/models/swinv2_base).
223
- Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
224
-
225
 
226
  ## License
227
  * The license for the original implementation of SwinV2-Base can be found
228
  [here](https://github.com/pytorch/vision/blob/main/LICENSE).
229
 
230
-
231
-
232
  ## References
233
  * [Swin Transformer V2: Scaling Up Capacity and Resolution](https://arxiv.org/abs/2111.09883)
234
  * [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/swin_transformer.py)
235
 
236
-
237
-
238
  ## Community
239
  * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
240
  * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
241
-
242
-
 
11
 
12
  ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/swinv2_base/web-assets/model_demo.png)
13
 
14
+ # SwinV2-Base: Optimized for Qualcomm Devices
 
 
15
 
16
  SwinV2Base 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 SwinV2-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/swinv2_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/swinv2_base/releases/v0.51.0/swinv2_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/swinv2_base/releases/v0.51.0/swinv2_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/swinv2_base/releases/v0.51.0/swinv2_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/swinv2_base/releases/v0.51.0/swinv2_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/swinv2_base/releases/v0.51.0/swinv2_base-tflite-float.zip)
37
+
38
+ For more device-specific assets and performance metrics, visit **[SwinV2-Base on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/swinv2_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/swinv2_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 [SwinV2-Base on GitHub](https://github.com/qualcomm/ai-hub-models/blob/main/src/qai_hub_models/models/swinv2_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: 256x256
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
+ | SwinV2-Base | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 11.733 ms | 1 - 1020 MB | NPU
67
+ | SwinV2-Base | ONNX | float | Snapdragon® X2 Elite | 12.544 ms | 179 - 179 MB | NPU
68
+ | SwinV2-Base | ONNX | float | Snapdragon® X Elite | 32.734 ms | 178 - 178 MB | NPU
69
+ | SwinV2-Base | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 21.746 ms | 0 - 2329 MB | NPU
70
+ | SwinV2-Base | ONNX | float | Qualcomm® QCS8550 (Proxy) | 31.491 ms | 0 - 196 MB | NPU
71
+ | SwinV2-Base | ONNX | float | Qualcomm® QCS9075 | 38.785 ms | 0 - 4 MB | NPU
72
+ | SwinV2-Base | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 16.303 ms | 0 - 1012 MB | NPU
73
+ | SwinV2-Base | ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 11.395 ms | 0 - 1005 MB | NPU
74
+ | SwinV2-Base | ONNX | w8a16 | Snapdragon® X2 Elite | 12.122 ms | 97 - 97 MB | NPU
75
+ | SwinV2-Base | ONNX | w8a16 | Snapdragon® X Elite | 31.018 ms | 97 - 97 MB | NPU
76
+ | SwinV2-Base | ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 20.319 ms | 0 - 1295 MB | NPU
77
+ | SwinV2-Base | ONNX | w8a16 | Qualcomm® QCS6490 | 1306.327 ms | 62 - 91 MB | CPU
78
+ | SwinV2-Base | ONNX | w8a16 | Qualcomm® QCS8550 (Proxy) | 29.734 ms | 0 - 102 MB | NPU
79
+ | SwinV2-Base | ONNX | w8a16 | Qualcomm® QCS9075 | 34.846 ms | 0 - 3 MB | NPU
80
+ | SwinV2-Base | ONNX | w8a16 | Qualcomm® QCM6690 | 713.751 ms | 80 - 101 MB | CPU
81
+ | SwinV2-Base | ONNX | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 14.665 ms | 0 - 866 MB | NPU
82
+ | SwinV2-Base | ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 662.899 ms | 156 - 178 MB | CPU
83
+ | SwinV2-Base | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 11.557 ms | 0 - 424 MB | NPU
84
+ | SwinV2-Base | QNN_DLC | float | Snapdragon® X2 Elite | 12.375 ms | 1 - 1 MB | NPU
85
+ | SwinV2-Base | QNN_DLC | float | Snapdragon® X Elite | 29.74 ms | 1 - 1 MB | NPU
86
+ | SwinV2-Base | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 19.935 ms | 1 - 552 MB | NPU
87
+ | SwinV2-Base | QNN_DLC | float | Qualcomm® QCS8275 (Proxy) | 74.006 ms | 1 - 393 MB | NPU
88
+ | SwinV2-Base | QNN_DLC | float | Qualcomm® QCS8550 (Proxy) | 28.682 ms | 1 - 3 MB | NPU
89
+ | SwinV2-Base | QNN_DLC | float | Qualcomm® SA8775P | 31.978 ms | 1 - 392 MB | NPU
90
+ | SwinV2-Base | QNN_DLC | float | Qualcomm® QCS9075 | 37.916 ms | 1 - 3 MB | NPU
91
+ | SwinV2-Base | QNN_DLC | float | Qualcomm® QCS8450 (Proxy) | 44.29 ms | 0 - 538 MB | NPU
92
+ | SwinV2-Base | QNN_DLC | float | Qualcomm® SA7255P | 74.006 ms | 1 - 393 MB | NPU
93
+ | SwinV2-Base | QNN_DLC | float | Qualcomm® SA8295P | 38.42 ms | 1 - 384 MB | NPU
94
+ | SwinV2-Base | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 15.045 ms | 1 - 398 MB | NPU
95
+ | SwinV2-Base | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 11.362 ms | 0 - 943 MB | NPU
96
+ | SwinV2-Base | QNN_DLC | w8a16 | Snapdragon® X2 Elite | 12.461 ms | 0 - 0 MB | NPU
97
+ | SwinV2-Base | QNN_DLC | w8a16 | Snapdragon® X Elite | 31.327 ms | 0 - 0 MB | NPU
98
+ | SwinV2-Base | QNN_DLC | w8a16 | Snapdragon® 8 Gen 3 Mobile | 20.03 ms | 0 - 621 MB | NPU
99
+ | SwinV2-Base | QNN_DLC | w8a16 | Qualcomm® QCS8275 (Proxy) | 53.241 ms | 0 - 934 MB | NPU
100
+ | SwinV2-Base | QNN_DLC | w8a16 | Qualcomm® QCS8550 (Proxy) | 29.722 ms | 0 - 3 MB | NPU
101
+ | SwinV2-Base | QNN_DLC | w8a16 | Qualcomm® SA8775P | 29.923 ms | 0 - 916 MB | NPU
102
+ | SwinV2-Base | QNN_DLC | w8a16 | Qualcomm® QCS9075 | 36.121 ms | 0 - 2 MB | NPU
103
+ | SwinV2-Base | QNN_DLC | w8a16 | Qualcomm® SA7255P | 53.241 ms | 0 - 934 MB | NPU
104
+ | SwinV2-Base | QNN_DLC | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 15.127 ms | 0 - 888 MB | NPU
105
+ | SwinV2-Base | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 11.961 ms | 0 - 969 MB | NPU
106
+ | SwinV2-Base | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 21.923 ms | 0 - 655 MB | NPU
107
+ | SwinV2-Base | TFLITE | float | Qualcomm® QCS8275 (Proxy) | 75.284 ms | 0 - 902 MB | NPU
108
+ | SwinV2-Base | TFLITE | float | Qualcomm® QCS8550 (Proxy) | 32.027 ms | 0 - 3 MB | NPU
109
+ | SwinV2-Base | TFLITE | float | Qualcomm® SA8775P | 35.296 ms | 0 - 847 MB | NPU
110
+ | SwinV2-Base | TFLITE | float | Qualcomm® QCS9075 | 39.731 ms | 0 - 180 MB | NPU
111
+ | SwinV2-Base | TFLITE | float | Qualcomm® QCS8450 (Proxy) | 46.679 ms | 0 - 647 MB | NPU
112
+ | SwinV2-Base | TFLITE | float | Qualcomm® SA7255P | 75.284 ms | 0 - 902 MB | NPU
113
+ | SwinV2-Base | TFLITE | float | Qualcomm® SA8295P | 43.86 ms | 0 - 474 MB | NPU
114
+ | SwinV2-Base | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 15.94 ms | 0 - 904 MB | NPU
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
 
116
  ## License
117
  * The license for the original implementation of SwinV2-Base can be found
118
  [here](https://github.com/pytorch/vision/blob/main/LICENSE).
119
 
 
 
120
  ## References
121
  * [Swin Transformer V2: Scaling Up Capacity and Resolution](https://arxiv.org/abs/2111.09883)
122
  * [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/swin_transformer.py)
123
 
 
 
124
  ## Community
125
  * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
126
  * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
 
 
SwinV2-Base_float.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:bab753a0fc91d87a3d3e1f56694758806724e539f1e1f33a2e495176286e0b58
3
- size 326861095
 
 
 
 
SwinV2-Base_float.tflite DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6d807396b2b0ac7c07d521029ab4c3bf4203b5a38382d91e675369392a780f12
3
- size 361826216
 
 
 
 
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/swinv2_base/releases/v0.51.0/swinv2_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/swinv2_base/releases/v0.51.0/swinv2_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/swinv2_base/releases/v0.51.0/swinv2_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/swinv2_base/releases/v0.51.0/swinv2_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/swinv2_base/releases/v0.51.0/swinv2_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