HRNetFace / README.md
qaihm-bot's picture
v0.58.0
8ac3c5c verified
|
Raw
History Blame Contribute Delete
12.7 kB
metadata
library_name: pytorch
license: other
tags:
  - real_time
  - android
pipeline_tag: object-detection

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.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 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:

  • Model checkpoint: HR18-COFW.pth
  • Input resolution: 256x256
  • Number of parameters: 9.68M
  • Model size (float): 36.87MB
  • Model size (w8a8): 17.7 MB

Performance Summary

Model Runtime Precision Chipset Inference Time (ms) Peak Memory Range (MB) Primary Compute Unit
HRNetFace ONNX float Snapdragon® X2 Elite 1.55 ms 2 - 2 MB NPU
HRNetFace ONNX float Snapdragon® X Elite 3.124 ms 30 - 30 MB NPU
HRNetFace ONNX float Snapdragon® 8 Gen 3 Mobile 2.149 ms 0 - 147 MB NPU
HRNetFace ONNX float Snapdragon® 8 Gen 1 Mobile 4.544 ms 1 - 133 MB NPU
HRNetFace ONNX float Qualcomm® Dragonwing™ QCS8550 (Proxy) 2.992 ms 0 - 34 MB NPU
HRNetFace ONNX float Qualcomm® QCS8450 4.544 ms 1 - 133 MB NPU
HRNetFace ONNX float Qualcomm® Dragonwing™ IQ-9075 4.615 ms 2 - 4 MB NPU
HRNetFace ONNX float Snapdragon® 8 Elite Gen 5 Mobile 1.352 ms 0 - 92 MB NPU
HRNetFace ONNX float Snapdragon® 8 Elite Mobile 1.649 ms 0 - 92 MB NPU
HRNetFace ONNX float Qualcomm® Dragonwing™ Q-8750 1.649 ms 0 - 92 MB NPU
HRNetFace ONNX float Qualcomm® Dragonwing™ IQ-X7181 3.124 ms 30 - 30 MB NPU
HRNetFace ONNX w8a8 Snapdragon® X2 Elite 0.662 ms 1 - 1 MB NPU
HRNetFace ONNX w8a8 Snapdragon® X Elite 1.33 ms 15 - 15 MB NPU
HRNetFace ONNX w8a8 Snapdragon® 8 Gen 3 Mobile 0.869 ms 0 - 158 MB NPU
HRNetFace ONNX w8a8 Snapdragon® 8 Gen 1 Mobile 1.739 ms 0 - 158 MB NPU
HRNetFace ONNX w8a8 Qualcomm® Dragonwing™ QCS6490 5.07 ms 0 - 3 MB NPU
HRNetFace ONNX w8a8 Qualcomm® Dragonwing™ QCS8550 (Proxy) 1.29 ms 0 - 173 MB NPU
HRNetFace ONNX w8a8 Qualcomm® QCS8450 1.739 ms 0 - 158 MB NPU
HRNetFace ONNX w8a8 Snapdragon® 8 Elite Mobile 0.702 ms 0 - 109 MB NPU
HRNetFace ONNX w8a8 Snapdragon® 7 Gen 4 Mobile 1.595 ms 0 - 115 MB NPU
HRNetFace ONNX w8a8 Snapdragon® 8 Elite Gen 5 Mobile 0.595 ms 0 - 112 MB NPU
HRNetFace ONNX w8a8 Qualcomm® Dragonwing™ IQ-9075 1.491 ms 0 - 3 MB NPU
HRNetFace ONNX w8a8 Qualcomm® Dragonwing™ Q-6690 10.043 ms 0 - 234 MB NPU
HRNetFace ONNX w8a8 Qualcomm® Dragonwing™ Q-7790 1.595 ms 0 - 115 MB NPU
HRNetFace ONNX w8a8 Qualcomm® Dragonwing™ Q-8750 0.702 ms 0 - 109 MB NPU
HRNetFace ONNX w8a8 Qualcomm® Dragonwing™ IQ-X7181 1.33 ms 15 - 15 MB NPU
HRNetFace QNN_DLC float Snapdragon® X2 Elite 1.915 ms 1 - 1 MB NPU
HRNetFace QNN_DLC float Snapdragon® X Elite 3.679 ms 1 - 1 MB NPU
HRNetFace QNN_DLC float Snapdragon® 8 Gen 3 Mobile 2.337 ms 0 - 121 MB NPU
HRNetFace QNN_DLC float Snapdragon® 8 Gen 1 Mobile 5.48 ms 1 - 106 MB NPU
HRNetFace QNN_DLC float Qualcomm® QCS8275 15.442 ms 1 - 75 MB NPU
HRNetFace QNN_DLC float Qualcomm® Dragonwing™ QCS8550 (Proxy) 3.279 ms 1 - 3 MB NPU
HRNetFace QNN_DLC float Qualcomm® SA8775P 5.077 ms 1 - 79 MB NPU
HRNetFace QNN_DLC float Qualcomm® SA8650P 5.077 ms 1 - 79 MB NPU
HRNetFace QNN_DLC float Qualcomm® SA8255P 5.077 ms 1 - 79 MB NPU
HRNetFace QNN_DLC float Qualcomm® QCS8450 5.48 ms 1 - 106 MB NPU
HRNetFace QNN_DLC float Qualcomm® Dragonwing™ IQ-9075 5.365 ms 1 - 4 MB NPU
HRNetFace QNN_DLC float Snapdragon® 8 Elite Gen 5 Mobile 1.414 ms 1 - 79 MB NPU
HRNetFace QNN_DLC float Qualcomm® SA7255P 15.442 ms 1 - 75 MB NPU
HRNetFace QNN_DLC float Snapdragon® 8 Elite Mobile 1.761 ms 0 - 77 MB NPU
HRNetFace QNN_DLC float Qualcomm® SA8295P 5.642 ms 1 - 62 MB NPU
HRNetFace QNN_DLC float Qualcomm® Dragonwing™ Q-8750 1.761 ms 0 - 77 MB NPU
HRNetFace QNN_DLC float Qualcomm® Dragonwing™ IQ-X7181 3.679 ms 1 - 1 MB NPU
HRNetFace QNN_DLC w8a8 Snapdragon® X2 Elite 0.863 ms 0 - 0 MB NPU
HRNetFace QNN_DLC w8a8 Snapdragon® X Elite 1.546 ms 0 - 0 MB NPU
HRNetFace QNN_DLC w8a8 Snapdragon® 8 Gen 3 Mobile 0.916 ms 0 - 112 MB NPU
HRNetFace QNN_DLC w8a8 Snapdragon® 8 Gen 1 Mobile 1.831 ms 0 - 109 MB NPU
HRNetFace QNN_DLC w8a8 Qualcomm® Dragonwing™ QCS6490 5.943 ms 0 - 2 MB NPU
HRNetFace QNN_DLC w8a8 Qualcomm® QCS8275 3.283 ms 0 - 71 MB NPU
HRNetFace QNN_DLC w8a8 Qualcomm® Dragonwing™ QCS8550 (Proxy) 1.329 ms 0 - 2 MB NPU
HRNetFace QNN_DLC w8a8 Qualcomm® SA8775P 1.711 ms 0 - 72 MB NPU
HRNetFace QNN_DLC w8a8 Qualcomm® SA8650P 1.711 ms 0 - 72 MB NPU
HRNetFace QNN_DLC w8a8 Qualcomm® SA8255P 1.711 ms 0 - 72 MB NPU
HRNetFace QNN_DLC w8a8 Qualcomm® QCS8450 1.831 ms 0 - 109 MB NPU
HRNetFace QNN_DLC w8a8 Snapdragon® 8 Elite Mobile 0.681 ms 0 - 72 MB NPU
HRNetFace QNN_DLC w8a8 Snapdragon® 7 Gen 4 Mobile 1.635 ms 0 - 79 MB NPU
HRNetFace QNN_DLC w8a8 Snapdragon® 8 Elite Gen 5 Mobile 0.544 ms 0 - 73 MB NPU
HRNetFace QNN_DLC w8a8 Qualcomm® Dragonwing™ IQ-9075 1.519 ms 0 - 2 MB NPU
HRNetFace QNN_DLC w8a8 Qualcomm® Dragonwing™ Q-6690 10.633 ms 0 - 200 MB NPU
HRNetFace QNN_DLC w8a8 Qualcomm® SA7255P 3.283 ms 0 - 71 MB NPU
HRNetFace QNN_DLC w8a8 Qualcomm® SA8295P 2.221 ms 0 - 69 MB NPU
HRNetFace QNN_DLC w8a8 Qualcomm® Dragonwing™ Q-7790 1.635 ms 0 - 79 MB NPU
HRNetFace QNN_DLC w8a8 Qualcomm® Dragonwing™ Q-8750 0.681 ms 0 - 72 MB NPU
HRNetFace QNN_DLC w8a8 Qualcomm® Dragonwing™ IQ-X7181 1.546 ms 0 - 0 MB NPU
HRNetFace TFLITE float Snapdragon® 8 Gen 3 Mobile 2.332 ms 0 - 140 MB NPU
HRNetFace TFLITE float Snapdragon® 8 Gen 1 Mobile 5.462 ms 0 - 126 MB NPU
HRNetFace TFLITE float Qualcomm® QCS8275 15.473 ms 1 - 91 MB NPU
HRNetFace TFLITE float Qualcomm® Dragonwing™ QCS8550 (Proxy) 3.314 ms 4 - 7 MB NPU
HRNetFace TFLITE float Qualcomm® SA8775P 5.14 ms 1 - 94 MB NPU
HRNetFace TFLITE float Qualcomm® SA8650P 5.14 ms 1 - 94 MB NPU
HRNetFace TFLITE float Qualcomm® SA8255P 5.14 ms 1 - 94 MB NPU
HRNetFace TFLITE float Qualcomm® QCS8450 5.462 ms 0 - 126 MB NPU
HRNetFace TFLITE float Qualcomm® Dragonwing™ IQ-9075 5.001 ms 0 - 35 MB NPU
HRNetFace TFLITE float Snapdragon® 8 Elite Gen 5 Mobile 1.409 ms 0 - 90 MB NPU
HRNetFace TFLITE float Qualcomm® SA7255P 15.473 ms 1 - 91 MB NPU
HRNetFace TFLITE float Snapdragon® 8 Elite Mobile 1.762 ms 0 - 87 MB NPU
HRNetFace TFLITE float Qualcomm® SA8295P 5.681 ms 1 - 74 MB NPU
HRNetFace TFLITE float Qualcomm® Dragonwing™ Q-8750 1.762 ms 0 - 87 MB NPU
HRNetFace TFLITE w8a8 Snapdragon® 8 Gen 3 Mobile 0.73 ms 0 - 115 MB NPU
HRNetFace TFLITE w8a8 Snapdragon® 8 Gen 1 Mobile 1.554 ms 0 - 112 MB NPU
HRNetFace TFLITE w8a8 Qualcomm® Dragonwing™ QCS6490 5.248 ms 0 - 18 MB NPU
HRNetFace TFLITE w8a8 Qualcomm® QCS8275 2.894 ms 0 - 72 MB NPU
HRNetFace TFLITE w8a8 Qualcomm® Dragonwing™ QCS8550 (Proxy) 1.102 ms 0 - 2 MB NPU
HRNetFace TFLITE w8a8 Qualcomm® SA8775P 1.502 ms 0 - 74 MB NPU
HRNetFace TFLITE w8a8 Qualcomm® SA8650P 1.502 ms 0 - 74 MB NPU
HRNetFace TFLITE w8a8 Qualcomm® SA8255P 1.502 ms 0 - 74 MB NPU
HRNetFace TFLITE w8a8 Qualcomm® QCS8450 1.554 ms 0 - 112 MB NPU
HRNetFace TFLITE w8a8 Snapdragon® 8 Elite Mobile 0.58 ms 0 - 68 MB NPU
HRNetFace TFLITE w8a8 Snapdragon® 7 Gen 4 Mobile 1.356 ms 0 - 75 MB NPU
HRNetFace TFLITE w8a8 Snapdragon® 8 Elite Gen 5 Mobile 0.467 ms 0 - 73 MB NPU
HRNetFace TFLITE w8a8 Qualcomm® Dragonwing™ IQ-9075 1.278 ms 0 - 18 MB NPU
HRNetFace TFLITE w8a8 Qualcomm® Dragonwing™ Q-6690 9.85 ms 0 - 192 MB NPU
HRNetFace TFLITE w8a8 Qualcomm® SA7255P 2.894 ms 0 - 72 MB NPU
HRNetFace TFLITE w8a8 Qualcomm® SA8295P 1.971 ms 0 - 69 MB NPU
HRNetFace TFLITE w8a8 Qualcomm® Dragonwing™ Q-7790 1.356 ms 0 - 75 MB NPU
HRNetFace TFLITE w8a8 Qualcomm® Dragonwing™ Q-8750 0.58 ms 0 - 68 MB NPU

License

  • The license for the original implementation of HRNetFace can be found here.

References

Community