qaihm-bot commited on
Commit
56eb10b
·
verified ·
1 Parent(s): 3ab3f0b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +40 -19
README.md CHANGED
@@ -18,7 +18,7 @@ tags:
18
 
19
  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.
20
 
21
- This model is an implementation of Swin-Base found [here](https://github.com/pytorch/vision/blob/main/torchvision/models/swin_transformer.py).
22
  This repository provides scripts to run Swin-Base on Qualcomm® devices.
23
  More details on model performance across various devices, can be found
24
  [here](https://aihub.qualcomm.com/models/swin_base).
@@ -33,15 +33,32 @@ More details on model performance across various devices, can be found
33
  - Number of parameters: 88.8M
34
  - Model size: 339 MB
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
 
38
 
39
- | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
40
- | ---|---|---|---|---|---|---|---|
41
- | Samsung Galaxy S23 Ultra (Android 13) | Snapdragon® 8 Gen 2 | TFLite | 28.07 ms | 0 - 4 MB | FP16 | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite)
42
- | Samsung Galaxy S23 Ultra (Android 13) | Snapdragon® 8 Gen 2 | QNN Model Library | 31.138 ms | 0 - 50 MB | FP16 | NPU | [Swin-Base.so](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.so)
43
-
44
-
45
 
46
  ## Installation
47
 
@@ -96,16 +113,16 @@ device. This script does the following:
96
  ```bash
97
  python -m qai_hub_models.models.swin_base.export
98
  ```
99
-
100
  ```
101
- Profile Job summary of Swin-Base
102
- --------------------------------------------------
103
- Device: Snapdragon X Elite CRD (11)
104
- Estimated Inference Time: 29.62 ms
105
- Estimated Peak Memory Range: 0.57-0.57 MB
106
- Compute Units: NPU (1255) | Total (1255)
107
-
108
-
 
109
  ```
110
 
111
 
@@ -204,15 +221,19 @@ provides instructions on how to use the `.so` shared library in an Android appl
204
  Get more details on Swin-Base's performance across various devices [here](https://aihub.qualcomm.com/models/swin_base).
205
  Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
206
 
 
207
  ## License
208
- - The license for the original implementation of Swin-Base can be found
209
- [here](https://github.com/pytorch/vision/blob/main/LICENSE).
210
- - The license for the compiled assets for on-device deployment can be found [here](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/Qualcomm+AI+Hub+Proprietary+License.pdf)
 
211
 
212
  ## References
213
  * [Swin Transformer: Hierarchical Vision Transformer using Shifted Windows](https://arxiv.org/abs/2103.14030)
214
  * [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/swin_transformer.py)
215
 
 
 
216
  ## Community
217
  * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
218
  * For questions or feedback please [reach out to us](mailto:[email protected]).
 
18
 
19
  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.
20
 
21
+ This model is an implementation of Swin-Base found [here]({source_repo}).
22
  This repository provides scripts to run Swin-Base on Qualcomm® devices.
23
  More details on model performance across various devices, can be found
24
  [here](https://aihub.qualcomm.com/models/swin_base).
 
33
  - Number of parameters: 88.8M
34
  - Model size: 339 MB
35
 
36
+ | Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
37
+ |---|---|---|---|---|---|---|---|---|
38
+ | Swin-Base | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 25.234 ms | 0 - 3 MB | FP16 | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
39
+ | Swin-Base | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 28.507 ms | 0 - 49 MB | FP16 | NPU | [Swin-Base.so](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.so) |
40
+ | Swin-Base | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 46.693 ms | 0 - 226 MB | FP16 | NPU | [Swin-Base.onnx](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.onnx) |
41
+ | Swin-Base | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 18.148 ms | 0 - 570 MB | FP16 | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
42
+ | Swin-Base | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 23.321 ms | 0 - 193 MB | FP16 | NPU | [Swin-Base.so](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.so) |
43
+ | Swin-Base | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 38.588 ms | 1 - 833 MB | FP16 | NPU | [Swin-Base.onnx](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.onnx) |
44
+ | Swin-Base | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 25.144 ms | 0 - 3 MB | FP16 | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
45
+ | Swin-Base | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 26.838 ms | 1 - 2 MB | FP16 | NPU | Use Export Script |
46
+ | Swin-Base | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 25.529 ms | 0 - 4 MB | FP16 | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
47
+ | Swin-Base | SA8255 (Proxy) | SA8255P Proxy | QNN | 27.083 ms | 1 - 2 MB | FP16 | NPU | Use Export Script |
48
+ | Swin-Base | SA8775 (Proxy) | SA8775P Proxy | TFLITE | 25.456 ms | 0 - 2 MB | FP16 | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
49
+ | Swin-Base | SA8775 (Proxy) | SA8775P Proxy | QNN | 27.124 ms | 1 - 2 MB | FP16 | NPU | Use Export Script |
50
+ | Swin-Base | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 25.633 ms | 0 - 3 MB | FP16 | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
51
+ | Swin-Base | SA8650 (Proxy) | SA8650P Proxy | QNN | 27.232 ms | 1 - 2 MB | FP16 | NPU | Use Export Script |
52
+ | Swin-Base | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 32.539 ms | 0 - 539 MB | FP16 | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
53
+ | Swin-Base | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 35.739 ms | 1 - 190 MB | FP16 | NPU | Use Export Script |
54
+ | Swin-Base | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 16.379 ms | 0 - 269 MB | FP16 | NPU | [Swin-Base.tflite](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.tflite) |
55
+ | Swin-Base | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 15.042 ms | 1 - 206 MB | FP16 | NPU | Use Export Script |
56
+ | Swin-Base | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 29.175 ms | 1 - 330 MB | FP16 | NPU | [Swin-Base.onnx](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.onnx) |
57
+ | Swin-Base | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 27.571 ms | 1 - 1 MB | FP16 | NPU | Use Export Script |
58
+ | Swin-Base | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 51.987 ms | 198 - 198 MB | FP16 | NPU | [Swin-Base.onnx](https://huggingface.co/qualcomm/Swin-Base/blob/main/Swin-Base.onnx) |
59
 
60
 
61
 
 
 
 
 
 
 
62
 
63
  ## Installation
64
 
 
113
  ```bash
114
  python -m qai_hub_models.models.swin_base.export
115
  ```
 
116
  ```
117
+ Profiling Results
118
+ ------------------------------------------------------------
119
+ Swin-Base
120
+ Device : Samsung Galaxy S23 (13)
121
+ Runtime : TFLITE
122
+ Estimated inference time (ms) : 25.2
123
+ Estimated peak memory usage (MB): [0, 3]
124
+ Total # Ops : 1568
125
+ Compute Unit(s) : NPU (1568 ops)
126
  ```
127
 
128
 
 
221
  Get more details on Swin-Base's performance across various devices [here](https://aihub.qualcomm.com/models/swin_base).
222
  Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
223
 
224
+
225
  ## License
226
+ * The license for the original implementation of Swin-Base can be found [here](https://github.com/pytorch/vision/blob/main/LICENSE).
227
+ * The license for the compiled assets for on-device deployment can be found [here](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/Qualcomm+AI+Hub+Proprietary+License.pdf)
228
+
229
+
230
 
231
  ## References
232
  * [Swin Transformer: Hierarchical Vision Transformer using Shifted Windows](https://arxiv.org/abs/2103.14030)
233
  * [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/swin_transformer.py)
234
 
235
+
236
+
237
  ## Community
238
  * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
239
  * For questions or feedback please [reach out to us](mailto:[email protected]).