HRNet-W48-OCR: Optimized for Qualcomm Devices

HRNet-W48-OCR is a machine learning model that can segment images from the Cityscape dataset. It has lightweight and hardware-efficient operations and thus delivers significant speedup on diverse hardware platforms

This is based on the implementation of HRNet-W48-OCR 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.51, ONNX Runtime 1.30.0 Download
ONNX w8a16 Universal QAIRT 2.51, ONNX Runtime 1.30.0 Download
QNN_DLC float Universal QAIRT 2.51 Download

For more device-specific assets and performance metrics, visit HRNet-W48-OCR 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 HRNet-W48-OCR on GitHub for usage instructions.

Model Details

Model Type: Model_use_case.semantic_segmentation

Model Stats:

  • Input resolution: 2048x1024
  • Model checkpoint: hrnet_ocr_cs_8162_torch11.pth
  • Model size (float): 268 MB
  • Model size (w8a16): 70.3 MB
  • Number of output classes: 19
  • Number of parameters: 70.3M

Performance Summary

Model Runtime Precision Chipset Inference Time (ms) Peak Memory Range (MB) Primary Compute Unit
HRNet-W48-OCR ONNX float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 449.998 ms 22 - 905 MB NPU
HRNet-W48-OCR ONNX float Snapdragon® 8 Elite For Galaxy Mobile 587.972 ms 3 - 800 MB NPU
HRNet-W48-OCR ONNX float Snapdragon® X2 Elite 509.919 ms 33 - 33 MB NPU
HRNet-W48-OCR ONNX float Snapdragon® X Elite 884.35 ms 131 - 131 MB NPU
HRNet-W48-OCR ONNX float Snapdragon® 8 Gen 3 Mobile 668.713 ms 36 - 2230 MB NPU
HRNet-W48-OCR ONNX float Snapdragon® 8 Gen 1 Mobile 1716.394 ms 36 - 1900 MB NPU
HRNet-W48-OCR ONNX float Qualcomm® Dragonwing™ IQ-8275 1176.839 ms 24 - 52 MB NPU
HRNet-W48-OCR ONNX float Qualcomm® Dragonwing™ QCS8550 (Proxy) 942.609 ms 0 - 135 MB NPU
HRNet-W48-OCR ONNX float Qualcomm® QCS8450 1716.394 ms 36 - 1900 MB NPU
HRNet-W48-OCR ONNX float Qualcomm® Dragonwing™ IQ-9075 1182.082 ms 24 - 52 MB NPU
HRNet-W48-OCR ONNX float Qualcomm® Dragonwing™ IQ-X7181 884.35 ms 131 - 131 MB NPU
HRNet-W48-OCR ONNX float Qualcomm® Dragonwing™ Q-8750 587.972 ms 3 - 800 MB NPU
HRNet-W48-OCR ONNX float Snapdragon® 8 Elite Extreme Gen 6 Mobile 455.257 ms 46 - 869 MB NPU
HRNet-W48-OCR ONNX float Snapdragon® 8 Elite Gen 6 Mobile 502.937 ms 36 - 900 MB NPU
HRNet-W48-OCR ONNX w8a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 382.97 ms 26 - 2699 MB NPU
HRNet-W48-OCR ONNX w8a16 Snapdragon® 8 Elite For Galaxy Mobile 439.541 ms 27 - 2372 MB NPU
HRNet-W48-OCR ONNX w8a16 Snapdragon® X2 Elite 382.431 ms 34 - 34 MB NPU
HRNet-W48-OCR ONNX w8a16 Snapdragon® X Elite 710.739 ms 87 - 87 MB NPU
HRNet-W48-OCR ONNX w8a16 Snapdragon® 8 Gen 3 Mobile 593.581 ms 34 - 3416 MB NPU
HRNet-W48-OCR ONNX w8a16 Qualcomm® Dragonwing™ IQ-8275 861.44 ms 20 - 35 MB NPU
HRNet-W48-OCR ONNX w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 758.959 ms 0 - 87 MB NPU
HRNet-W48-OCR ONNX w8a16 Qualcomm® QCS8450 1018.392 ms 7 - 2663 MB NPU
HRNet-W48-OCR ONNX w8a16 Qualcomm® Dragonwing™ IQ-9075 804.048 ms 22 - 36 MB NPU
HRNet-W48-OCR ONNX w8a16 Qualcomm® Dragonwing™ IQ-X7181 710.739 ms 87 - 87 MB NPU
HRNet-W48-OCR ONNX w8a16 Qualcomm® Dragonwing™ Q-8750 439.541 ms 27 - 2372 MB NPU
HRNet-W48-OCR ONNX w8a16 Snapdragon® 8 Elite Extreme Gen 6 Mobile 545.099 ms 35 - 2545 MB NPU
HRNet-W48-OCR ONNX w8a16 Snapdragon® 8 Elite Gen 6 Mobile 440.185 ms 38 - 2039 MB NPU
HRNet-W48-OCR QNN_DLC float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 439.803 ms 21 - 929 MB NPU
HRNet-W48-OCR QNN_DLC float Snapdragon® 8 Elite For Galaxy Mobile 666.141 ms 4 - 825 MB NPU
HRNet-W48-OCR QNN_DLC float Snapdragon® X2 Elite 598.428 ms 24 - 24 MB NPU
HRNet-W48-OCR QNN_DLC float Snapdragon® X Elite 886.98 ms 24 - 24 MB NPU
HRNet-W48-OCR QNN_DLC float Snapdragon® 8 Gen 1 Mobile 1813.838 ms 24 - 1911 MB NPU
HRNet-W48-OCR QNN_DLC float Qualcomm® Dragonwing™ IQ-8275 1187.18 ms 24 - 61 MB NPU
HRNet-W48-OCR QNN_DLC float Qualcomm® Dragonwing™ QCS8550 (Proxy) 981.539 ms 24 - 37 MB NPU
HRNet-W48-OCR QNN_DLC float Qualcomm® QCS8450 1813.838 ms 24 - 1911 MB NPU
HRNet-W48-OCR QNN_DLC float Qualcomm® Dragonwing™ IQ-9075 1223.395 ms 24 - 60 MB NPU
HRNet-W48-OCR QNN_DLC float Qualcomm® Dragonwing™ IQ-X7181 886.98 ms 24 - 24 MB NPU
HRNet-W48-OCR QNN_DLC float Qualcomm® Dragonwing™ Q-8750 666.141 ms 4 - 825 MB NPU
HRNet-W48-OCR QNN_DLC float Qualcomm® SA8295P 1420.524 ms 24 - 909 MB NPU
HRNet-W48-OCR QNN_DLC float Snapdragon® 8 Elite Extreme Gen 6 Mobile 436.433 ms 24 - 939 MB NPU
HRNet-W48-OCR QNN_DLC float Snapdragon® 8 Elite Gen 6 Mobile 542.564 ms 23 - 896 MB NPU

License

  • The license for the original implementation of HRNet-W48-OCR 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/HRNet-W48-OCR