ESRGAN: Optimized for Qualcomm Devices
ESRGAN is a machine learning model that upscales an image with minimal loss in quality.
This is based on the implementation of ESRGAN 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.27.1 | Download |
| ONNX | w8a16 | Universal | QAIRT 2.45, ONNX Runtime 1.27.1 | Download |
| QNN_DLC | float | Universal | QAIRT 2.45 | Download |
| QNN_DLC | w8a16 | Universal | QAIRT 2.45 | Download |
| TFLITE | float | Universal | QAIRT 2.45 | Download |
For more device-specific assets and performance metrics, visit ESRGAN 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 ESRGAN on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.super_resolution
Model Stats:
- Input resolution: 128x128
- Model checkpoint: ESRGAN_x4
- Model size (float): 63.9 MB
- Number of parameters: 16.7M
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| ESRGAN | ONNX | float | Snapdragon® X2 Elite | 34.392 ms | 8 - 8 MB | NPU |
| ESRGAN | ONNX | float | Snapdragon® X Elite | 65.407 ms | 38 - 38 MB | NPU |
| ESRGAN | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 51.308 ms | 0 - 746 MB | NPU |
| ESRGAN | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 122.649 ms | 4 - 741 MB | NPU |
| ESRGAN | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 127.354 ms | 6 - 10 MB | NPU |
| ESRGAN | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 70.655 ms | 0 - 43 MB | NPU |
| ESRGAN | ONNX | float | Qualcomm® QCS8450 | 122.649 ms | 4 - 741 MB | NPU |
| ESRGAN | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 105.927 ms | 6 - 9 MB | NPU |
| ESRGAN | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 65.407 ms | 38 - 38 MB | NPU |
| ESRGAN | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 38.157 ms | 7 - 356 MB | NPU |
| ESRGAN | ONNX | float | Snapdragon® 8 Elite Mobile | 38.157 ms | 7 - 356 MB | NPU |
| ESRGAN | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 26.594 ms | 5 - 362 MB | NPU |
| ESRGAN | ONNX | w8a16 | Snapdragon® X2 Elite | 21.987 ms | 4 - 4 MB | NPU |
| ESRGAN | ONNX | w8a16 | Snapdragon® X Elite | 43.497 ms | 27 - 27 MB | NPU |
| ESRGAN | ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 31.914 ms | 3 - 1116 MB | NPU |
| ESRGAN | ONNX | w8a16 | Snapdragon® 8 Gen 1 Mobile | 79.353 ms | 4 - 1198 MB | NPU |
| ESRGAN | ONNX | w8a16 | Qualcomm® Dragonwing™ QCS6490 | 323.613 ms | 3 - 6 MB | NPU |
| ESRGAN | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 43.104 ms | 3 - 7 MB | NPU |
| ESRGAN | ONNX | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 42.319 ms | 0 - 31 MB | NPU |
| ESRGAN | ONNX | w8a16 | Qualcomm® QCS8450 | 79.353 ms | 4 - 1198 MB | NPU |
| ESRGAN | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 37.88 ms | 3 - 6 MB | NPU |
| ESRGAN | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 43.497 ms | 27 - 27 MB | NPU |
| ESRGAN | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-6690 | 1107.428 ms | 0 - 695 MB | NPU |
| ESRGAN | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-7790 | 88.9 ms | 5 - 789 MB | NPU |
| ESRGAN | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 26.378 ms | 3 - 907 MB | NPU |
| ESRGAN | ONNX | w8a16 | Snapdragon® 8 Elite Mobile | 26.378 ms | 3 - 907 MB | NPU |
| ESRGAN | ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 16.939 ms | 3 - 1070 MB | NPU |
| ESRGAN | ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 88.9 ms | 5 - 789 MB | NPU |
| ESRGAN | QNN_DLC | float | Snapdragon® X2 Elite | 34.331 ms | 0 - 0 MB | NPU |
| ESRGAN | QNN_DLC | float | Snapdragon® X Elite | 64.984 ms | 0 - 0 MB | NPU |
| ESRGAN | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 49.087 ms | 0 - 703 MB | NPU |
| ESRGAN | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 146.659 ms | 0 - 709 MB | NPU |
| ESRGAN | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 127.047 ms | 0 - 6 MB | NPU |
| ESRGAN | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 451.998 ms | 1 - 353 MB | NPU |
| ESRGAN | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 63.749 ms | 0 - 621 MB | NPU |
| ESRGAN | QNN_DLC | float | Qualcomm® SA8775P | 105.52 ms | 1 - 352 MB | NPU |
| ESRGAN | QNN_DLC | float | Qualcomm® SA8650P | 105.52 ms | 1 - 352 MB | NPU |
| ESRGAN | QNN_DLC | float | Qualcomm® SA8255P | 105.52 ms | 1 - 352 MB | NPU |
| ESRGAN | QNN_DLC | float | Qualcomm® QCS8450 | 146.659 ms | 0 - 709 MB | NPU |
| ESRGAN | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 105.759 ms | 0 - 5 MB | NPU |
| ESRGAN | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 64.984 ms | 0 - 0 MB | NPU |
| ESRGAN | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 37.99 ms | 0 - 335 MB | NPU |
| ESRGAN | QNN_DLC | float | Qualcomm® SA7255P | 451.998 ms | 1 - 353 MB | NPU |
| ESRGAN | QNN_DLC | float | Qualcomm® SA8295P | 111.352 ms | 0 - 358 MB | NPU |
| ESRGAN | QNN_DLC | float | Snapdragon® 8 Elite Mobile | 37.99 ms | 0 - 335 MB | NPU |
| ESRGAN | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 25.525 ms | 0 - 334 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Snapdragon® X2 Elite | 21.879 ms | 0 - 0 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Snapdragon® X Elite | 43.174 ms | 0 - 0 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Snapdragon® 8 Gen 3 Mobile | 31.318 ms | 0 - 1028 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Snapdragon® 8 Gen 1 Mobile | 89.143 ms | 0 - 1116 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ QCS6490 | 320.746 ms | 0 - 3 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 42.755 ms | 0 - 4 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 132.896 ms | 0 - 666 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 41.486 ms | 0 - 2 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Qualcomm® SA8775P | 37.7 ms | 0 - 666 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Qualcomm® SA8650P | 37.7 ms | 0 - 666 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Qualcomm® SA8255P | 37.7 ms | 0 - 666 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Qualcomm® QCS8450 | 89.143 ms | 0 - 1116 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 37.754 ms | 0 - 3 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 43.174 ms | 0 - 0 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ Q-6690 | 1135.932 ms | 2 - 623 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ Q-7790 | 87.631 ms | 0 - 709 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 27.989 ms | 0 - 836 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Qualcomm® SA7255P | 132.896 ms | 0 - 666 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Qualcomm® SA8295P | 68.242 ms | 0 - 714 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Snapdragon® 8 Elite Mobile | 27.989 ms | 0 - 836 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 16.452 ms | 0 - 993 MB | NPU |
| ESRGAN | QNN_DLC | w8a16 | Snapdragon® 7 Gen 4 Mobile | 87.631 ms | 0 - 709 MB | NPU |
| ESRGAN | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 49.054 ms | 3 - 743 MB | NPU |
| ESRGAN | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 119.855 ms | 4 - 744 MB | NPU |
| ESRGAN | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 127.083 ms | 3 - 46 MB | NPU |
| ESRGAN | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 452.099 ms | 4 - 396 MB | NPU |
| ESRGAN | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 60.606 ms | 3 - 245 MB | NPU |
| ESRGAN | TFLITE | float | Qualcomm® SA8775P | 105.565 ms | 3 - 396 MB | NPU |
| ESRGAN | TFLITE | float | Qualcomm® SA8650P | 105.565 ms | 3 - 396 MB | NPU |
| ESRGAN | TFLITE | float | Qualcomm® SA8255P | 105.565 ms | 3 - 396 MB | NPU |
| ESRGAN | TFLITE | float | Qualcomm® QCS8450 | 119.855 ms | 4 - 744 MB | NPU |
| ESRGAN | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 105.926 ms | 3 - 46 MB | NPU |
| ESRGAN | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 38.011 ms | 3 - 376 MB | NPU |
| ESRGAN | TFLITE | float | Qualcomm® SA7255P | 452.099 ms | 4 - 396 MB | NPU |
| ESRGAN | TFLITE | float | Qualcomm® SA8295P | 111.387 ms | 0 - 388 MB | NPU |
| ESRGAN | TFLITE | float | Snapdragon® 8 Elite Mobile | 38.011 ms | 3 - 376 MB | NPU |
| ESRGAN | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 25.64 ms | 1 - 375 MB | NPU |
License
- The license for the original implementation of ESRGAN can be found here.
References
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.
