MediaPipe-Face-Detection: Optimized for Qualcomm Devices
Designed for sub-millisecond processing, this model predicts bounding boxes and pose skeletons (left eye, right eye, nose tip, mouth, left eye tragion, and right eye tragion) of faces in an image.
This is based on the implementation of MediaPipe-Face-Detection 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 | w8a8 | Universal | QAIRT 2.42, ONNX Runtime 1.24.3 | Download |
| QNN_DLC | float | 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-Face-Detection 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-Face-Detection on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.object_detection
Model Stats:
- Input resolution: 256x256
- Number of output classes: 6
- Number of parameters (face_detector): 135K
- Model size (face_detector) (w8a8): 260 KB
- Number of parameters (face_landmark_detector): 603K
- Model size (face_landmark_detector) (w8a8): 750 KB
- Model size (face_detector) (float): 557 KB
- Model size (face_landmark_detector) (float): 2.33 MB
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| face_detector | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.337 ms | 0 - 34 MB | NPU |
| face_detector | ONNX | float | Snapdragon® X2 Elite | 0.386 ms | 0 - 0 MB | NPU |
| face_detector | ONNX | float | Snapdragon® X Elite | 0.856 ms | 2 - 2 MB | NPU |
| face_detector | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 0.494 ms | 0 - 43 MB | NPU |
| face_detector | ONNX | float | Qualcomm® QCS8550 (Proxy) | 0.678 ms | 1 - 71 MB | NPU |
| face_detector | ONNX | float | Qualcomm® QCS9075 | 1.136 ms | 1 - 3 MB | NPU |
| face_detector | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.411 ms | 0 - 35 MB | NPU |
| face_detector | ONNX | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 0.149 ms | 0 - 36 MB | NPU |
| face_detector | ONNX | w8a8 | Snapdragon® X2 Elite | 0.142 ms | 0 - 0 MB | NPU |
| face_detector | ONNX | w8a8 | Snapdragon® X Elite | 0.402 ms | 1 - 1 MB | NPU |
| face_detector | ONNX | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.191 ms | 0 - 42 MB | NPU |
| face_detector | ONNX | w8a8 | Qualcomm® QCS6490 | 10.057 ms | 6 - 10 MB | CPU |
| face_detector | ONNX | w8a8 | Qualcomm® QCS8550 (Proxy) | 0.284 ms | 0 - 2 MB | NPU |
| face_detector | ONNX | w8a8 | Qualcomm® QCS9075 | 0.425 ms | 0 - 3 MB | NPU |
| face_detector | ONNX | w8a8 | Qualcomm® QCM6690 | 7.254 ms | 7 - 15 MB | CPU |
| face_detector | ONNX | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.161 ms | 0 - 31 MB | NPU |
| face_detector | ONNX | w8a8 | Snapdragon® 7 Gen 4 Mobile | 5.444 ms | 6 - 14 MB | CPU |
| face_detector | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.274 ms | 0 - 33 MB | NPU |
| face_detector | QNN_DLC | float | Snapdragon® X2 Elite | 0.457 ms | 1 - 1 MB | NPU |
| face_detector | QNN_DLC | float | Snapdragon® X Elite | 0.687 ms | 1 - 1 MB | NPU |
| face_detector | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 0.392 ms | 0 - 40 MB | NPU |
| face_detector | QNN_DLC | float | Qualcomm® QCS8275 (Proxy) | 2.879 ms | 0 - 28 MB | NPU |
| face_detector | QNN_DLC | float | Qualcomm® QCS8550 (Proxy) | 0.533 ms | 1 - 2 MB | NPU |
| face_detector | QNN_DLC | float | Qualcomm® SA8775P | 1.014 ms | 1 - 31 MB | NPU |
| face_detector | QNN_DLC | float | Qualcomm® QCS9075 | 0.881 ms | 1 - 3 MB | NPU |
| face_detector | QNN_DLC | float | Qualcomm® QCS8450 (Proxy) | 0.772 ms | 0 - 37 MB | NPU |
| face_detector | QNN_DLC | float | Qualcomm® SA7255P | 2.879 ms | 0 - 28 MB | NPU |
| face_detector | QNN_DLC | float | Qualcomm® SA8295P | 1.085 ms | 1 - 25 MB | NPU |
| face_detector | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.333 ms | 0 - 28 MB | NPU |
| face_detector | QNN_DLC | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 0.132 ms | 0 - 31 MB | NPU |
| face_detector | QNN_DLC | w8a8 | Snapdragon® X2 Elite | 0.235 ms | 0 - 0 MB | NPU |
| face_detector | QNN_DLC | w8a8 | Snapdragon® X Elite | 0.353 ms | 0 - 0 MB | NPU |
| face_detector | QNN_DLC | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.164 ms | 0 - 37 MB | NPU |
| face_detector | QNN_DLC | w8a8 | Qualcomm® QCS6490 | 0.675 ms | 0 - 2 MB | NPU |
| face_detector | QNN_DLC | w8a8 | Qualcomm® QCS8275 (Proxy) | 0.671 ms | 0 - 27 MB | NPU |
| face_detector | QNN_DLC | w8a8 | Qualcomm® QCS8550 (Proxy) | 0.242 ms | 0 - 55 MB | NPU |
| face_detector | QNN_DLC | w8a8 | Qualcomm® SA8775P | 0.425 ms | 0 - 30 MB | NPU |
| face_detector | QNN_DLC | w8a8 | Qualcomm® QCS9075 | 0.329 ms | 2 - 4 MB | NPU |
| face_detector | QNN_DLC | w8a8 | Qualcomm® QCM6690 | 1.274 ms | 0 - 27 MB | NPU |
| face_detector | QNN_DLC | w8a8 | Qualcomm® QCS8450 (Proxy) | 0.29 ms | 0 - 39 MB | NPU |
| face_detector | QNN_DLC | w8a8 | Qualcomm® SA7255P | 0.671 ms | 0 - 27 MB | NPU |
| face_detector | QNN_DLC | w8a8 | Qualcomm® SA8295P | 0.602 ms | 0 - 25 MB | NPU |
| face_detector | QNN_DLC | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.142 ms | 0 - 32 MB | NPU |
| face_detector | QNN_DLC | w8a8 | Snapdragon® 7 Gen 4 Mobile | 0.246 ms | 0 - 26 MB | NPU |
| face_detector | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.281 ms | 0 - 32 MB | NPU |
| face_detector | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 0.401 ms | 0 - 39 MB | NPU |
| face_detector | TFLITE | float | Qualcomm® QCS8275 (Proxy) | 2.927 ms | 0 - 29 MB | NPU |
| face_detector | TFLITE | float | Qualcomm® QCS8550 (Proxy) | 0.528 ms | 0 - 2 MB | NPU |
| face_detector | TFLITE | float | Qualcomm® SA8775P | 1.022 ms | 0 - 31 MB | NPU |
| face_detector | TFLITE | float | Qualcomm® QCS9075 | 0.897 ms | 0 - 3 MB | NPU |
| face_detector | TFLITE | float | Qualcomm® QCS8450 (Proxy) | 0.788 ms | 0 - 37 MB | NPU |
| face_detector | TFLITE | float | Qualcomm® SA7255P | 2.927 ms | 0 - 29 MB | NPU |
| face_detector | TFLITE | float | Qualcomm® SA8295P | 1.114 ms | 0 - 25 MB | NPU |
| face_detector | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.343 ms | 0 - 33 MB | NPU |
| face_detector | TFLITE | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 0.135 ms | 0 - 30 MB | NPU |
| face_detector | TFLITE | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.167 ms | 0 - 37 MB | NPU |
| face_detector | TFLITE | w8a8 | Qualcomm® QCS6490 | 0.713 ms | 0 - 3 MB | NPU |
| face_detector | TFLITE | w8a8 | Qualcomm® QCS8275 (Proxy) | 0.685 ms | 0 - 26 MB | NPU |
| face_detector | TFLITE | w8a8 | Qualcomm® QCS8550 (Proxy) | 0.246 ms | 0 - 2 MB | NPU |
| face_detector | TFLITE | w8a8 | Qualcomm® SA8775P | 0.442 ms | 0 - 29 MB | NPU |
| face_detector | TFLITE | w8a8 | Qualcomm® QCS9075 | 0.349 ms | 0 - 2 MB | NPU |
| face_detector | TFLITE | w8a8 | Qualcomm® QCM6690 | 1.273 ms | 0 - 26 MB | NPU |
| face_detector | TFLITE | w8a8 | Qualcomm® QCS8450 (Proxy) | 0.318 ms | 0 - 37 MB | NPU |
| face_detector | TFLITE | w8a8 | Qualcomm® SA7255P | 0.685 ms | 0 - 26 MB | NPU |
| face_detector | TFLITE | w8a8 | Qualcomm® SA8295P | 0.59 ms | 0 - 25 MB | NPU |
| face_detector | TFLITE | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.144 ms | 0 - 26 MB | NPU |
| face_detector | TFLITE | w8a8 | Snapdragon® 7 Gen 4 Mobile | 0.246 ms | 0 - 25 MB | NPU |
| face_landmark_detector | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.155 ms | 0 - 27 MB | NPU |
| face_landmark_detector | ONNX | float | Snapdragon® X2 Elite | 0.171 ms | 0 - 0 MB | NPU |
| face_landmark_detector | ONNX | float | Snapdragon® X Elite | 0.38 ms | 0 - 0 MB | NPU |
| face_landmark_detector | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 0.203 ms | 0 - 34 MB | NPU |
| face_landmark_detector | ONNX | float | Qualcomm® QCS8550 (Proxy) | 0.28 ms | 0 - 22 MB | NPU |
| face_landmark_detector | ONNX | float | Qualcomm® QCS9075 | 0.418 ms | 0 - 3 MB | NPU |
| face_landmark_detector | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.187 ms | 0 - 22 MB | NPU |
| face_landmark_detector | ONNX | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 0.121 ms | 0 - 29 MB | NPU |
| face_landmark_detector | ONNX | w8a8 | Snapdragon® X2 Elite | 0.125 ms | 0 - 0 MB | NPU |
| face_landmark_detector | ONNX | w8a8 | Snapdragon® X Elite | 0.298 ms | 0 - 0 MB | NPU |
| face_landmark_detector | ONNX | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.153 ms | 0 - 37 MB | NPU |
| face_landmark_detector | ONNX | w8a8 | Qualcomm® QCS6490 | 7.177 ms | 3 - 6 MB | CPU |
| face_landmark_detector | ONNX | w8a8 | Qualcomm® QCS8550 (Proxy) | 0.203 ms | 0 - 3 MB | NPU |
| face_landmark_detector | ONNX | w8a8 | Qualcomm® QCS9075 | 0.317 ms | 0 - 3 MB | NPU |
| face_landmark_detector | ONNX | w8a8 | Qualcomm® QCM6690 | 3.702 ms | 0 - 6 MB | CPU |
| face_landmark_detector | ONNX | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.135 ms | 0 - 26 MB | NPU |
| face_landmark_detector | ONNX | w8a8 | Snapdragon® 7 Gen 4 Mobile | 2.44 ms | 0 - 7 MB | CPU |
| face_landmark_detector | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.126 ms | 0 - 26 MB | NPU |
| face_landmark_detector | QNN_DLC | float | Snapdragon® X2 Elite | 0.232 ms | 0 - 0 MB | NPU |
| face_landmark_detector | QNN_DLC | float | Snapdragon® X Elite | 0.327 ms | 0 - 0 MB | NPU |
| face_landmark_detector | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 0.166 ms | 0 - 33 MB | NPU |
| face_landmark_detector | QNN_DLC | float | Qualcomm® QCS8275 (Proxy) | 0.859 ms | 0 - 22 MB | NPU |
| face_landmark_detector | QNN_DLC | float | Qualcomm® QCS8550 (Proxy) | 0.219 ms | 0 - 14 MB | NPU |
| face_landmark_detector | QNN_DLC | float | Qualcomm® SA8775P | 0.435 ms | 0 - 24 MB | NPU |
| face_landmark_detector | QNN_DLC | float | Qualcomm® QCS9075 | 0.332 ms | 0 - 3 MB | NPU |
| face_landmark_detector | QNN_DLC | float | Qualcomm® QCS8450 (Proxy) | 0.329 ms | 0 - 38 MB | NPU |
| face_landmark_detector | QNN_DLC | float | Qualcomm® SA7255P | 0.859 ms | 0 - 22 MB | NPU |
| face_landmark_detector | QNN_DLC | float | Qualcomm® SA8295P | 0.601 ms | 0 - 23 MB | NPU |
| face_landmark_detector | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.151 ms | 0 - 22 MB | NPU |
| face_landmark_detector | QNN_DLC | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 0.097 ms | 0 - 26 MB | NPU |
| face_landmark_detector | QNN_DLC | w8a8 | Snapdragon® X2 Elite | 0.185 ms | 0 - 0 MB | NPU |
| face_landmark_detector | QNN_DLC | w8a8 | Snapdragon® X Elite | 0.259 ms | 0 - 0 MB | NPU |
| face_landmark_detector | QNN_DLC | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.117 ms | 0 - 33 MB | NPU |
| face_landmark_detector | QNN_DLC | w8a8 | Qualcomm® QCS6490 | 0.537 ms | 0 - 2 MB | NPU |
| face_landmark_detector | QNN_DLC | w8a8 | Qualcomm® QCS8275 (Proxy) | 0.475 ms | 0 - 26 MB | NPU |
| face_landmark_detector | QNN_DLC | w8a8 | Qualcomm® QCS8550 (Proxy) | 0.145 ms | 0 - 17 MB | NPU |
| face_landmark_detector | QNN_DLC | w8a8 | Qualcomm® SA8775P | 0.315 ms | 0 - 26 MB | NPU |
| face_landmark_detector | QNN_DLC | w8a8 | Qualcomm® QCS9075 | 0.219 ms | 2 - 4 MB | NPU |
| face_landmark_detector | QNN_DLC | w8a8 | Qualcomm® QCM6690 | 0.501 ms | 0 - 22 MB | NPU |
| face_landmark_detector | QNN_DLC | w8a8 | Qualcomm® QCS8450 (Proxy) | 0.199 ms | 0 - 35 MB | NPU |
| face_landmark_detector | QNN_DLC | w8a8 | Qualcomm® SA7255P | 0.475 ms | 0 - 26 MB | NPU |
| face_landmark_detector | QNN_DLC | w8a8 | Qualcomm® SA8295P | 0.444 ms | 0 - 23 MB | NPU |
| face_landmark_detector | QNN_DLC | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.101 ms | 0 - 24 MB | NPU |
| face_landmark_detector | QNN_DLC | w8a8 | Snapdragon® 7 Gen 4 Mobile | 0.149 ms | 0 - 23 MB | NPU |
| face_landmark_detector | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.107 ms | 0 - 27 MB | NPU |
| face_landmark_detector | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 0.151 ms | 0 - 33 MB | NPU |
| face_landmark_detector | TFLITE | float | Qualcomm® QCS8275 (Proxy) | 0.864 ms | 0 - 24 MB | NPU |
| face_landmark_detector | TFLITE | float | Qualcomm® QCS8550 (Proxy) | 0.194 ms | 0 - 2 MB | NPU |
| face_landmark_detector | TFLITE | float | Qualcomm® SA8775P | 0.423 ms | 0 - 25 MB | NPU |
| face_landmark_detector | TFLITE | float | Qualcomm® QCS9075 | 0.305 ms | 0 - 4 MB | NPU |
| face_landmark_detector | TFLITE | float | Qualcomm® QCS8450 (Proxy) | 0.308 ms | 0 - 38 MB | NPU |
| face_landmark_detector | TFLITE | float | Qualcomm® SA7255P | 0.864 ms | 0 - 24 MB | NPU |
| face_landmark_detector | TFLITE | float | Qualcomm® SA8295P | 0.556 ms | 0 - 24 MB | NPU |
| face_landmark_detector | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.136 ms | 0 - 28 MB | NPU |
| face_landmark_detector | TFLITE | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 0.093 ms | 0 - 26 MB | NPU |
| face_landmark_detector | TFLITE | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.114 ms | 0 - 32 MB | NPU |
| face_landmark_detector | TFLITE | w8a8 | Qualcomm® QCS6490 | 0.411 ms | 0 - 3 MB | NPU |
| face_landmark_detector | TFLITE | w8a8 | Qualcomm® QCS8275 (Proxy) | 0.51 ms | 0 - 23 MB | NPU |
| face_landmark_detector | TFLITE | w8a8 | Qualcomm® QCS8550 (Proxy) | 0.151 ms | 0 - 2 MB | NPU |
| face_landmark_detector | TFLITE | w8a8 | Qualcomm® SA8775P | 0.34 ms | 0 - 26 MB | NPU |
| face_landmark_detector | TFLITE | w8a8 | Qualcomm® QCS9075 | 0.239 ms | 0 - 3 MB | NPU |
| face_landmark_detector | TFLITE | w8a8 | Qualcomm® QCM6690 | 0.485 ms | 0 - 21 MB | NPU |
| face_landmark_detector | TFLITE | w8a8 | Qualcomm® QCS8450 (Proxy) | 0.197 ms | 0 - 34 MB | NPU |
| face_landmark_detector | TFLITE | w8a8 | Qualcomm® SA7255P | 0.51 ms | 0 - 23 MB | NPU |
| face_landmark_detector | TFLITE | w8a8 | Qualcomm® SA8295P | 0.469 ms | 0 - 22 MB | NPU |
| face_landmark_detector | TFLITE | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.105 ms | 0 - 23 MB | NPU |
| face_landmark_detector | TFLITE | w8a8 | Snapdragon® 7 Gen 4 Mobile | 0.144 ms | 0 - 22 MB | NPU |
License
- The license for the original implementation of MediaPipe-Face-Detection 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.
