HRNetFace: Optimized for Qualcomm Devices
Detects attributes (liveness, eye closeness, mask presence, glasses presence, sunglasses presence) that apply to a given face.
This is based on the implementation of HRNetFace 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.50, ONNX Runtime 1.30.0 | Download |
| ONNX | w8a8 | Universal | QAIRT 2.50, ONNX Runtime 1.30.0 | Download |
| QNN_DLC | float | Universal | QAIRT 2.50 | Download |
| QNN_DLC | w8a8 | Universal | QAIRT 2.50 | Download |
| TFLITE | float | Universal | QAIRT 2.50 | Download |
| TFLITE | w8a8 | Universal | QAIRT 2.50 | Download |
For more device-specific assets and performance metrics, visit HRNetFace 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 HRNetFace on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.object_detection
Model Stats:
- Input resolution: 256x256
- Model checkpoint: HR18-COFW.pth
- Model size (float): 36.87MB
- Model size (w8a8): 17.7 MB
- Number of parameters: 9.68M
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| HRNetFace | ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 1.323 ms | 0 - 95 MB | NPU |
| HRNetFace | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 1.609 ms | 0 - 97 MB | NPU |
| HRNetFace | ONNX | float | Snapdragon® X2 Elite | 1.506 ms | 2 - 2 MB | NPU |
| HRNetFace | ONNX | float | Snapdragon® X Elite | 2.914 ms | 30 - 30 MB | NPU |
| HRNetFace | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 2.057 ms | 0 - 151 MB | NPU |
| HRNetFace | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 4.298 ms | 1 - 136 MB | NPU |
| HRNetFace | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 4.801 ms | 2 - 6 MB | NPU |
| HRNetFace | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 2.8 ms | 0 - 33 MB | NPU |
| HRNetFace | ONNX | float | Qualcomm® QCS8450 | 4.298 ms | 1 - 136 MB | NPU |
| HRNetFace | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 4.466 ms | 2 - 5 MB | NPU |
| HRNetFace | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 2.914 ms | 30 - 30 MB | NPU |
| HRNetFace | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 1.609 ms | 0 - 97 MB | NPU |
| HRNetFace | ONNX | w8a8 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.583 ms | 0 - 115 MB | NPU |
| HRNetFace | ONNX | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.693 ms | 0 - 113 MB | NPU |
| HRNetFace | ONNX | w8a8 | Snapdragon® X2 Elite | 0.622 ms | 1 - 1 MB | NPU |
| HRNetFace | ONNX | w8a8 | Snapdragon® X Elite | 1.297 ms | 16 - 16 MB | NPU |
| HRNetFace | ONNX | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.884 ms | 0 - 158 MB | NPU |
| HRNetFace | ONNX | w8a8 | Snapdragon® 8 Gen 1 Mobile | 1.602 ms | 0 - 161 MB | NPU |
| HRNetFace | ONNX | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 3.736 ms | 0 - 4 MB | NPU |
| HRNetFace | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 1.391 ms | 0 - 4 MB | NPU |
| HRNetFace | ONNX | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.308 ms | 0 - 18 MB | NPU |
| HRNetFace | ONNX | w8a8 | Qualcomm® QCS8450 | 1.602 ms | 0 - 161 MB | NPU |
| HRNetFace | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 1.522 ms | 0 - 3 MB | NPU |
| HRNetFace | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-X7181 | 1.297 ms | 16 - 16 MB | NPU |
| HRNetFace | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 10.052 ms | 0 - 224 MB | NPU |
| HRNetFace | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 1.542 ms | 0 - 117 MB | NPU |
| HRNetFace | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 0.693 ms | 0 - 113 MB | NPU |
| HRNetFace | ONNX | w8a8 | Snapdragon® 7 Gen 4 Mobile | 1.542 ms | 0 - 117 MB | NPU |
| HRNetFace | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 1.383 ms | 1 - 82 MB | NPU |
| HRNetFace | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 1.706 ms | 0 - 78 MB | NPU |
| HRNetFace | QNN_DLC | float | Snapdragon® X2 Elite | 1.914 ms | 1 - 1 MB | NPU |
| HRNetFace | QNN_DLC | float | Snapdragon® X Elite | 3.515 ms | 1 - 1 MB | NPU |
| HRNetFace | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 2.245 ms | 0 - 122 MB | NPU |
| HRNetFace | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 5.208 ms | 0 - 106 MB | NPU |
| HRNetFace | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 4.909 ms | 1 - 5 MB | NPU |
| HRNetFace | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 3.141 ms | 1 - 127 MB | NPU |
| HRNetFace | QNN_DLC | float | Qualcomm® QCS8450 | 5.208 ms | 0 - 106 MB | NPU |
| HRNetFace | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 4.714 ms | 1 - 4 MB | NPU |
| HRNetFace | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 3.515 ms | 1 - 1 MB | NPU |
| HRNetFace | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 1.706 ms | 0 - 78 MB | NPU |
| HRNetFace | QNN_DLC | float | Qualcomm® SA7255P | 15.415 ms | 1 - 75 MB | NPU |
| HRNetFace | QNN_DLC | float | Qualcomm® SA8295P | 5.266 ms | 1 - 63 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.536 ms | 0 - 75 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.662 ms | 0 - 77 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Snapdragon® X2 Elite | 0.87 ms | 0 - 0 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Snapdragon® X Elite | 1.55 ms | 0 - 0 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.899 ms | 0 - 109 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Snapdragon® 8 Gen 1 Mobile | 1.728 ms | 0 - 113 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 4.037 ms | 0 - 3 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 1.385 ms | 0 - 3 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.327 ms | 0 - 2 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Qualcomm® SA8775P | 1.658 ms | 0 - 78 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Qualcomm® SA8650P | 1.658 ms | 0 - 78 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Qualcomm® SA8255P | 1.658 ms | 0 - 78 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Qualcomm® QCS8450 | 1.728 ms | 0 - 113 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 1.519 ms | 0 - 3 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-X7181 | 1.55 ms | 0 - 0 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 10.595 ms | 0 - 191 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 1.627 ms | 0 - 83 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 0.662 ms | 0 - 77 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Qualcomm® SA7255P | 3.24 ms | 0 - 75 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Qualcomm® SA8295P | 2.079 ms | 0 - 73 MB | NPU |
| HRNetFace | QNN_DLC | w8a8 | Snapdragon® 7 Gen 4 Mobile | 1.627 ms | 0 - 83 MB | NPU |
| HRNetFace | TFLITE | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 1.387 ms | 0 - 93 MB | NPU |
| HRNetFace | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 1.727 ms | 20 - 114 MB | NPU |
| HRNetFace | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 2.244 ms | 0 - 139 MB | NPU |
| HRNetFace | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 5.218 ms | 0 - 125 MB | NPU |
| HRNetFace | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 4.923 ms | 0 - 36 MB | NPU |
| HRNetFace | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 3.141 ms | 0 - 2 MB | NPU |
| HRNetFace | TFLITE | float | Qualcomm® SA8775P | 4.928 ms | 0 - 93 MB | NPU |
| HRNetFace | TFLITE | float | Qualcomm® SA8650P | 4.928 ms | 0 - 93 MB | NPU |
| HRNetFace | TFLITE | float | Qualcomm® SA8255P | 4.928 ms | 0 - 93 MB | NPU |
| HRNetFace | TFLITE | float | Qualcomm® QCS8450 | 5.218 ms | 0 - 125 MB | NPU |
| HRNetFace | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 4.735 ms | 0 - 35 MB | NPU |
| HRNetFace | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 1.727 ms | 20 - 114 MB | NPU |
| HRNetFace | TFLITE | float | Qualcomm® SA8295P | 5.297 ms | 1 - 74 MB | NPU |
| HRNetFace | TFLITE | w8a8 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.471 ms | 0 - 73 MB | NPU |
| HRNetFace | TFLITE | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.57 ms | 0 - 77 MB | NPU |
| HRNetFace | TFLITE | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.744 ms | 0 - 111 MB | NPU |
| HRNetFace | TFLITE | w8a8 | Snapdragon® 8 Gen 1 Mobile | 1.428 ms | 0 - 116 MB | NPU |
| HRNetFace | TFLITE | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 3.743 ms | 0 - 18 MB | NPU |
| HRNetFace | TFLITE | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 1.189 ms | 0 - 19 MB | NPU |
| HRNetFace | TFLITE | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 1.09 ms | 0 - 110 MB | NPU |
| HRNetFace | TFLITE | w8a8 | Qualcomm® QCS8450 | 1.428 ms | 0 - 116 MB | NPU |
| HRNetFace | TFLITE | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 1.29 ms | 0 - 19 MB | NPU |
| HRNetFace | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 9.872 ms | 0 - 188 MB | NPU |
| HRNetFace | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 1.372 ms | 0 - 79 MB | NPU |
| HRNetFace | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 0.57 ms | 0 - 77 MB | NPU |
| HRNetFace | TFLITE | w8a8 | Qualcomm® SA7255P | 2.893 ms | 0 - 75 MB | NPU |
| HRNetFace | TFLITE | w8a8 | Qualcomm® SA8295P | 1.822 ms | 0 - 72 MB | NPU |
| HRNetFace | TFLITE | w8a8 | Snapdragon® 7 Gen 4 Mobile | 1.372 ms | 0 - 79 MB | NPU |
License
- The license for the original implementation of HRNetFace 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.
