Real-ESRGAN-x4plus: Optimized for Qualcomm Devices
Real-ESRGAN is a machine learning model that upscales an image with minimal loss in quality. The implementation is a derivative of the Real-ESRGAN-x4plus architecture, a larger and more powerful version compared to the Real-ESRGAN-general-x4v3 architecture.
This is based on the implementation of Real-ESRGAN-x4plus 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 | w8a8 | Universal | QAIRT 2.50, ONNX Runtime 1.27.1 | 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 Real-ESRGAN-x4plus 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 Real-ESRGAN-x4plus on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.super_resolution
Model Stats:
- Input resolution: 128x128
- Model checkpoint: RealESRGAN_x4plus
- Model size (float): 63.9 MB
- Model size (w8a8): 16.7 MB
- Number of parameters: 16.7M
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| Real-ESRGAN-x4plus | ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 26.36 ms | 5 - 336 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 39.755 ms | 6 - 331 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Snapdragon® X2 Elite | 34.678 ms | 8 - 8 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Snapdragon® X Elite | 65.211 ms | 38 - 38 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 49.905 ms | 0 - 718 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 117.336 ms | 3 - 719 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 127.203 ms | 6 - 11 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 66.519 ms | 0 - 43 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Qualcomm® QCS8450 | 117.336 ms | 3 - 719 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 106.228 ms | 7 - 10 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 65.211 ms | 38 - 38 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 39.755 ms | 6 - 331 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 8.616 ms | 2 - 464 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 12.296 ms | 2 - 456 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® X2 Elite | 9.581 ms | 3 - 3 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® X Elite | 23.347 ms | 22 - 22 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® 8 Gen 3 Mobile | 15.407 ms | 2 - 727 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® 8 Gen 1 Mobile | 32.912 ms | 2 - 739 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 121.382 ms | 2 - 5 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 21.015 ms | 2 - 6 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 22.652 ms | 0 - 652 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® QCS8450 | 32.912 ms | 2 - 739 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 20.993 ms | 2 - 5 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-X7181 | 23.347 ms | 22 - 22 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 576.149 ms | 2 - 533 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 37.517 ms | 2 - 517 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 12.296 ms | 2 - 456 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® 7 Gen 4 Mobile | 37.517 ms | 2 - 517 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 25.63 ms | 0 - 315 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 37.787 ms | 0 - 308 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® X2 Elite | 34.562 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® X Elite | 64.889 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 49.099 ms | 0 - 676 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 127.626 ms | 0 - 672 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 126.631 ms | 0 - 6 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 63.451 ms | 0 - 2 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® SA8775P | 105.158 ms | 1 - 323 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® SA8650P | 105.158 ms | 1 - 323 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® SA8255P | 105.158 ms | 1 - 323 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® QCS8450 | 127.626 ms | 0 - 672 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 105.756 ms | 0 - 6 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 64.889 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 37.787 ms | 0 - 308 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® SA8295P | 109.797 ms | 0 - 334 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 8.493 ms | 0 - 396 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 11.919 ms | 0 - 383 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® X2 Elite | 9.965 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® X Elite | 24.856 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® 8 Gen 3 Mobile | 15.515 ms | 0 - 640 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® 8 Gen 1 Mobile | 34.686 ms | 0 - 652 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 123.418 ms | 0 - 3 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 21.002 ms | 0 - 4 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 23.725 ms | 0 - 3 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® SA8775P | 21.059 ms | 0 - 446 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® SA8650P | 21.059 ms | 0 - 446 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® SA8255P | 21.059 ms | 0 - 446 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® QCS8450 | 34.686 ms | 0 - 652 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 21.223 ms | 0 - 3 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-X7181 | 24.856 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 525.021 ms | 0 - 464 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 36.755 ms | 0 - 444 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 11.919 ms | 0 - 383 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® SA8295P | 35.83 ms | 0 - 449 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® 7 Gen 4 Mobile | 36.755 ms | 0 - 444 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 25.91 ms | 0 - 346 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 36.676 ms | 3 - 348 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 49.019 ms | 3 - 719 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 110.975 ms | 3 - 708 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 126.845 ms | 3 - 47 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 62.153 ms | 3 - 7 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® SA8775P | 105.525 ms | 0 - 364 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® SA8650P | 105.525 ms | 0 - 364 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® SA8255P | 105.525 ms | 0 - 364 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® QCS8450 | 110.975 ms | 3 - 708 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 105.89 ms | 3 - 46 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 36.676 ms | 3 - 348 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® SA7255P | 452.115 ms | 4 - 369 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® SA8295P | 111.0 ms | 3 - 370 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 7.057 ms | 1 - 438 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 11.52 ms | 1 - 421 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Snapdragon® 8 Gen 3 Mobile | 14.193 ms | 1 - 609 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Snapdragon® 8 Gen 1 Mobile | 35.144 ms | 1 - 609 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 98.019 ms | 1 - 26 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 19.885 ms | 1 - 26 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 18.539 ms | 1 - 4 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® SA8775P | 17.637 ms | 1 - 401 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® SA8650P | 17.637 ms | 1 - 401 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® SA8255P | 17.637 ms | 1 - 401 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® QCS8450 | 35.144 ms | 1 - 609 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 17.561 ms | 1 - 25 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 438.803 ms | 1 - 444 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 29.944 ms | 1 - 402 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 11.52 ms | 1 - 421 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® SA7255P | 63.997 ms | 1 - 406 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® SA8295P | 33.18 ms | 1 - 404 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Snapdragon® 7 Gen 4 Mobile | 29.944 ms | 1 - 402 MB | NPU |
License
- The license for the original implementation of Real-ESRGAN-x4plus can be found here.
References
- Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data
- Source Model Implementation
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.
