MediaPipe-Selfie-Segmentation: Optimized for Qualcomm Devices
Light-weight model that segments a person from the background in square or landscape selfie and video conference imagery.
This is based on the implementation of MediaPipe-Selfie-Segmentation found here. This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the Qualcomm® AI Hub Models library to export with custom configurations. More details on model performance across various devices, can be found here.
Qualcomm AI Hub Models uses Qualcomm AI Hub Workbench to compile, profile, and evaluate this model. Sign up to run these models on a hosted Qualcomm® device.
Getting Started
There are two ways to deploy this model on your device:
Option 1: Download Pre-Exported Models
Below are pre-exported model assets ready for deployment.
| Runtime | Precision | Chipset | SDK Versions | Download |
|---|---|---|---|---|
| ONNX | float | Universal | QAIRT 2.42, ONNX Runtime 1.24.3 | Download |
| ONNX | w8a16 | Universal | QAIRT 2.42, ONNX Runtime 1.24.3 | Download |
| ONNX | w8a8 | Universal | QAIRT 2.42, ONNX Runtime 1.24.3 | Download |
| QNN_DLC | float | Universal | QAIRT 2.45 | Download |
| QNN_DLC | w8a16 | Universal | QAIRT 2.45 | Download |
| QNN_DLC | w8a8 | Universal | QAIRT 2.45 | Download |
| TFLITE | float | Universal | QAIRT 2.45 | Download |
| TFLITE | w8a8 | Universal | QAIRT 2.45 | Download |
For more device-specific assets and performance metrics, visit MediaPipe-Selfie-Segmentation on Qualcomm® AI Hub.
Option 2: Export with Custom Configurations
Use the Qualcomm® AI Hub Models Python library to compile and export the model with your own:
- Custom weights (e.g., fine-tuned checkpoints)
- Custom input shapes
- Target device and runtime configurations
This option is ideal if you need to customize the model beyond the default configuration provided here.
See our repository for MediaPipe-Selfie-Segmentation on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.semantic_segmentation
Model Stats:
- Model checkpoint: Square
- Input resolution (Square): 256x256
- Input resolution (Landscape): 144x256
- Number of output classes: 6
- Number of parameters: 106K
- Model size (float): 447 KB
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| MediaPipe-Selfie-Segmentation | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.369 ms | 0 - 31 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | float | Snapdragon® 8 Elite Mobile | 0.411 ms | 0 - 30 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | float | Snapdragon® X2 Elite | 0.402 ms | 0 - 0 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | float | Snapdragon® X Elite | 0.919 ms | 2 - 2 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | float | Snapdragon® X Elite | 0.919 ms | 2 - 2 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 0.525 ms | 0 - 36 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | float | Qualcomm® QCS8550 (Proxy) | 0.778 ms | 0 - 2 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | float | Qualcomm® QCS9075 | 0.99 ms | 1 - 4 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.411 ms | 0 - 30 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 0.382 ms | 0 - 37 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a16 | Snapdragon® 8 Elite Mobile | 0.448 ms | 0 - 30 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a16 | Snapdragon® X2 Elite | 0.392 ms | 0 - 0 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a16 | Snapdragon® X Elite | 0.983 ms | 1 - 1 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a16 | Snapdragon® X Elite | 0.983 ms | 1 - 1 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 0.549 ms | 0 - 40 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a16 | Qualcomm® QCS6490 | 25.249 ms | 14 - 17 MB | CPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a16 | Qualcomm® QCS8550 (Proxy) | 0.839 ms | 0 - 4 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a16 | Qualcomm® QCS9075 | 0.964 ms | 0 - 3 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a16 | Qualcomm® QCM6690 | 11.835 ms | 14 - 21 MB | CPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 0.448 ms | 0 - 30 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 8.059 ms | 16 - 23 MB | CPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 8.059 ms | 16 - 23 MB | CPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 0.184 ms | 0 - 30 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a8 | Snapdragon® 8 Elite Mobile | 0.205 ms | 0 - 30 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a8 | Snapdragon® X2 Elite | 0.18 ms | 0 - 0 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a8 | Snapdragon® X Elite | 0.493 ms | 1 - 1 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a8 | Snapdragon® X Elite | 0.493 ms | 1 - 1 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.257 ms | 0 - 36 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a8 | Qualcomm® QCS6490 | 9.737 ms | 7 - 11 MB | CPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a8 | Qualcomm® QCS8550 (Proxy) | 0.368 ms | 0 - 2 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a8 | Qualcomm® QCS9075 | 0.515 ms | 0 - 3 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a8 | Qualcomm® QCM6690 | 5.847 ms | 5 - 13 MB | CPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.205 ms | 0 - 30 MB | NPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a8 | Snapdragon® 7 Gen 4 Mobile | 4.164 ms | 0 - 8 MB | CPU |
| MediaPipe-Selfie-Segmentation | ONNX | w8a8 | Snapdragon® 7 Gen 4 Mobile | 4.164 ms | 0 - 8 MB | CPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.321 ms | 1 - 31 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | float | Snapdragon® 8 Elite Mobile | 0.359 ms | 0 - 30 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | float | Snapdragon® X2 Elite | 0.449 ms | 1 - 1 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | float | Snapdragon® X Elite | 0.816 ms | 1 - 1 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | float | Snapdragon® X Elite | 0.816 ms | 1 - 1 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 0.454 ms | 0 - 37 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | float | Qualcomm® QCS8275 (Proxy) | 1.788 ms | 1 - 25 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | float | Qualcomm® QCS8550 (Proxy) | 0.68 ms | 1 - 3 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | float | Qualcomm® SA8775P | 0.973 ms | 1 - 28 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | float | Qualcomm® SA8775P | 0.973 ms | 1 - 28 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | float | Qualcomm® SA8775P | 0.973 ms | 1 - 28 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | float | Qualcomm® QCS9075 | 0.839 ms | 3 - 5 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | float | Qualcomm® QCS8450 (Proxy) | 0.931 ms | 0 - 39 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | float | Qualcomm® SA7255P | 1.788 ms | 1 - 25 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | float | Qualcomm® SA8295P | 1.274 ms | 0 - 25 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.359 ms | 0 - 30 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 0.266 ms | 0 - 32 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Snapdragon® 8 Elite Mobile | 0.328 ms | 0 - 27 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Snapdragon® X2 Elite | 0.382 ms | 0 - 0 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Snapdragon® X Elite | 0.738 ms | 0 - 0 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Snapdragon® X Elite | 0.738 ms | 0 - 0 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Snapdragon® 8 Gen 3 Mobile | 0.42 ms | 0 - 36 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Qualcomm® QCS6490 | 1.787 ms | 2 - 5 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Qualcomm® QCS8275 (Proxy) | 1.34 ms | 0 - 26 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Qualcomm® QCS8550 (Proxy) | 0.607 ms | 0 - 2 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Qualcomm® SA8775P | 0.818 ms | 0 - 29 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Qualcomm® SA8775P | 0.818 ms | 0 - 29 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Qualcomm® SA8775P | 0.818 ms | 0 - 29 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Qualcomm® QCS9075 | 0.72 ms | 0 - 2 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Qualcomm® QCM6690 | 1.998 ms | 0 - 139 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Qualcomm® QCS8450 (Proxy) | 0.761 ms | 0 - 39 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Qualcomm® SA7255P | 1.34 ms | 0 - 26 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Qualcomm® SA8295P | 1.053 ms | 0 - 25 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 0.328 ms | 0 - 27 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Snapdragon® 7 Gen 4 Mobile | 0.609 ms | 0 - 26 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a16 | Snapdragon® 7 Gen 4 Mobile | 0.609 ms | 0 - 26 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 0.137 ms | 0 - 26 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Snapdragon® 8 Elite Mobile | 0.146 ms | 0 - 26 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Snapdragon® X2 Elite | 0.236 ms | 0 - 0 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Snapdragon® X Elite | 0.362 ms | 0 - 0 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Snapdragon® X Elite | 0.362 ms | 0 - 0 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.178 ms | 0 - 32 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Qualcomm® QCS6490 | 0.792 ms | 2 - 4 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Qualcomm® QCS8275 (Proxy) | 0.7 ms | 0 - 24 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Qualcomm® QCS8550 (Proxy) | 0.265 ms | 0 - 14 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Qualcomm® SA8775P | 0.441 ms | 0 - 26 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Qualcomm® SA8775P | 0.441 ms | 0 - 26 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Qualcomm® SA8775P | 0.441 ms | 0 - 26 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Qualcomm® QCS9075 | 0.352 ms | 0 - 2 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Qualcomm® QCM6690 | 0.85 ms | 0 - 23 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Qualcomm® QCS8450 (Proxy) | 0.337 ms | 0 - 35 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Qualcomm® SA7255P | 0.7 ms | 0 - 24 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Qualcomm® SA8295P | 0.613 ms | 0 - 22 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.146 ms | 0 - 26 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Snapdragon® 7 Gen 4 Mobile | 0.254 ms | 0 - 23 MB | NPU |
| MediaPipe-Selfie-Segmentation | QNN_DLC | w8a8 | Snapdragon® 7 Gen 4 Mobile | 0.254 ms | 0 - 23 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.325 ms | 0 - 30 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | float | Snapdragon® 8 Elite Mobile | 0.364 ms | 0 - 30 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 0.459 ms | 0 - 36 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | float | Qualcomm® QCS8275 (Proxy) | 1.78 ms | 0 - 27 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | float | Qualcomm® QCS8550 (Proxy) | 0.685 ms | 0 - 4 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | float | Qualcomm® SA8775P | 0.985 ms | 0 - 28 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | float | Qualcomm® SA8775P | 0.985 ms | 0 - 28 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | float | Qualcomm® SA8775P | 0.985 ms | 0 - 28 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | float | Qualcomm® QCS9075 | 0.841 ms | 0 - 3 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | float | Qualcomm® QCS8450 (Proxy) | 0.942 ms | 0 - 38 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | float | Qualcomm® SA7255P | 1.78 ms | 0 - 27 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | float | Qualcomm® SA8295P | 1.264 ms | 0 - 25 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.364 ms | 0 - 30 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 0.14 ms | 0 - 25 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Snapdragon® 8 Elite Mobile | 0.15 ms | 0 - 22 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.178 ms | 0 - 31 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Qualcomm® QCS6490 | 0.873 ms | 0 - 3 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Qualcomm® QCS8275 (Proxy) | 0.709 ms | 0 - 23 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Qualcomm® QCS8550 (Proxy) | 0.262 ms | 0 - 9 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Qualcomm® SA8775P | 0.469 ms | 0 - 25 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Qualcomm® SA8775P | 0.469 ms | 0 - 25 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Qualcomm® SA8775P | 0.469 ms | 0 - 25 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Qualcomm® QCS9075 | 0.366 ms | 0 - 2 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Qualcomm® QCM6690 | 0.846 ms | 0 - 21 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Qualcomm® QCS8450 (Proxy) | 0.348 ms | 0 - 34 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Qualcomm® SA7255P | 0.709 ms | 0 - 23 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Qualcomm® SA8295P | 0.638 ms | 0 - 21 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.15 ms | 0 - 22 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Snapdragon® 7 Gen 4 Mobile | 0.258 ms | 0 - 22 MB | NPU |
| MediaPipe-Selfie-Segmentation | TFLITE | w8a8 | Snapdragon® 7 Gen 4 Mobile | 0.258 ms | 0 - 22 MB | NPU |
License
- The license for the original implementation of MediaPipe-Selfie-Segmentation can be found here.
References
Community
- Join our AI Hub Slack community to collaborate, post questions and learn more about on-device AI.
- For questions or feedback please reach out to us.
