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.45, ONNX Runtime 1.25.0 Download
ONNX w8a8 Universal QAIRT 2.45, ONNX Runtime 1.25.0 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® X2 Elite 0.382 ms 180 - 180 MB NPU
face_detector ONNX float Snapdragon® X Elite 0.717 ms 148 - 148 MB NPU
face_detector ONNX float Snapdragon® 8 Gen 3 Mobile 0.5 ms 0 - 37 MB NPU
face_detector ONNX float Snapdragon® 8 Gen 1 Mobile 1.003 ms 1 - 35 MB NPU
face_detector ONNX float Qualcomm® QCS8550 (Proxy) 0.704 ms 0 - 18 MB NPU
face_detector ONNX float Qualcomm® QCS8450 1.003 ms 1 - 35 MB NPU
face_detector ONNX float Snapdragon® 8 Elite Mobile 0.413 ms 0 - 30 MB NPU
face_detector ONNX float Snapdragon® 8 Elite Gen 5 Mobile 0.334 ms 0 - 28 MB NPU
face_detector ONNX float Qualcomm® QCS9075 1.16 ms 0 - 46 MB NPU
face_detector ONNX float Qualcomm® QCS8750 0.413 ms 0 - 30 MB NPU
face_detector ONNX float Qualcomm® QCS7181 0.717 ms 148 - 148 MB NPU
face_detector ONNX w8a8 Snapdragon® X2 Elite 0.14 ms 213 - 213 MB NPU
face_detector ONNX w8a8 Snapdragon® X Elite 0.262 ms 150 - 150 MB NPU
face_detector ONNX w8a8 Snapdragon® 8 Gen 3 Mobile 0.192 ms 0 - 32 MB NPU
face_detector ONNX w8a8 Snapdragon® 8 Gen 1 Mobile 0.345 ms 0 - 40 MB NPU
face_detector ONNX w8a8 Qualcomm® QCS6490 0.807 ms 0 - 46 MB NPU
face_detector ONNX w8a8 Qualcomm® QCS8550 (Proxy) 0.279 ms 0 - 6 MB NPU
face_detector ONNX w8a8 Qualcomm® QCS8450 0.345 ms 0 - 40 MB NPU
face_detector ONNX w8a8 Snapdragon® 8 Elite Gen 5 Mobile 0.142 ms 0 - 31 MB NPU
face_detector ONNX w8a8 Snapdragon® 7 Gen 4 Mobile 0.294 ms 0 - 29 MB NPU
face_detector ONNX w8a8 Qualcomm® QCM6690 1.323 ms 0 - 145 MB NPU
face_detector ONNX w8a8 Qualcomm® QCS9075 0.43 ms 0 - 45 MB NPU
face_detector ONNX w8a8 Snapdragon® 8 Elite Mobile 0.159 ms 0 - 35 MB NPU
face_detector ONNX w8a8 Qualcomm® QCS7790 0.294 ms 0 - 29 MB NPU
face_detector ONNX w8a8 Qualcomm® QCS8750 0.159 ms 0 - 35 MB NPU
face_detector ONNX w8a8 Qualcomm® QCS7181 0.262 ms 150 - 150 MB NPU
face_detector QNN_DLC float Snapdragon® X2 Elite 0.444 ms 1 - 1 MB NPU
face_detector QNN_DLC float Snapdragon® X Elite 0.669 ms 1 - 1 MB NPU
face_detector QNN_DLC float Snapdragon® 8 Gen 3 Mobile 0.39 ms 0 - 40 MB NPU
face_detector QNN_DLC float Snapdragon® 8 Gen 1 Mobile 0.766 ms 0 - 41 MB NPU
face_detector QNN_DLC float Qualcomm® QCS8275 2.901 ms 1 - 30 MB NPU
face_detector QNN_DLC float Qualcomm® QCS8550 (Proxy) 0.539 ms 1 - 13 MB NPU
face_detector QNN_DLC float Qualcomm® QCS8450 0.766 ms 0 - 41 MB NPU
face_detector QNN_DLC float Snapdragon® 8 Elite Mobile 0.335 ms 1 - 33 MB NPU
face_detector QNN_DLC float Qualcomm® SA8295P 1.108 ms 1 - 26 MB NPU
face_detector QNN_DLC float Snapdragon® 8 Elite Gen 5 Mobile 0.276 ms 1 - 30 MB NPU
face_detector QNN_DLC float Qualcomm® SA7255P 2.901 ms 1 - 30 MB NPU
face_detector QNN_DLC float Qualcomm® QCS9075 0.878 ms 1 - 3 MB NPU
face_detector QNN_DLC float Qualcomm® QCS8750 0.335 ms 1 - 33 MB NPU
face_detector QNN_DLC float Qualcomm® QCS7181 0.669 ms 1 - 1 MB NPU
face_detector QNN_DLC w8a8 Snapdragon® X2 Elite 0.221 ms 0 - 0 MB NPU
face_detector QNN_DLC w8a8 Snapdragon® X Elite 0.34 ms 0 - 0 MB NPU
face_detector QNN_DLC w8a8 Snapdragon® 8 Gen 3 Mobile 0.163 ms 0 - 37 MB NPU
face_detector QNN_DLC w8a8 Snapdragon® 8 Gen 1 Mobile 0.29 ms 0 - 43 MB NPU
face_detector QNN_DLC w8a8 Qualcomm® QCS6490 0.701 ms 2 - 4 MB NPU
face_detector QNN_DLC w8a8 Qualcomm® QCS8275 0.667 ms 0 - 26 MB NPU
face_detector QNN_DLC w8a8 Qualcomm® QCS8550 (Proxy) 0.242 ms 0 - 16 MB NPU
face_detector QNN_DLC w8a8 Qualcomm® QCS8450 0.29 ms 0 - 43 MB NPU
face_detector QNN_DLC w8a8 Snapdragon® 8 Elite Gen 5 Mobile 0.134 ms 0 - 28 MB NPU
face_detector QNN_DLC w8a8 Snapdragon® 7 Gen 4 Mobile 0.248 ms 0 - 26 MB NPU
face_detector QNN_DLC w8a8 Qualcomm® QCM6690 1.271 ms 0 - 27 MB NPU
face_detector QNN_DLC w8a8 Qualcomm® QCS9075 0.333 ms 0 - 2 MB NPU
face_detector QNN_DLC w8a8 Qualcomm® SA7255P 0.667 ms 0 - 26 MB NPU
face_detector QNN_DLC w8a8 Snapdragon® 8 Elite Mobile 0.144 ms 0 - 34 MB NPU
face_detector QNN_DLC w8a8 Qualcomm® SA8295P 0.578 ms 0 - 26 MB NPU
face_detector QNN_DLC w8a8 Qualcomm® QCS7790 0.248 ms 0 - 26 MB NPU
face_detector QNN_DLC w8a8 Qualcomm® QCS8750 0.144 ms 0 - 34 MB NPU
face_detector QNN_DLC w8a8 Qualcomm® QCS7181 0.34 ms 0 - 0 MB NPU
face_detector TFLITE float Snapdragon® 8 Gen 3 Mobile 0.397 ms 0 - 38 MB NPU
face_detector TFLITE float Snapdragon® 8 Gen 1 Mobile 0.772 ms 0 - 42 MB NPU
face_detector TFLITE float Qualcomm® QCS8275 2.924 ms 0 - 29 MB NPU
face_detector TFLITE float Qualcomm® QCS8550 (Proxy) 0.54 ms 0 - 2 MB NPU
face_detector TFLITE float Qualcomm® SA8775P 2.002 ms 0 - 27 MB GPU
face_detector TFLITE float Qualcomm® SA8650P 2.002 ms 0 - 27 MB GPU
face_detector TFLITE float Qualcomm® SA8255P 2.002 ms 0 - 27 MB GPU
face_detector TFLITE float Qualcomm® QCS8450 0.772 ms 0 - 42 MB NPU
face_detector TFLITE float Snapdragon® 8 Elite Mobile 0.366 ms 0 - 33 MB NPU
face_detector TFLITE float Qualcomm® SA8295P 1.117 ms 0 - 25 MB NPU
face_detector TFLITE float Snapdragon® 8 Elite Gen 5 Mobile 0.292 ms 0 - 29 MB NPU
face_detector TFLITE float Qualcomm® SA7255P 2.924 ms 0 - 29 MB NPU
face_detector TFLITE float Qualcomm® QCS9075 0.888 ms 0 - 3 MB NPU
face_detector TFLITE float Qualcomm® QCS8750 0.366 ms 0 - 33 MB NPU
face_detector TFLITE w8a8 Snapdragon® 8 Gen 3 Mobile 0.153 ms 0 - 37 MB NPU
face_detector TFLITE w8a8 Snapdragon® 8 Gen 1 Mobile 0.301 ms 0 - 43 MB NPU
face_detector TFLITE w8a8 Qualcomm® QCS6490 0.615 ms 0 - 3 MB NPU
face_detector TFLITE w8a8 Qualcomm® QCS8275 0.7 ms 0 - 26 MB NPU
face_detector TFLITE w8a8 Qualcomm® QCS8550 (Proxy) 0.245 ms 0 - 2 MB NPU
face_detector TFLITE w8a8 Qualcomm® SA8775P 2.685 ms 0 - 29 MB GPU
face_detector TFLITE w8a8 Qualcomm® SA8650P 2.685 ms 0 - 29 MB GPU
face_detector TFLITE w8a8 Qualcomm® SA8255P 2.685 ms 0 - 29 MB GPU
face_detector TFLITE w8a8 Qualcomm® QCS8450 0.301 ms 0 - 43 MB NPU
face_detector TFLITE w8a8 Snapdragon® 8 Elite Gen 5 Mobile 0.14 ms 0 - 28 MB NPU
face_detector TFLITE w8a8 Snapdragon® 7 Gen 4 Mobile 0.242 ms 0 - 25 MB NPU
face_detector TFLITE w8a8 Qualcomm® QCM6690 1.276 ms 0 - 26 MB NPU
face_detector TFLITE w8a8 Qualcomm® QCS9075 0.359 ms 0 - 2 MB NPU
face_detector TFLITE w8a8 Qualcomm® SA7255P 0.7 ms 0 - 26 MB NPU
face_detector TFLITE w8a8 Snapdragon® 8 Elite Mobile 0.143 ms 0 - 31 MB NPU
face_detector TFLITE w8a8 Qualcomm® SA8295P 0.603 ms 0 - 25 MB NPU
face_detector TFLITE w8a8 Qualcomm® QCS7790 0.242 ms 0 - 25 MB NPU
face_detector TFLITE w8a8 Qualcomm® QCS8750 0.143 ms 0 - 31 MB NPU
face_landmark_detector ONNX float Snapdragon® X2 Elite 0.173 ms 212 - 212 MB NPU
face_landmark_detector ONNX float Snapdragon® X Elite 0.263 ms 149 - 149 MB NPU
face_landmark_detector ONNX float Snapdragon® 8 Gen 3 Mobile 0.202 ms 0 - 23 MB NPU
face_landmark_detector ONNX float Snapdragon® 8 Gen 1 Mobile 0.42 ms 0 - 34 MB NPU
face_landmark_detector ONNX float Qualcomm® QCS8550 (Proxy) 0.283 ms 0 - 15 MB NPU
face_landmark_detector ONNX float Qualcomm® QCS8450 0.42 ms 0 - 34 MB NPU
face_landmark_detector ONNX float Snapdragon® 8 Elite Mobile 0.184 ms 0 - 24 MB NPU
face_landmark_detector ONNX float Snapdragon® 8 Elite Gen 5 Mobile 0.152 ms 0 - 21 MB NPU
face_landmark_detector ONNX float Qualcomm® QCS9075 0.429 ms 0 - 47 MB NPU
face_landmark_detector ONNX float Qualcomm® QCS8750 0.184 ms 0 - 24 MB NPU
face_landmark_detector ONNX float Qualcomm® QCS7181 0.263 ms 149 - 149 MB NPU
face_landmark_detector ONNX w8a8 Snapdragon® X2 Elite 0.111 ms 213 - 213 MB NPU
face_landmark_detector ONNX w8a8 Snapdragon® X Elite 0.184 ms 149 - 149 MB NPU
face_landmark_detector ONNX w8a8 Snapdragon® 8 Gen 3 Mobile 0.138 ms 0 - 29 MB NPU
face_landmark_detector ONNX w8a8 Snapdragon® 8 Gen 1 Mobile 0.254 ms 0 - 35 MB NPU
face_landmark_detector ONNX w8a8 Qualcomm® QCS6490 0.72 ms 0 - 46 MB NPU
face_landmark_detector ONNX w8a8 Qualcomm® QCS8550 (Proxy) 0.201 ms 0 - 49 MB NPU
face_landmark_detector ONNX w8a8 Qualcomm® QCS8450 0.254 ms 0 - 35 MB NPU
face_landmark_detector ONNX w8a8 Snapdragon® 8 Elite Gen 5 Mobile 0.127 ms 0 - 25 MB NPU
face_landmark_detector ONNX w8a8 Snapdragon® 7 Gen 4 Mobile 0.168 ms 0 - 24 MB NPU
face_landmark_detector ONNX w8a8 Qualcomm® QCM6690 0.607 ms 0 - 23 MB NPU
face_landmark_detector ONNX w8a8 Qualcomm® QCS9075 0.354 ms 0 - 46 MB NPU
face_landmark_detector ONNX w8a8 Snapdragon® 8 Elite Mobile 0.132 ms 0 - 28 MB NPU
face_landmark_detector ONNX w8a8 Qualcomm® QCS7790 0.168 ms 0 - 24 MB NPU
face_landmark_detector ONNX w8a8 Qualcomm® QCS8750 0.132 ms 0 - 28 MB NPU
face_landmark_detector ONNX w8a8 Qualcomm® QCS7181 0.184 ms 149 - 149 MB NPU
face_landmark_detector QNN_DLC float Snapdragon® X2 Elite 0.203 ms 0 - 0 MB NPU
face_landmark_detector QNN_DLC float Snapdragon® X Elite 0.275 ms 0 - 0 MB NPU
face_landmark_detector QNN_DLC float Snapdragon® 8 Gen 3 Mobile 0.148 ms 0 - 33 MB NPU
face_landmark_detector QNN_DLC float Snapdragon® 8 Gen 1 Mobile 0.294 ms 0 - 42 MB NPU
face_landmark_detector QNN_DLC float Qualcomm® QCS8275 0.834 ms 0 - 23 MB NPU
face_landmark_detector QNN_DLC float Qualcomm® QCS8550 (Proxy) 0.187 ms 0 - 7 MB NPU
face_landmark_detector QNN_DLC float Qualcomm® QCS8450 0.294 ms 0 - 42 MB NPU
face_landmark_detector QNN_DLC float Snapdragon® 8 Elite Mobile 0.122 ms 0 - 26 MB NPU
face_landmark_detector QNN_DLC float Qualcomm® SA8295P 0.554 ms 0 - 23 MB NPU
face_landmark_detector QNN_DLC float Snapdragon® 8 Elite Gen 5 Mobile 0.111 ms 0 - 24 MB NPU
face_landmark_detector QNN_DLC float Qualcomm® SA7255P 0.834 ms 0 - 23 MB NPU
face_landmark_detector QNN_DLC float Qualcomm® QCS9075 0.302 ms 0 - 3 MB NPU
face_landmark_detector QNN_DLC float Qualcomm® QCS8750 0.122 ms 0 - 26 MB NPU
face_landmark_detector QNN_DLC float Qualcomm® QCS7181 0.275 ms 0 - 0 MB NPU
face_landmark_detector QNN_DLC w8a8 Snapdragon® X2 Elite 0.173 ms 0 - 0 MB NPU
face_landmark_detector QNN_DLC w8a8 Snapdragon® X Elite 0.237 ms 0 - 0 MB NPU
face_landmark_detector QNN_DLC w8a8 Snapdragon® 8 Gen 3 Mobile 0.111 ms 0 - 33 MB NPU
face_landmark_detector QNN_DLC w8a8 Snapdragon® 8 Gen 1 Mobile 0.199 ms 0 - 38 MB NPU
face_landmark_detector QNN_DLC w8a8 Qualcomm® QCS6490 0.566 ms 0 - 2 MB NPU
face_landmark_detector QNN_DLC w8a8 Qualcomm® QCS8275 0.49 ms 0 - 24 MB NPU
face_landmark_detector QNN_DLC w8a8 Qualcomm® QCS8550 (Proxy) 0.154 ms 0 - 2 MB NPU
face_landmark_detector QNN_DLC w8a8 Qualcomm® QCS8450 0.199 ms 0 - 38 MB NPU
face_landmark_detector QNN_DLC w8a8 Snapdragon® 8 Elite Gen 5 Mobile 0.1 ms 0 - 23 MB NPU
face_landmark_detector QNN_DLC w8a8 Snapdragon® 7 Gen 4 Mobile 0.147 ms 0 - 23 MB NPU
face_landmark_detector QNN_DLC w8a8 Qualcomm® QCM6690 0.517 ms 0 - 22 MB NPU
face_landmark_detector QNN_DLC w8a8 Qualcomm® QCS9075 0.218 ms 0 - 2 MB NPU
face_landmark_detector QNN_DLC w8a8 Qualcomm® SA7255P 0.49 ms 0 - 24 MB NPU
face_landmark_detector QNN_DLC w8a8 Snapdragon® 8 Elite Mobile 0.099 ms 0 - 24 MB NPU
face_landmark_detector QNN_DLC w8a8 Qualcomm® SA8295P 0.448 ms 0 - 23 MB NPU
face_landmark_detector QNN_DLC w8a8 Qualcomm® QCS7790 0.147 ms 0 - 23 MB NPU
face_landmark_detector QNN_DLC w8a8 Qualcomm® QCS8750 0.099 ms 0 - 24 MB NPU
face_landmark_detector QNN_DLC w8a8 Qualcomm® QCS7181 0.237 ms 0 - 0 MB NPU
face_landmark_detector TFLITE float Snapdragon® 8 Gen 3 Mobile 0.149 ms 0 - 32 MB NPU
face_landmark_detector TFLITE float Snapdragon® 8 Gen 1 Mobile 0.306 ms 0 - 40 MB NPU
face_landmark_detector TFLITE float Qualcomm® QCS8275 0.834 ms 0 - 23 MB NPU
face_landmark_detector TFLITE float Qualcomm® QCS8550 (Proxy) 0.193 ms 0 - 2 MB NPU
face_landmark_detector TFLITE float Qualcomm® SA8775P 1.041 ms 0 - 30 MB GPU
face_landmark_detector TFLITE float Qualcomm® SA8650P 1.041 ms 0 - 30 MB GPU
face_landmark_detector TFLITE float Qualcomm® SA8255P 1.041 ms 0 - 30 MB GPU
face_landmark_detector TFLITE float Qualcomm® QCS8450 0.306 ms 0 - 40 MB NPU
face_landmark_detector TFLITE float Snapdragon® 8 Elite Mobile 0.136 ms 0 - 28 MB NPU
face_landmark_detector TFLITE float Qualcomm® SA8295P 0.549 ms 0 - 24 MB NPU
face_landmark_detector TFLITE float Snapdragon® 8 Elite Gen 5 Mobile 0.119 ms 0 - 23 MB NPU
face_landmark_detector TFLITE float Qualcomm® SA7255P 0.834 ms 0 - 23 MB NPU
face_landmark_detector TFLITE float Qualcomm® QCS9075 0.309 ms 0 - 4 MB NPU
face_landmark_detector TFLITE float Qualcomm® QCS8750 0.136 ms 0 - 28 MB NPU
face_landmark_detector TFLITE w8a8 Snapdragon® 8 Gen 3 Mobile 0.117 ms 0 - 32 MB NPU
face_landmark_detector TFLITE w8a8 Snapdragon® 8 Gen 1 Mobile 0.199 ms 0 - 38 MB NPU
face_landmark_detector TFLITE w8a8 Qualcomm® QCS6490 0.503 ms 0 - 3 MB NPU
face_landmark_detector TFLITE w8a8 Qualcomm® QCS8275 0.509 ms 0 - 24 MB NPU
face_landmark_detector TFLITE w8a8 Qualcomm® QCS8550 (Proxy) 0.153 ms 0 - 6 MB NPU
face_landmark_detector TFLITE w8a8 Qualcomm® SA8775P 1.287 ms 0 - 30 MB GPU
face_landmark_detector TFLITE w8a8 Qualcomm® SA8650P 1.287 ms 0 - 30 MB GPU
face_landmark_detector TFLITE w8a8 Qualcomm® SA8255P 1.287 ms 0 - 30 MB GPU
face_landmark_detector TFLITE w8a8 Qualcomm® QCS8450 0.199 ms 0 - 38 MB NPU
face_landmark_detector TFLITE w8a8 Snapdragon® 8 Elite Gen 5 Mobile 0.101 ms 0 - 22 MB NPU
face_landmark_detector TFLITE w8a8 Snapdragon® 7 Gen 4 Mobile 0.145 ms 0 - 22 MB NPU
face_landmark_detector TFLITE w8a8 Qualcomm® QCM6690 0.52 ms 0 - 21 MB NPU
face_landmark_detector TFLITE w8a8 Qualcomm® QCS9075 0.239 ms 0 - 3 MB NPU
face_landmark_detector TFLITE w8a8 Qualcomm® SA7255P 0.509 ms 0 - 24 MB NPU
face_landmark_detector TFLITE w8a8 Snapdragon® 8 Elite Mobile 0.105 ms 0 - 28 MB NPU
face_landmark_detector TFLITE w8a8 Qualcomm® SA8295P 0.469 ms 0 - 22 MB NPU
face_landmark_detector TFLITE w8a8 Qualcomm® QCS7790 0.145 ms 0 - 22 MB NPU
face_landmark_detector TFLITE w8a8 Qualcomm® QCS8750 0.105 ms 0 - 28 MB NPU

License

  • The license for the original implementation of MediaPipe-Face-Detection can be found here.

References

Community

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Paper for qualcomm/MediaPipe-Face-Detection