Clovis-LiteHRNet / README.md
Mer0vin8ian's picture
Duplicate from qualcomm/LiteHRNet
01ac007
|
Raw
History Blame Contribute Delete
7.27 kB
---
library_name: pytorch
license: other
tags:
- android
pipeline_tag: keypoint-detection
---
![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/litehrnet/web-assets/model_demo.png)
# LiteHRNet: Optimized for Qualcomm Devices
LiteHRNet is a machine learning model that detects human pose and returns a location and confidence for each of 17 joints.
This is based on the implementation of LiteHRNet found [here](https://github.com/HRNet/Lite-HRNet).
This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/v0.59.0/src/qai_hub_models/models/litehrnet) library to export with custom configurations. More details on model performance across various devices, can be found [here](#performance-summary).
Qualcomm AI Hub Models uses [Qualcomm AI Hub Workbench](https://workbench.aihub.qualcomm.com) to compile, profile, and evaluate this model. [Sign up](https://myaccount.qualcomm.com/signup) 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.27.1 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/litehrnet/releases/v0.59.0/litehrnet-onnx-float.zip)
| QNN_DLC | float | Universal | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/litehrnet/releases/v0.59.0/litehrnet-qnn_dlc-float.zip)
| TFLITE | float | Universal | QAIRT 2.45 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/litehrnet/releases/v0.59.0/litehrnet-tflite-float.zip)
For more device-specific assets and performance metrics, visit **[LiteHRNet on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/litehrnet)**.
### Option 2: Export with Custom Configurations
Use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/v0.59.0/src/qai_hub_models/models/litehrnet) 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 [LiteHRNet on GitHub](https://github.com/qualcomm/ai-hub-models/blob/v0.59.0/src/qai_hub_models/models/litehrnet) for usage instructions.
## Model Details
**Model Type:** Model_use_case.pose_estimation
**Model Stats:**
- Input resolution: 256x192
- Number of parameters: 1.11M
- Model size (float): 4.49 MB
## Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit
|---|---|---|---|---|---|---
| LiteHRNet | ONNX | float | Snapdragon® X2 Elite | 2.842 ms | 2 - 2 MB | NPU
| LiteHRNet | ONNX | float | Snapdragon® X Elite | 5.61 ms | 5 - 5 MB | NPU
| LiteHRNet | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 3.063 ms | 0 - 121 MB | NPU
| LiteHRNet | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 6.228 ms | 1 - 120 MB | NPU
| LiteHRNet | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 5.338 ms | 0 - 123 MB | NPU
| LiteHRNet | ONNX | float | Qualcomm® QCS8450 | 6.228 ms | 1 - 120 MB | NPU
| LiteHRNet | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 5.679 ms | 1 - 4 MB | NPU
| LiteHRNet | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 5.61 ms | 5 - 5 MB | NPU
| LiteHRNet | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 2.835 ms | 0 - 95 MB | NPU
| LiteHRNet | ONNX | float | Snapdragon® 8 Elite Mobile | 2.835 ms | 0 - 95 MB | NPU
| LiteHRNet | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 2.738 ms | 0 - 96 MB | NPU
| LiteHRNet | QNN_DLC | float | Snapdragon® X2 Elite | 1.23 ms | 1 - 1 MB | NPU
| LiteHRNet | QNN_DLC | float | Snapdragon® X Elite | 2.365 ms | 1 - 1 MB | NPU
| LiteHRNet | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 1.346 ms | 0 - 105 MB | NPU
| LiteHRNet | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 2.859 ms | 0 - 103 MB | NPU
| LiteHRNet | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8275 | 4.96 ms | 1 - 78 MB | NPU
| LiteHRNet | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 2.062 ms | 1 - 2 MB | NPU
| LiteHRNet | QNN_DLC | float | Qualcomm® SA8775P | 2.651 ms | 1 - 80 MB | NPU
| LiteHRNet | QNN_DLC | float | Qualcomm® SA8650P | 2.651 ms | 1 - 80 MB | NPU
| LiteHRNet | QNN_DLC | float | Qualcomm® SA8255P | 2.651 ms | 1 - 80 MB | NPU
| LiteHRNet | QNN_DLC | float | Qualcomm® QCS8450 | 2.859 ms | 0 - 103 MB | NPU
| LiteHRNet | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 3.237 ms | 3 - 5 MB | NPU
| LiteHRNet | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 2.365 ms | 1 - 1 MB | NPU
| LiteHRNet | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 1.023 ms | 0 - 83 MB | NPU
| LiteHRNet | QNN_DLC | float | Qualcomm® SA7255P | 4.96 ms | 1 - 78 MB | NPU
| LiteHRNet | QNN_DLC | float | Qualcomm® SA8295P | 3.427 ms | 0 - 81 MB | NPU
| LiteHRNet | QNN_DLC | float | Snapdragon® 8 Elite Mobile | 1.023 ms | 0 - 83 MB | NPU
| LiteHRNet | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.875 ms | 1 - 82 MB | NPU
| LiteHRNet | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 2.635 ms | 0 - 150 MB | NPU
| LiteHRNet | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 5.227 ms | 0 - 137 MB | NPU
| LiteHRNet | TFLITE | float | Qualcomm® Dragonwing™ QCS8275 | 8.495 ms | 0 - 115 MB | NPU
| LiteHRNet | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 4.158 ms | 0 - 2 MB | NPU
| LiteHRNet | TFLITE | float | Qualcomm® SA8775P | 5.116 ms | 0 - 114 MB | NPU
| LiteHRNet | TFLITE | float | Qualcomm® SA8650P | 5.116 ms | 0 - 114 MB | NPU
| LiteHRNet | TFLITE | float | Qualcomm® SA8255P | 5.116 ms | 0 - 114 MB | NPU
| LiteHRNet | TFLITE | float | Qualcomm® QCS8450 | 5.227 ms | 0 - 137 MB | NPU
| LiteHRNet | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 4.702 ms | 0 - 10 MB | NPU
| LiteHRNet | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 2.196 ms | 0 - 117 MB | NPU
| LiteHRNet | TFLITE | float | Qualcomm® SA7255P | 8.495 ms | 0 - 115 MB | NPU
| LiteHRNet | TFLITE | float | Qualcomm® SA8295P | 6.207 ms | 0 - 112 MB | NPU
| LiteHRNet | TFLITE | float | Snapdragon® 8 Elite Mobile | 2.196 ms | 0 - 117 MB | NPU
| LiteHRNet | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 2.014 ms | 0 - 111 MB | NPU
## License
* The license for the original implementation of LiteHRNet can be found
[here](https://github.com/HRNet/Lite-HRNet/blob/hrnet/LICENSE).
## References
* [Lite-HRNet: A Lightweight High-Resolution Network](https://arxiv.org/abs/2104.06403)
* [Source Model Implementation](https://github.com/HRNet/Lite-HRNet)
## Community
* Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
* For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).