Object Detection
PyTorch
real_time
android

YoloV5-Face: Optimized for Qualcomm Devices

YoloV5-Face-Nano is a lightweight single-class face detector based on the YoloV5 backbone (StemBlock + ShuffleV2Block). Each detected face is accompanied by 5 facial landmark predictions (left eye, right eye, nose, left mouth corner, right mouth corner). Trained on the WiderFace dataset.

This is based on the implementation of YoloV5-Face 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

Due to licensing restrictions, we cannot distribute pre-exported model assets for this model. 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

See our repository for YoloV5-Face on GitHub for usage instructions.

Model Details

Model Type: Model_use_case.object_detection

Model Stats:

  • Input resolution: 640x640
  • Model checkpoint: yolov5n-face.pt
  • Model size (float): 7.21 MB
  • Model size (w8a16): 3.68 MB
  • Number of parameters: 1.87M

Performance Summary

Model Runtime Precision Chipset Inference Time (ms) Peak Memory Range (MB) Primary Compute Unit
YoloV5-Face ONNX float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4.733 ms 3 - 189 MB NPU
YoloV5-Face ONNX float Snapdragon® 8 Elite For Galaxy Mobile 5.403 ms 3 - 187 MB NPU
YoloV5-Face ONNX float Snapdragon® X2 Elite 4.996 ms 9 - 9 MB NPU
YoloV5-Face ONNX float Snapdragon® X Elite 10.943 ms 9 - 9 MB NPU
YoloV5-Face ONNX float Snapdragon® 8 Gen 3 Mobile 7.294 ms 9 - 214 MB NPU
YoloV5-Face ONNX float Snapdragon® 8 Gen 1 Mobile 15.591 ms 8 - 232 MB NPU
YoloV5-Face ONNX float Qualcomm® Dragonwing™ IQ-8275 9.44 ms 6 - 10 MB NPU
YoloV5-Face ONNX float Qualcomm® Dragonwing™ QCS8550 (Proxy) 10.496 ms 5 - 92 MB NPU
YoloV5-Face ONNX float Qualcomm® QCS8450 15.591 ms 8 - 232 MB NPU
YoloV5-Face ONNX float Qualcomm® Dragonwing™ IQ-9075 11.867 ms 7 - 10 MB NPU
YoloV5-Face ONNX float Qualcomm® Dragonwing™ IQ-X7181 10.943 ms 9 - 9 MB NPU
YoloV5-Face ONNX float Qualcomm® Dragonwing™ Q-8750 5.403 ms 3 - 187 MB NPU
YoloV5-Face ONNX float Snapdragon® 8 Elite Extreme Gen 6 Mobile 4.293 ms 8 - 192 MB NPU
YoloV5-Face ONNX float Snapdragon® 8 Elite Gen 6 Mobile 4.905 ms 3 - 177 MB NPU
YoloV5-Face ONNX w8a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 4.808 ms 1 - 234 MB NPU
YoloV5-Face ONNX w8a16 Snapdragon® 8 Elite For Galaxy Mobile 5.43 ms 1 - 227 MB NPU
YoloV5-Face ONNX w8a16 Snapdragon® X2 Elite 4.993 ms 4 - 4 MB NPU
YoloV5-Face ONNX w8a16 Snapdragon® X Elite 11.969 ms 4 - 4 MB NPU
YoloV5-Face ONNX w8a16 Snapdragon® 8 Gen 3 Mobile 7.755 ms 4 - 257 MB NPU
YoloV5-Face ONNX w8a16 Snapdragon® 8 Gen 1 Mobile 12.449 ms 4 - 257 MB NPU
YoloV5-Face ONNX w8a16 Qualcomm® Dragonwing™ QCS6490 25.354 ms 3 - 6 MB NPU
YoloV5-Face ONNX w8a16 Qualcomm® Dragonwing™ IQ-8275 9.037 ms 3 - 7 MB NPU
YoloV5-Face ONNX w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 11.252 ms 3 - 6 MB NPU
YoloV5-Face ONNX w8a16 Qualcomm® QCS8450 12.449 ms 4 - 257 MB NPU
YoloV5-Face ONNX w8a16 Qualcomm® Dragonwing™ IQ-9075 11.856 ms 3 - 7 MB NPU
YoloV5-Face ONNX w8a16 Qualcomm® Dragonwing™ IQ-X7181 11.969 ms 4 - 4 MB NPU
YoloV5-Face ONNX w8a16 Qualcomm® Dragonwing™ Q-6690 47.822 ms 0 - 230 MB NPU
YoloV5-Face ONNX w8a16 Qualcomm® Dragonwing™ Q-7790 11.872 ms 4 - 250 MB NPU
YoloV5-Face ONNX w8a16 Qualcomm® Dragonwing™ Q-8750 5.43 ms 1 - 227 MB NPU
YoloV5-Face ONNX w8a16 Snapdragon® 7 Gen 4 Mobile 11.872 ms 4 - 250 MB NPU
YoloV5-Face ONNX w8a16 Snapdragon® 8 Elite Extreme Gen 6 Mobile 4.149 ms 4 - 232 MB NPU
YoloV5-Face ONNX w8a16 Snapdragon® 8 Elite Gen 6 Mobile 4.745 ms 4 - 213 MB NPU
YoloV5-Face QNN_DLC float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 3.258 ms 5 - 65 MB NPU
YoloV5-Face QNN_DLC float Snapdragon® 8 Elite For Galaxy Mobile 3.942 ms 0 - 60 MB NPU
YoloV5-Face QNN_DLC float Snapdragon® X2 Elite 3.98 ms 5 - 5 MB NPU
YoloV5-Face QNN_DLC float Snapdragon® X Elite 8.142 ms 5 - 5 MB NPU
YoloV5-Face QNN_DLC float Snapdragon® 8 Gen 3 Mobile 2.888 ms 5 - 82 MB NPU
YoloV5-Face QNN_DLC float Snapdragon® 8 Gen 1 Mobile 11.468 ms 5 - 106 MB NPU
YoloV5-Face QNN_DLC float Qualcomm® Dragonwing™ IQ-8275 7.206 ms 5 - 14 MB NPU
YoloV5-Face QNN_DLC float Qualcomm® Dragonwing™ QCS8550 (Proxy) 7.287 ms 5 - 7 MB NPU
YoloV5-Face QNN_DLC float Qualcomm® QCS8450 11.468 ms 5 - 106 MB NPU
YoloV5-Face QNN_DLC float Qualcomm® Dragonwing™ IQ-9075 8.253 ms 5 - 13 MB NPU
YoloV5-Face QNN_DLC float Qualcomm® Dragonwing™ IQ-X7181 8.142 ms 5 - 5 MB NPU
YoloV5-Face QNN_DLC float Qualcomm® Dragonwing™ Q-8750 3.942 ms 0 - 60 MB NPU
YoloV5-Face QNN_DLC float Qualcomm® SA8295P 12.743 ms 0 - 78 MB NPU
YoloV5-Face QNN_DLC float Snapdragon® 8 Elite Extreme Gen 6 Mobile 2.969 ms 5 - 66 MB NPU
YoloV5-Face QNN_DLC float Snapdragon® 8 Elite Gen 6 Mobile 3.649 ms 5 - 56 MB NPU
YoloV5-Face QNN_DLC w8a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 3.323 ms 2 - 205 MB NPU
YoloV5-Face QNN_DLC w8a16 Snapdragon® 8 Elite For Galaxy Mobile 3.904 ms 2 - 201 MB NPU
YoloV5-Face QNN_DLC w8a16 Snapdragon® X2 Elite 3.825 ms 2 - 2 MB NPU
YoloV5-Face QNN_DLC w8a16 Snapdragon® X Elite 8.794 ms 2 - 2 MB NPU
YoloV5-Face QNN_DLC w8a16 Snapdragon® 8 Gen 3 Mobile 3.06 ms 2 - 111 MB NPU
YoloV5-Face QNN_DLC w8a16 Snapdragon® 8 Gen 1 Mobile 8.724 ms 2 - 112 MB NPU
YoloV5-Face QNN_DLC w8a16 Qualcomm® Dragonwing™ QCS6490 26.231 ms 1 - 6 MB NPU
YoloV5-Face QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-8275 6.855 ms 1 - 7 MB NPU
YoloV5-Face QNN_DLC w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 8.008 ms 2 - 4 MB NPU
YoloV5-Face QNN_DLC w8a16 Qualcomm® SA8775P 8.76 ms 1 - 84 MB NPU
YoloV5-Face QNN_DLC w8a16 Qualcomm® SA8650P 8.76 ms 1 - 84 MB NPU
YoloV5-Face QNN_DLC w8a16 Qualcomm® SA8255P 8.76 ms 1 - 84 MB NPU
YoloV5-Face QNN_DLC w8a16 Qualcomm® QCS8450 8.724 ms 2 - 112 MB NPU
YoloV5-Face QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-9075 8.334 ms 1 - 6 MB NPU
YoloV5-Face QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-X7181 8.794 ms 2 - 2 MB NPU
YoloV5-Face QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-6690 45.25 ms 2 - 202 MB NPU
YoloV5-Face QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-7790 8.644 ms 2 - 208 MB NPU
YoloV5-Face QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-8750 3.904 ms 2 - 201 MB NPU
YoloV5-Face QNN_DLC w8a16 Qualcomm® SA8295P 9.704 ms 0 - 87 MB NPU
YoloV5-Face QNN_DLC w8a16 Snapdragon® 7 Gen 4 Mobile 8.644 ms 2 - 208 MB NPU
YoloV5-Face QNN_DLC w8a16 Snapdragon® 8 Elite Extreme Gen 6 Mobile 2.616 ms 2 - 95 MB NPU
YoloV5-Face QNN_DLC w8a16 Snapdragon® 8 Elite Gen 6 Mobile 3.45 ms 2 - 190 MB NPU
YoloV5-Face TFLITE float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 1.666 ms 0 - 59 MB NPU
YoloV5-Face TFLITE float Snapdragon® 8 Elite For Galaxy Mobile 2.134 ms 0 - 68 MB NPU
YoloV5-Face TFLITE float Snapdragon® 8 Gen 3 Mobile 2.874 ms 0 - 80 MB NPU
YoloV5-Face TFLITE float Snapdragon® 8 Gen 1 Mobile 7.932 ms 1 - 102 MB NPU
YoloV5-Face TFLITE float Qualcomm® Dragonwing™ IQ-8275 4.756 ms 1 - 16 MB NPU
YoloV5-Face TFLITE float Qualcomm® Dragonwing™ QCS8550 (Proxy) 3.933 ms 0 - 2 MB NPU
YoloV5-Face TFLITE float Qualcomm® SA8775P 5.381 ms 2 - 64 MB NPU
YoloV5-Face TFLITE float Qualcomm® SA8650P 5.381 ms 2 - 64 MB NPU
YoloV5-Face TFLITE float Qualcomm® SA8255P 5.381 ms 2 - 64 MB NPU
YoloV5-Face TFLITE float Qualcomm® QCS8450 7.932 ms 1 - 102 MB NPU
YoloV5-Face TFLITE float Qualcomm® Dragonwing™ IQ-9075 4.892 ms 1 - 15 MB NPU
YoloV5-Face TFLITE float Qualcomm® Dragonwing™ Q-8750 2.134 ms 0 - 68 MB NPU
YoloV5-Face TFLITE float Qualcomm® SA7255P 79.425 ms 3 - 18 MB CPU
YoloV5-Face TFLITE float Qualcomm® SA8295P 8.834 ms 2 - 81 MB NPU
YoloV5-Face TFLITE float Snapdragon® 8 Elite Extreme Gen 6 Mobile 1.556 ms 0 - 63 MB NPU
YoloV5-Face TFLITE float Snapdragon® 8 Elite Gen 6 Mobile 2.003 ms 0 - 52 MB NPU

License

  • The license for the original implementation of YoloV5-Face 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/YoloV5-Face