Facial-Attribute-Detection: Optimized for Qualcomm Devices
Detects attributes (eye closeness, mask presence, eyeglasses presence, sunglasses presence) that apply to a given face. This model's architecture was developed by Qualcomm. The model was trained by Qualcomm on a proprietary dataset of faces, but can be used on any image.
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 Facial-Attribute-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 Facial-Attribute-Detection on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.object_detection
Model Stats:
- Input resolution: 128x128
- Model checkpoint: multitask_FR_state_dict.pt
- Model size (float): 46.3 MB
- Model size (w8a8): 12.3 MB
- Number of parameters: 12.1M
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| Facial-Attribute-Detection | ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.45 ms | 0 - 64 MB | NPU |
| Facial-Attribute-Detection | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.497 ms | 0 - 57 MB | NPU |
| Facial-Attribute-Detection | ONNX | float | Snapdragon® X2 Elite | 0.45 ms | 1 - 1 MB | NPU |
| Facial-Attribute-Detection | ONNX | float | Snapdragon® X Elite | 0.854 ms | 23 - 23 MB | NPU |
| Facial-Attribute-Detection | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 0.626 ms | 0 - 89 MB | NPU |
| Facial-Attribute-Detection | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 1.164 ms | 0 - 82 MB | NPU |
| Facial-Attribute-Detection | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 1.324 ms | 0 - 4 MB | NPU |
| Facial-Attribute-Detection | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 0.859 ms | 0 - 2 MB | NPU |
| Facial-Attribute-Detection | ONNX | float | Qualcomm® QCS8450 | 1.164 ms | 0 - 82 MB | NPU |
| Facial-Attribute-Detection | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 1.235 ms | 0 - 3 MB | NPU |
| Facial-Attribute-Detection | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 0.854 ms | 23 - 23 MB | NPU |
| Facial-Attribute-Detection | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 0.497 ms | 0 - 57 MB | NPU |
| Facial-Attribute-Detection | ONNX | w8a8 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.223 ms | 0 - 58 MB | NPU |
| Facial-Attribute-Detection | ONNX | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.244 ms | 0 - 58 MB | NPU |
| Facial-Attribute-Detection | ONNX | w8a8 | Snapdragon® X2 Elite | 0.181 ms | 1 - 1 MB | NPU |
| Facial-Attribute-Detection | ONNX | w8a8 | Snapdragon® X Elite | 0.388 ms | 12 - 12 MB | NPU |
| Facial-Attribute-Detection | ONNX | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.294 ms | 0 - 87 MB | NPU |
| Facial-Attribute-Detection | ONNX | w8a8 | Snapdragon® 8 Gen 1 Mobile | 0.53 ms | 0 - 87 MB | NPU |
| Facial-Attribute-Detection | ONNX | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 1.391 ms | 0 - 3 MB | NPU |
| Facial-Attribute-Detection | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 0.447 ms | 0 - 4 MB | NPU |
| Facial-Attribute-Detection | ONNX | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 0.398 ms | 0 - 2 MB | NPU |
| Facial-Attribute-Detection | ONNX | w8a8 | Qualcomm® QCS8450 | 0.53 ms | 0 - 87 MB | NPU |
| Facial-Attribute-Detection | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 0.509 ms | 0 - 3 MB | NPU |
| Facial-Attribute-Detection | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-X7181 | 0.388 ms | 12 - 12 MB | NPU |
| Facial-Attribute-Detection | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 2.956 ms | 0 - 64 MB | NPU |
| Facial-Attribute-Detection | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 0.511 ms | 0 - 57 MB | NPU |
| Facial-Attribute-Detection | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 0.244 ms | 0 - 58 MB | NPU |
| Facial-Attribute-Detection | ONNX | w8a8 | Snapdragon® 7 Gen 4 Mobile | 0.511 ms | 0 - 57 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.431 ms | 0 - 57 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.502 ms | 0 - 60 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | float | Snapdragon® X2 Elite | 0.549 ms | 0 - 0 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | float | Snapdragon® X Elite | 0.969 ms | 0 - 0 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 0.619 ms | 0 - 80 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 1.228 ms | 0 - 81 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 1.308 ms | 0 - 3 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 0.85 ms | 0 - 62 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | float | Qualcomm® QCS8450 | 1.228 ms | 0 - 81 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 1.236 ms | 0 - 2 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 0.969 ms | 0 - 0 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 0.502 ms | 0 - 60 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | float | Qualcomm® SA8295P | 1.441 ms | 0 - 51 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.214 ms | 0 - 51 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.232 ms | 0 - 51 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Snapdragon® X2 Elite | 0.318 ms | 0 - 0 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Snapdragon® X Elite | 0.498 ms | 0 - 0 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.276 ms | 0 - 68 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Snapdragon® 8 Gen 1 Mobile | 0.527 ms | 0 - 73 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 1.311 ms | 0 - 2 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 0.421 ms | 0 - 3 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 0.384 ms | 0 - 2 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Qualcomm® QCS8450 | 0.527 ms | 0 - 73 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 0.451 ms | 2 - 4 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-X7181 | 0.498 ms | 0 - 0 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 2.919 ms | 0 - 53 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 0.488 ms | 0 - 51 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 0.232 ms | 0 - 51 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Qualcomm® SA7255P | 1.032 ms | 0 - 52 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Qualcomm® SA8295P | 0.699 ms | 0 - 52 MB | NPU |
| Facial-Attribute-Detection | QNN_DLC | w8a8 | Snapdragon® 7 Gen 4 Mobile | 0.488 ms | 0 - 51 MB | NPU |
| Facial-Attribute-Detection | TFLITE | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.421 ms | 0 - 66 MB | NPU |
| Facial-Attribute-Detection | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.486 ms | 0 - 73 MB | NPU |
| Facial-Attribute-Detection | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 0.612 ms | 0 - 100 MB | NPU |
| Facial-Attribute-Detection | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 1.2 ms | 0 - 97 MB | NPU |
| Facial-Attribute-Detection | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 1.28 ms | 0 - 26 MB | NPU |
| Facial-Attribute-Detection | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 0.796 ms | 0 - 3 MB | NPU |
| Facial-Attribute-Detection | TFLITE | float | Qualcomm® SA8650P | 1.341 ms | 0 - 73 MB | NPU |
| Facial-Attribute-Detection | TFLITE | float | Qualcomm® SA8255P | 1.341 ms | 0 - 73 MB | NPU |
| Facial-Attribute-Detection | TFLITE | float | Qualcomm® QCS8450 | 1.2 ms | 0 - 97 MB | NPU |
| Facial-Attribute-Detection | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 1.205 ms | 0 - 25 MB | NPU |
| Facial-Attribute-Detection | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 0.486 ms | 0 - 73 MB | NPU |
| Facial-Attribute-Detection | TFLITE | float | Qualcomm® SA8295P | 1.407 ms | 0 - 64 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 0.21 ms | 0 - 48 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 0.24 ms | 0 - 46 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Snapdragon® 8 Gen 3 Mobile | 0.273 ms | 0 - 67 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Snapdragon® 8 Gen 1 Mobile | 0.503 ms | 0 - 77 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 1.259 ms | 0 - 14 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 0.499 ms | 0 - 14 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 0.38 ms | 0 - 2 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Qualcomm® SA8650P | 0.575 ms | 0 - 54 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Qualcomm® SA8255P | 0.575 ms | 0 - 54 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Qualcomm® QCS8450 | 0.503 ms | 0 - 77 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 0.468 ms | 0 - 14 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 2.963 ms | 0 - 47 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 0.484 ms | 0 - 45 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 0.24 ms | 0 - 46 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Qualcomm® SA7255P | 1.133 ms | 0 - 50 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Qualcomm® SA8295P | 0.723 ms | 0 - 45 MB | NPU |
| Facial-Attribute-Detection | TFLITE | w8a8 | Snapdragon® 7 Gen 4 Mobile | 0.484 ms | 0 - 45 MB | NPU |
License
- The license for the original implementation of Facial-Attribute-Detection can be found here.
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.
