Image-to-Image
PyTorch
android

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.50, ONNX Runtime 1.27.1 Download
ONNX w8a16 Universal QAIRT 2.50, ONNX Runtime 1.27.1 Download
QNN_DLC float Universal QAIRT 2.50 Download
QNN_DLC w8a16 Universal QAIRT 2.50 Download
TFLITE float Universal QAIRT 2.50 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® 8 Elite Gen 5 For Galaxy Mobile 26.282 ms 5 - 336 MB NPU
ESRGAN ONNX float Snapdragon® 8 Elite For Galaxy Mobile 37.864 ms 7 - 333 MB NPU
ESRGAN ONNX float Snapdragon® X2 Elite 34.494 ms 8 - 8 MB NPU
ESRGAN ONNX float Snapdragon® X Elite 65.279 ms 38 - 38 MB NPU
ESRGAN ONNX float Snapdragon® 8 Gen 3 Mobile 49.413 ms 8 - 727 MB NPU
ESRGAN ONNX float Snapdragon® 8 Gen 1 Mobile 110.315 ms 3 - 715 MB NPU
ESRGAN ONNX float Qualcomm® Dragonwing™ IQ-8275 127.415 ms 6 - 11 MB NPU
ESRGAN ONNX float Qualcomm® Dragonwing™ QCS8550 (Proxy) 65.305 ms 0 - 43 MB NPU
ESRGAN ONNX float Qualcomm® QCS8450 110.315 ms 3 - 715 MB NPU
ESRGAN ONNX float Qualcomm® Dragonwing™ IQ-9075 106.461 ms 6 - 10 MB NPU
ESRGAN ONNX float Qualcomm® Dragonwing™ IQ-X7181 65.279 ms 38 - 38 MB NPU
ESRGAN ONNX float Qualcomm® Dragonwing™ Q-8750 37.864 ms 7 - 333 MB NPU
ESRGAN ONNX w8a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 16.805 ms 1 - 966 MB NPU
ESRGAN ONNX w8a16 Snapdragon® 8 Elite For Galaxy Mobile 25.042 ms 3 - 824 MB NPU
ESRGAN ONNX w8a16 Snapdragon® X2 Elite 21.926 ms 4 - 4 MB NPU
ESRGAN ONNX w8a16 Snapdragon® X Elite 41.226 ms 26 - 26 MB NPU
ESRGAN ONNX w8a16 Snapdragon® 8 Gen 3 Mobile 30.701 ms 3 - 1052 MB NPU
ESRGAN ONNX w8a16 Snapdragon® 8 Gen 1 Mobile 67.28 ms 3 - 1127 MB NPU
ESRGAN ONNX w8a16 Qualcomm® Dragonwing™ QCS6490 234.875 ms 3 - 6 MB NPU
ESRGAN ONNX w8a16 Qualcomm® Dragonwing™ IQ-8275 41.315 ms 3 - 7 MB NPU
ESRGAN ONNX w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 40.504 ms 0 - 32 MB NPU
ESRGAN ONNX w8a16 Qualcomm® QCS8450 67.28 ms 3 - 1127 MB NPU
ESRGAN ONNX w8a16 Qualcomm® Dragonwing™ IQ-9075 35.635 ms 3 - 6 MB NPU
ESRGAN ONNX w8a16 Qualcomm® Dragonwing™ IQ-X7181 41.226 ms 26 - 26 MB NPU
ESRGAN ONNX w8a16 Qualcomm® Dragonwing™ Q-6690 1258.182 ms 0 - 693 MB NPU
ESRGAN ONNX w8a16 Qualcomm® Dragonwing™ Q-7790 100.647 ms 3 - 756 MB NPU
ESRGAN ONNX w8a16 Qualcomm® Dragonwing™ Q-8750 25.042 ms 3 - 824 MB NPU
ESRGAN ONNX w8a16 Snapdragon® 7 Gen 4 Mobile 100.647 ms 3 - 756 MB NPU
ESRGAN QNN_DLC float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 25.522 ms 0 - 313 MB NPU
ESRGAN QNN_DLC float Snapdragon® 8 Elite For Galaxy Mobile 37.902 ms 0 - 306 MB NPU
ESRGAN QNN_DLC float Snapdragon® X2 Elite 34.406 ms 0 - 0 MB NPU
ESRGAN QNN_DLC float Snapdragon® X Elite 64.809 ms 0 - 0 MB NPU
ESRGAN QNN_DLC float Snapdragon® 8 Gen 3 Mobile 48.642 ms 0 - 673 MB NPU
ESRGAN QNN_DLC float Snapdragon® 8 Gen 1 Mobile 103.017 ms 0 - 671 MB NPU
ESRGAN QNN_DLC float Qualcomm® Dragonwing™ IQ-8275 126.562 ms 0 - 6 MB NPU
ESRGAN QNN_DLC float Qualcomm® Dragonwing™ QCS8550 (Proxy) 62.668 ms 0 - 3 MB NPU
ESRGAN QNN_DLC float Qualcomm® QCS8450 103.017 ms 0 - 671 MB NPU
ESRGAN QNN_DLC float Qualcomm® Dragonwing™ IQ-9075 105.531 ms 2 - 8 MB NPU
ESRGAN QNN_DLC float Qualcomm® Dragonwing™ IQ-X7181 64.809 ms 0 - 0 MB NPU
ESRGAN QNN_DLC float Qualcomm® Dragonwing™ Q-8750 37.902 ms 0 - 306 MB NPU
ESRGAN QNN_DLC float Qualcomm® SA8295P 110.089 ms 0 - 333 MB NPU
ESRGAN QNN_DLC w8a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 16.192 ms 0 - 892 MB NPU
ESRGAN QNN_DLC w8a16 Snapdragon® 8 Elite For Galaxy Mobile 25.432 ms 0 - 750 MB NPU
ESRGAN QNN_DLC w8a16 Snapdragon® X2 Elite 21.744 ms 0 - 0 MB NPU
ESRGAN QNN_DLC w8a16 Snapdragon® X Elite 41.133 ms 0 - 0 MB NPU
ESRGAN QNN_DLC w8a16 Snapdragon® 8 Gen 3 Mobile 30.741 ms 0 - 969 MB NPU
ESRGAN QNN_DLC w8a16 Snapdragon® 8 Gen 1 Mobile 60.424 ms 0 - 1034 MB NPU
ESRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ QCS6490 231.956 ms 2 - 6 MB NPU
ESRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-8275 41.226 ms 0 - 5 MB NPU
ESRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 40.269 ms 0 - 3 MB NPU
ESRGAN QNN_DLC w8a16 Qualcomm® SA8650P 37.636 ms 0 - 667 MB NPU
ESRGAN QNN_DLC w8a16 Qualcomm® SA8255P 37.636 ms 0 - 667 MB NPU
ESRGAN QNN_DLC w8a16 Qualcomm® QCS8450 60.424 ms 0 - 1034 MB NPU
ESRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-9075 35.295 ms 2 - 6 MB NPU
ESRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-X7181 41.133 ms 0 - 0 MB NPU
ESRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-6690 1310.922 ms 0 - 613 MB NPU
ESRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-7790 99.702 ms 0 - 679 MB NPU
ESRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-8750 25.432 ms 0 - 750 MB NPU
ESRGAN QNN_DLC w8a16 Qualcomm® SA8295P 64.507 ms 0 - 647 MB NPU
ESRGAN QNN_DLC w8a16 Snapdragon® 7 Gen 4 Mobile 99.702 ms 0 - 679 MB NPU
ESRGAN TFLITE float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 25.572 ms 1 - 352 MB NPU
ESRGAN TFLITE float Snapdragon® 8 Elite For Galaxy Mobile 38.119 ms 3 - 347 MB NPU
ESRGAN TFLITE float Snapdragon® 8 Gen 3 Mobile 49.961 ms 1 - 713 MB NPU
ESRGAN TFLITE float Snapdragon® 8 Gen 1 Mobile 112.401 ms 0 - 703 MB NPU
ESRGAN TFLITE float Qualcomm® Dragonwing™ IQ-8275 126.587 ms 3 - 47 MB NPU
ESRGAN TFLITE float Qualcomm® Dragonwing™ QCS8550 (Proxy) 60.005 ms 3 - 7 MB NPU
ESRGAN TFLITE float Qualcomm® SA8775P 105.2 ms 3 - 368 MB NPU
ESRGAN TFLITE float Qualcomm® SA8650P 105.2 ms 3 - 368 MB NPU
ESRGAN TFLITE float Qualcomm® SA8255P 105.2 ms 3 - 368 MB NPU
ESRGAN TFLITE float Qualcomm® QCS8450 112.401 ms 0 - 703 MB NPU
ESRGAN TFLITE float Qualcomm® Dragonwing™ IQ-9075 105.815 ms 3 - 46 MB NPU
ESRGAN TFLITE float Qualcomm® Dragonwing™ Q-8750 38.119 ms 3 - 347 MB NPU
ESRGAN TFLITE float Qualcomm® SA8295P 110.126 ms 3 - 370 MB NPU

License

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