Image Segmentation
PyTorch
android
qaihm-bot commited on
Commit
98f6ee6
·
verified ·
1 Parent(s): b42cc27

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

Files changed (35) hide show
  1. DEPLOYMENT_MODEL_LICENSE.pdf +0 -3
  2. LICENSE +0 -1
  3. README.md +50 -204
  4. precompiled/qualcomm-qcs8275-proxy/Mask2Former_float.bin +0 -3
  5. precompiled/qualcomm-qcs8275-proxy/tool-versions.yaml +0 -3
  6. precompiled/qualcomm-qcs8450-proxy/Mask2Former_float.bin +0 -3
  7. precompiled/qualcomm-qcs8450-proxy/tool-versions.yaml +0 -3
  8. precompiled/qualcomm-qcs8550-proxy/Mask2Former_float.bin +0 -3
  9. precompiled/qualcomm-qcs8550-proxy/Mask2Former_float.onnx.zip +0 -3
  10. precompiled/qualcomm-qcs8550-proxy/tool-versions.yaml +0 -4
  11. precompiled/qualcomm-qcs9075-proxy/Mask2Former_float.bin +0 -3
  12. precompiled/qualcomm-qcs9075-proxy/tool-versions.yaml +0 -3
  13. precompiled/qualcomm-sa7255p/Mask2Former_float.bin +0 -3
  14. precompiled/qualcomm-sa7255p/tool-versions.yaml +0 -3
  15. precompiled/qualcomm-sa8255p-proxy/Mask2Former_float.bin +0 -3
  16. precompiled/qualcomm-sa8255p-proxy/tool-versions.yaml +0 -3
  17. precompiled/qualcomm-sa8295p/Mask2Former_float.bin +0 -3
  18. precompiled/qualcomm-sa8295p/tool-versions.yaml +0 -3
  19. precompiled/qualcomm-sa8650p-proxy/Mask2Former_float.bin +0 -3
  20. precompiled/qualcomm-sa8650p-proxy/tool-versions.yaml +0 -3
  21. precompiled/qualcomm-sa8775p/Mask2Former_float.bin +0 -3
  22. precompiled/qualcomm-sa8775p/tool-versions.yaml +0 -3
  23. precompiled/qualcomm-snapdragon-8-elite-for-galaxy/Mask2Former_float.bin +0 -3
  24. precompiled/qualcomm-snapdragon-8-elite-for-galaxy/Mask2Former_float.onnx.zip +0 -3
  25. precompiled/qualcomm-snapdragon-8-elite-for-galaxy/tool-versions.yaml +0 -4
  26. precompiled/qualcomm-snapdragon-8-elite-gen5/Mask2Former_float.bin +0 -3
  27. precompiled/qualcomm-snapdragon-8-elite-gen5/Mask2Former_float.onnx.zip +0 -3
  28. precompiled/qualcomm-snapdragon-8-elite-gen5/tool-versions.yaml +0 -4
  29. precompiled/qualcomm-snapdragon-8gen3/Mask2Former_float.bin +0 -3
  30. precompiled/qualcomm-snapdragon-8gen3/Mask2Former_float.onnx.zip +0 -3
  31. precompiled/qualcomm-snapdragon-8gen3/tool-versions.yaml +0 -4
  32. precompiled/qualcomm-snapdragon-x-elite/Mask2Former_float.bin +0 -3
  33. precompiled/qualcomm-snapdragon-x-elite/Mask2Former_float.onnx.zip +0 -3
  34. precompiled/qualcomm-snapdragon-x-elite/tool-versions.yaml +0 -4
  35. release_assets.json +97 -0
DEPLOYMENT_MODEL_LICENSE.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:4409f93b0e82531303b3e10f52f1fdfb56467a25f05b7441c6bbd8bb8a64b42c
3
- size 109629
 
 
 
 
LICENSE CHANGED
@@ -1,2 +1 @@
1
  The license of the original trained model can be found at https://github.com/huggingface/transformers/blob/main/LICENSE.
2
- The license for the deployable model files (.tflite, .onnx, .dlc, .bin, etc.) can be found in DEPLOYMENT_MODEL_LICENSE.pdf.
 
1
  The license of the original trained model can be found at https://github.com/huggingface/transformers/blob/main/LICENSE.
 
README.md CHANGED
@@ -9,237 +9,83 @@ pipeline_tag: image-segmentation
9
 
10
  ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/web-assets/model_demo.png)
11
 
12
- # Mask2Former: Optimized for Mobile Deployment
13
- ## Real-time object segmentation
14
-
15
 
16
  Mask2Former is a machine learning model that predicts masks and classes of objects in an image.
17
 
18
- This model is an implementation of Mask2Former found [here](https://github.com/huggingface/transformers/tree/main/src/transformers/models/mask2former).
19
-
20
-
21
- This repository provides scripts to run Mask2Former on Qualcomm® devices.
22
- More details on model performance across various devices, can be found
23
- [here](https://aihub.qualcomm.com/models/mask2former).
24
-
25
-
26
-
27
- ### Model Details
28
-
29
- - **Model Type:** Model_use_case.semantic_segmentation
30
- - **Model Stats:**
31
- - Model checkpoint: facebook/mask2former-swin-tiny-coco-panoptic
32
- - Input resolution: 384x384
33
- - Number of output classes: 100
34
-
35
- | Model | Precision | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit | Target Model
36
- |---|---|---|---|---|---|---|---|---|
37
- | Mask2Former | float | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | QNN_CONTEXT_BINARY | 266.806 ms | 2 - 11 MB | NPU | Use Export Script |
38
- | Mask2Former | float | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | QNN_CONTEXT_BINARY | 224.265 ms | 2 - 19 MB | NPU | Use Export Script |
39
- | Mask2Former | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | QNN_CONTEXT_BINARY | 147.442 ms | 2 - 4 MB | NPU | Use Export Script |
40
- | Mask2Former | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | PRECOMPILED_QNN_ONNX | 143.614 ms | 0 - 113 MB | NPU | Use Export Script |
41
- | Mask2Former | float | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | QNN_CONTEXT_BINARY | 147.971 ms | 2 - 12 MB | NPU | Use Export Script |
42
- | Mask2Former | float | SA7255P ADP | Qualcomm® SA7255P | QNN_CONTEXT_BINARY | 266.806 ms | 2 - 11 MB | NPU | Use Export Script |
43
- | Mask2Former | float | SA8255 (Proxy) | Qualcomm® SA8255P (Proxy) | QNN_CONTEXT_BINARY | 143.607 ms | 2 - 4 MB | NPU | Use Export Script |
44
- | Mask2Former | float | SA8295P ADP | Qualcomm® SA8295P | QNN_CONTEXT_BINARY | 191.865 ms | 2 - 16 MB | NPU | Use Export Script |
45
- | Mask2Former | float | SA8650 (Proxy) | Qualcomm® SA8650P (Proxy) | QNN_CONTEXT_BINARY | 146.604 ms | 2 - 4 MB | NPU | Use Export Script |
46
- | Mask2Former | float | SA8775P ADP | Qualcomm® SA8775P | QNN_CONTEXT_BINARY | 147.971 ms | 2 - 12 MB | NPU | Use Export Script |
47
- | Mask2Former | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | QNN_CONTEXT_BINARY | 97.058 ms | 12 - 31 MB | NPU | Use Export Script |
48
- | Mask2Former | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | PRECOMPILED_QNN_ONNX | 94.904 ms | 9 - 28 MB | NPU | Use Export Script |
49
- | Mask2Former | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | QNN_CONTEXT_BINARY | 70.388 ms | 2 - 18 MB | NPU | Use Export Script |
50
- | Mask2Former | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | PRECOMPILED_QNN_ONNX | 68.82 ms | 9 - 29 MB | NPU | Use Export Script |
51
- | Mask2Former | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen5 Mobile | QNN_CONTEXT_BINARY | 57.402 ms | 2 - 13 MB | NPU | Use Export Script |
52
- | Mask2Former | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen5 Mobile | PRECOMPILED_QNN_ONNX | 56.41 ms | 7 - 17 MB | NPU | Use Export Script |
53
- | Mask2Former | float | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_CONTEXT_BINARY | 145.538 ms | 2 - 2 MB | NPU | Use Export Script |
54
- | Mask2Former | float | Snapdragon X Elite CRD | Snapdragon® X Elite | PRECOMPILED_QNN_ONNX | 142.78 ms | 110 - 110 MB | NPU | Use Export Script |
55
-
56
-
57
-
58
-
59
- ## Installation
60
-
61
-
62
- Install the package via pip:
63
- ```bash
64
- # NOTE: 3.10 <= PYTHON_VERSION < 3.14 is supported.
65
- pip install "qai-hub-models[mask2former]" git+https://github.com/cocodataset/panopticapi.git
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.mask2former.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.mask2former.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.mask2former.export
112
- ```
113
 
 
114
 
 
 
115
 
116
- ## How does this work?
117
 
118
- This [export script](https://aihub.qualcomm.com/models/mask2former/qai_hub_models/models/Mask2Former/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.mask2former 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.mask2former.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.mask2former.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 Mask2Former's performance across various devices [here](https://aihub.qualcomm.com/models/mask2former).
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 Mask2Former can be found
230
  [here](https://github.com/huggingface/transformers/blob/main/LICENSE).
231
- * 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)
232
-
233
-
234
 
235
  ## References
236
  * [Masked-attention Mask Transformer for Universal Image Segmentation](https://arxiv.org/abs/2112.01527)
237
  * [Source Model Implementation](https://github.com/huggingface/transformers/tree/main/src/transformers/models/mask2former)
238
 
239
-
240
-
241
  ## Community
242
  * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
243
  * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
244
-
245
-
 
9
 
10
  ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/web-assets/model_demo.png)
11
 
12
+ # Mask2Former: Optimized for Qualcomm Devices
 
 
13
 
14
  Mask2Former is a machine learning model that predicts masks and classes of objects in an image.
15
 
16
+ This is based on the implementation of Mask2Former found [here](https://github.com/huggingface/transformers/tree/main/src/transformers/models/mask2former).
17
+ 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/mask2former) library to export with custom configurations. More details on model performance across various devices, can be found [here](#performance-summary).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
+ 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.
20
 
21
+ ## Getting Started
22
+ There are two ways to deploy this model on your device:
23
 
24
+ ### Option 1: Download Pre-Exported Models
25
 
26
+ Below are pre-exported model assets ready for deployment.
 
 
27
 
28
+ | Runtime | Precision | Chipset | SDK Versions | Download |
29
+ |---|---|---|---|---|
30
+ | QNN_CONTEXT_BINARY | float | Snapdragon® 8 Elite Gen 5 Mobile | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_snapdragon_8_elite_gen5.zip)
31
+ | QNN_CONTEXT_BINARY | float | Snapdragon® X2 Elite | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_snapdragon_x2_elite.zip)
32
+ | QNN_CONTEXT_BINARY | float | Snapdragon® X Elite | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_snapdragon_x_elite.zip)
33
+ | QNN_CONTEXT_BINARY | float | Snapdragon® 8 Gen 3 Mobile | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_snapdragon_8gen3.zip)
34
+ | QNN_CONTEXT_BINARY | float | Qualcomm® QCS8550 (Proxy) | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_qcs8550_proxy.zip)
35
+ | QNN_CONTEXT_BINARY | float | Qualcomm® SA8775P | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_sa8775p.zip)
36
+ | QNN_CONTEXT_BINARY | float | Snapdragon® 8 Elite For Galaxy Mobile | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_snapdragon_8_elite_for_galaxy.zip)
37
+ | QNN_CONTEXT_BINARY | float | Qualcomm® SA7255P | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_sa7255p.zip)
38
+ | QNN_CONTEXT_BINARY | float | Qualcomm® SA8295P | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_sa8295p.zip)
39
+ | QNN_CONTEXT_BINARY | float | Qualcomm® QCS9075 | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_qcs9075.zip)
40
+ | QNN_CONTEXT_BINARY | float | Qualcomm® QCS8450 (Proxy) | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_qcs8450_proxy.zip)
41
 
42
+ For more device-specific assets and performance metrics, visit **[Mask2Former on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/mask2former)**.
 
43
 
 
 
44
 
45
+ ### Option 2: Export with Custom Configurations
 
46
 
47
+ Use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/main/src/qai_hub_models/models/mask2former) Python library to compile and export the model with your own:
48
+ - Custom weights (e.g., fine-tuned checkpoints)
49
+ - Custom input shapes
50
+ - Target device and runtime configurations
51
 
52
+ This option is ideal if you need to customize the model beyond the default configuration provided here.
 
53
 
54
+ See our repository for [Mask2Former on GitHub](https://github.com/qualcomm/ai-hub-models/blob/main/src/qai_hub_models/models/mask2former) for usage instructions.
 
 
55
 
56
+ ## Model Details
57
 
58
+ **Model Type:** Model_use_case.semantic_segmentation
 
 
 
 
 
59
 
60
+ **Model Stats:**
61
+ - Model checkpoint: facebook/mask2former-swin-tiny-coco-panoptic
62
+ - Input resolution: 384x384
63
+ - Number of output classes: 100
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
 
65
+ ## Performance Summary
66
+ | Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit
67
+ |---|---|---|---|---|---|---
68
+ | Mask2Former | QNN_CONTEXT_BINARY | float | Snapdragon® 8 Elite Gen 5 Mobile | 98.025 ms | 2 - 12 MB | NPU
69
+ | Mask2Former | QNN_CONTEXT_BINARY | float | Snapdragon® X2 Elite | 99.752 ms | 2 - 2 MB | NPU
70
+ | Mask2Former | QNN_CONTEXT_BINARY | float | Snapdragon® X Elite | 207.032 ms | 2 - 2 MB | NPU
71
+ | Mask2Former | QNN_CONTEXT_BINARY | float | Snapdragon® 8 Gen 3 Mobile | 136.589 ms | 4 - 11 MB | NPU
72
+ | Mask2Former | QNN_CONTEXT_BINARY | float | Qualcomm® QCS8275 (Proxy) | 382.271 ms | 2 - 10 MB | NPU
73
+ | Mask2Former | QNN_CONTEXT_BINARY | float | Qualcomm® QCS8550 (Proxy) | 201.344 ms | 2 - 4 MB | NPU
74
+ | Mask2Former | QNN_CONTEXT_BINARY | float | Qualcomm® SA8775P | 205.791 ms | 2 - 10 MB | NPU
75
+ | Mask2Former | QNN_CONTEXT_BINARY | float | Qualcomm® QCS9075 | 205.293 ms | 2 - 9 MB | NPU
76
+ | Mask2Former | QNN_CONTEXT_BINARY | float | Qualcomm® QCS8450 (Proxy) | 267.598 ms | 2 - 11 MB | NPU
77
+ | Mask2Former | QNN_CONTEXT_BINARY | float | Qualcomm® SA7255P | 382.271 ms | 2 - 10 MB | NPU
78
+ | Mask2Former | QNN_CONTEXT_BINARY | float | Qualcomm® SA8295P | 205.358 ms | 2 - 7 MB | NPU
79
+ | Mask2Former | QNN_CONTEXT_BINARY | float | Snapdragon® 8 Elite For Galaxy Mobile | 113.204 ms | 2 - 15 MB | NPU
80
 
81
  ## License
82
  * The license for the original implementation of Mask2Former can be found
83
  [here](https://github.com/huggingface/transformers/blob/main/LICENSE).
 
 
 
84
 
85
  ## References
86
  * [Masked-attention Mask Transformer for Universal Image Segmentation](https://arxiv.org/abs/2112.01527)
87
  * [Source Model Implementation](https://github.com/huggingface/transformers/tree/main/src/transformers/models/mask2former)
88
 
 
 
89
  ## Community
90
  * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
91
  * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
 
 
precompiled/qualcomm-qcs8275-proxy/Mask2Former_float.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f9c470bbbaa2d114772118c915f9b91190adc9b056c150c9666fdf96cf14c57f
3
- size 117043200
 
 
 
 
precompiled/qualcomm-qcs8275-proxy/tool-versions.yaml DELETED
@@ -1,3 +0,0 @@
1
- tool_versions:
2
- qnn_context_binary:
3
- qairt: 2.40.0.251030114326_189385-auto
 
 
 
 
precompiled/qualcomm-qcs8450-proxy/Mask2Former_float.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:cbaa005fb6b2e846b6cbea62e6884da9d3db911b6d33085480151f6821cbb799
3
- size 118067200
 
 
 
 
precompiled/qualcomm-qcs8450-proxy/tool-versions.yaml DELETED
@@ -1,3 +0,0 @@
1
- tool_versions:
2
- qnn_context_binary:
3
- qairt: 2.40.0.251030114326_189385
 
 
 
 
precompiled/qualcomm-qcs8550-proxy/Mask2Former_float.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3e53e517b47db4a488b7e16556ccfe100617c8ae295129268936b656a7077a5a
3
- size 116764672
 
 
 
 
precompiled/qualcomm-qcs8550-proxy/Mask2Former_float.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7df19926cb99fe690eea7126b4c693e7c6a1522009066ed72ec0d75feb3a520c
3
- size 95257237
 
 
 
 
precompiled/qualcomm-qcs8550-proxy/tool-versions.yaml DELETED
@@ -1,4 +0,0 @@
1
- tool_versions:
2
- precompiled_qnn_onnx:
3
- qairt: 2.37.1.250807093845_124904
4
- onnx_runtime: 1.23.0
 
 
 
 
 
precompiled/qualcomm-qcs9075-proxy/Mask2Former_float.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1faf1fa99cb277e16b455091f13f9bf486fc7464686b3a9a9b2d420ea0ac45cb
3
- size 117075968
 
 
 
 
precompiled/qualcomm-qcs9075-proxy/tool-versions.yaml DELETED
@@ -1,3 +0,0 @@
1
- tool_versions:
2
- qnn_context_binary:
3
- qairt: 2.40.0.251030114326_189385-auto
 
 
 
 
precompiled/qualcomm-sa7255p/Mask2Former_float.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f9c470bbbaa2d114772118c915f9b91190adc9b056c150c9666fdf96cf14c57f
3
- size 117043200
 
 
 
 
precompiled/qualcomm-sa7255p/tool-versions.yaml DELETED
@@ -1,3 +0,0 @@
1
- tool_versions:
2
- qnn_context_binary:
3
- qairt: 2.40.0.251030114326_189385-auto
 
 
 
 
precompiled/qualcomm-sa8255p-proxy/Mask2Former_float.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c2128db591ff2554cea0c008193d37c3507210d08c15ae952c144893ecf7e2b6
3
- size 116764672
 
 
 
 
precompiled/qualcomm-sa8255p-proxy/tool-versions.yaml DELETED
@@ -1,3 +0,0 @@
1
- tool_versions:
2
- qnn_context_binary:
3
- qairt: 2.40.0.251030114326_189385
 
 
 
 
precompiled/qualcomm-sa8295p/Mask2Former_float.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:53f32adcca4e38070b8cb94d2d77cf44492fe98e03f6948aa1be3192c2f35fc4
3
- size 117649408
 
 
 
 
precompiled/qualcomm-sa8295p/tool-versions.yaml DELETED
@@ -1,3 +0,0 @@
1
- tool_versions:
2
- qnn_context_binary:
3
- qairt: 2.40.0.251030114326_189385-auto
 
 
 
 
precompiled/qualcomm-sa8650p-proxy/Mask2Former_float.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:08410c407cf924c05ba8169a2c6e840ecf0b428a47a0136f5c8ee61a17a9f2c4
3
- size 116764672
 
 
 
 
precompiled/qualcomm-sa8650p-proxy/tool-versions.yaml DELETED
@@ -1,3 +0,0 @@
1
- tool_versions:
2
- qnn_context_binary:
3
- qairt: 2.40.0.251030114326_189385
 
 
 
 
precompiled/qualcomm-sa8775p/Mask2Former_float.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1faf1fa99cb277e16b455091f13f9bf486fc7464686b3a9a9b2d420ea0ac45cb
3
- size 117075968
 
 
 
 
precompiled/qualcomm-sa8775p/tool-versions.yaml DELETED
@@ -1,3 +0,0 @@
1
- tool_versions:
2
- qnn_context_binary:
3
- qairt: 2.40.0.251030114326_189385-auto
 
 
 
 
precompiled/qualcomm-snapdragon-8-elite-for-galaxy/Mask2Former_float.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1abf422904763172a6dd8438366f038094449837a3db96488d0e3b178dd542f0
3
- size 113733632
 
 
 
 
precompiled/qualcomm-snapdragon-8-elite-for-galaxy/Mask2Former_float.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ca5ad9e10be3ec913bd050ca8ad7069069916ef92e28940e37aa851fe06b3c92
3
- size 93998944
 
 
 
 
precompiled/qualcomm-snapdragon-8-elite-for-galaxy/tool-versions.yaml DELETED
@@ -1,4 +0,0 @@
1
- tool_versions:
2
- precompiled_qnn_onnx:
3
- qairt: 2.37.1.250807093845_124904
4
- onnx_runtime: 1.23.0
 
 
 
 
 
precompiled/qualcomm-snapdragon-8-elite-gen5/Mask2Former_float.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:34d1536424e5a66c9007ebdec5f80595e80d3d9598f5d652a74fedcf3a70913a
3
- size 114941952
 
 
 
 
precompiled/qualcomm-snapdragon-8-elite-gen5/Mask2Former_float.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:cd1aa7c9a7295893ce4a6b9261324df098474c64ff74ab1ab513a75f3c0af13f
3
- size 94143783
 
 
 
 
precompiled/qualcomm-snapdragon-8-elite-gen5/tool-versions.yaml DELETED
@@ -1,4 +0,0 @@
1
- tool_versions:
2
- precompiled_qnn_onnx:
3
- qairt: 2.37.1.250807093845_124904
4
- onnx_runtime: 1.23.0
 
 
 
 
 
precompiled/qualcomm-snapdragon-8gen3/Mask2Former_float.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:9531f0700913a82e3993ceb905f5ad3bc28d24952c5b325839a5db60d5faeded
3
- size 117006336
 
 
 
 
precompiled/qualcomm-snapdragon-8gen3/Mask2Former_float.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3e01d4bd2d26920af81d98060c0ad9bf3059de544ec6fc4f64ff11084889d22b
3
- size 95346425
 
 
 
 
precompiled/qualcomm-snapdragon-8gen3/tool-versions.yaml DELETED
@@ -1,4 +0,0 @@
1
- tool_versions:
2
- precompiled_qnn_onnx:
3
- qairt: 2.37.1.250807093845_124904
4
- onnx_runtime: 1.23.0
 
 
 
 
 
precompiled/qualcomm-snapdragon-x-elite/Mask2Former_float.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:59d3b6f26861fdcc1c7e56d1769aa446c90924415c6701037a69decd7007e96e
3
- size 116764672
 
 
 
 
precompiled/qualcomm-snapdragon-x-elite/Mask2Former_float.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:45d946b8bca2f6e34a05919cb78023693df5a407e1298bcd1f57d96843e82ff3
3
- size 95249392
 
 
 
 
precompiled/qualcomm-snapdragon-x-elite/tool-versions.yaml DELETED
@@ -1,4 +0,0 @@
1
- tool_versions:
2
- precompiled_qnn_onnx:
3
- qairt: 2.37.1.250807093845_124904
4
- onnx_runtime: 1.23.0
 
 
 
 
 
release_assets.json ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "0.51.0",
3
+ "precisions": {
4
+ "float": {
5
+ "chipset_assets": {
6
+ "qualcomm-snapdragon-8gen3": {
7
+ "qnn_context_binary": {
8
+ "tool_versions": {
9
+ "qairt": "2.45.0.260326154327"
10
+ },
11
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_snapdragon_8gen3.zip"
12
+ }
13
+ },
14
+ "qualcomm-snapdragon-8-elite-for-galaxy": {
15
+ "qnn_context_binary": {
16
+ "tool_versions": {
17
+ "qairt": "2.45.0.260326154327"
18
+ },
19
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_snapdragon_8_elite_for_galaxy.zip"
20
+ }
21
+ },
22
+ "qualcomm-snapdragon-8-elite-gen5": {
23
+ "qnn_context_binary": {
24
+ "tool_versions": {
25
+ "qairt": "2.45.0.260326154327"
26
+ },
27
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_snapdragon_8_elite_gen5.zip"
28
+ }
29
+ },
30
+ "qualcomm-snapdragon-x-elite": {
31
+ "qnn_context_binary": {
32
+ "tool_versions": {
33
+ "qairt": "2.45.0.260326154327"
34
+ },
35
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_snapdragon_x_elite.zip"
36
+ }
37
+ },
38
+ "qualcomm-snapdragon-x2-elite": {
39
+ "qnn_context_binary": {
40
+ "tool_versions": {
41
+ "qairt": "2.45.0.260326154327"
42
+ },
43
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_snapdragon_x2_elite.zip"
44
+ }
45
+ },
46
+ "qualcomm-sa7255p": {
47
+ "qnn_context_binary": {
48
+ "tool_versions": {
49
+ "qairt": "2.45.0.260326154327"
50
+ },
51
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_sa7255p.zip"
52
+ }
53
+ },
54
+ "qualcomm-sa8295p": {
55
+ "qnn_context_binary": {
56
+ "tool_versions": {
57
+ "qairt": "2.45.0.260326154327"
58
+ },
59
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_sa8295p.zip"
60
+ }
61
+ },
62
+ "qualcomm-sa8775p": {
63
+ "qnn_context_binary": {
64
+ "tool_versions": {
65
+ "qairt": "2.45.0.260326154327"
66
+ },
67
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_sa8775p.zip"
68
+ }
69
+ },
70
+ "qualcomm-qcs8550-proxy": {
71
+ "qnn_context_binary": {
72
+ "tool_versions": {
73
+ "qairt": "2.45.0.260326154327"
74
+ },
75
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_qcs8550_proxy.zip"
76
+ }
77
+ },
78
+ "qualcomm-qcs9075": {
79
+ "qnn_context_binary": {
80
+ "tool_versions": {
81
+ "qairt": "2.45.0.260326154327"
82
+ },
83
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_qcs9075.zip"
84
+ }
85
+ },
86
+ "qualcomm-qcs8450-proxy": {
87
+ "qnn_context_binary": {
88
+ "tool_versions": {
89
+ "qairt": "2.45.0.260326154327"
90
+ },
91
+ "download_url": "https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/mask2former/releases/v0.51.0/mask2former-qnn_context_binary-float-qualcomm_qcs8450_proxy.zip"
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }