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.45, ONNX Runtime 1.27.1 | Download |
| ONNX | w8a8 | Universal | QAIRT 2.45, ONNX Runtime 1.27.1 | Download |
| QNN_DLC | float | Universal | QAIRT 2.45 | Download |
| QNN_DLC | w8a8 | Universal | QAIRT 2.45 | Download |
| TFLITE | float | Universal | QAIRT 2.45 | Download |
| TFLITE | w8a8 | Universal | QAIRT 2.45 | 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® X2 Elite | 34.535 ms | 8 - 8 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Snapdragon® X Elite | 65.478 ms | 37 - 37 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 50.898 ms | 0 - 743 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 142.871 ms | 4 - 739 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 127.753 ms | 6 - 10 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 69.852 ms | 0 - 44 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Qualcomm® QCS8450 | 142.871 ms | 4 - 739 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 105.978 ms | 6 - 9 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 65.478 ms | 37 - 37 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 38.121 ms | 7 - 361 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Snapdragon® 8 Elite Mobile | 38.121 ms | 7 - 361 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 26.619 ms | 5 - 361 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® X2 Elite | 10.228 ms | 3 - 3 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® X Elite | 25.116 ms | 22 - 22 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® 8 Gen 3 Mobile | 16.475 ms | 2 - 759 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® 8 Gen 1 Mobile | 38.123 ms | 2 - 770 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 146.398 ms | 2 - 4 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 22.822 ms | 2 - 5 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 23.854 ms | 0 - 29 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® QCS8450 | 38.123 ms | 2 - 770 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 22.533 ms | 2 - 4 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® Dragonwing™ IQ-X7181 | 25.116 ms | 22 - 22 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 468.801 ms | 1 - 506 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 38.237 ms | 2 - 549 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 12.27 ms | 2 - 476 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® 8 Elite Mobile | 12.27 ms | 2 - 476 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 8.976 ms | 2 - 490 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® 7 Gen 4 Mobile | 38.237 ms | 2 - 549 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® X2 Elite | 34.496 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® X Elite | 65.129 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 49.055 ms | 0 - 705 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 133.447 ms | 0 - 710 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 126.857 ms | 0 - 6 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 452.154 ms | 1 - 352 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 65.776 ms | 0 - 4 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® SA8775P | 105.55 ms | 1 - 352 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® SA8650P | 105.55 ms | 1 - 352 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® SA8255P | 105.55 ms | 1 - 352 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® QCS8450 | 133.447 ms | 0 - 710 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 106.021 ms | 0 - 5 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 65.129 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 38.074 ms | 0 - 336 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® SA7255P | 452.154 ms | 1 - 352 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® SA8295P | 111.26 ms | 1 - 359 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® 8 Elite Mobile | 38.074 ms | 0 - 336 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 26.217 ms | 0 - 337 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® X2 Elite | 10.327 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® X Elite | 23.975 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® 8 Gen 3 Mobile | 15.494 ms | 0 - 676 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® 8 Gen 1 Mobile | 38.31 ms | 0 - 704 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 144.782 ms | 0 - 3 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 21.417 ms | 0 - 3 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 65.703 ms | 0 - 477 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 22.715 ms | 0 - 2 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® SA8775P | 21.134 ms | 0 - 476 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® SA8650P | 21.134 ms | 0 - 476 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® SA8255P | 21.134 ms | 0 - 476 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® QCS8450 | 38.31 ms | 0 - 704 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 20.867 ms | 0 - 2 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ IQ-X7181 | 23.975 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 461.727 ms | 0 - 433 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 38.332 ms | 0 - 476 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 11.985 ms | 0 - 414 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® SA7255P | 65.703 ms | 0 - 477 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® SA8295P | 36.306 ms | 0 - 483 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® 8 Elite Mobile | 11.985 ms | 0 - 414 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 8.811 ms | 0 - 424 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® 7 Gen 4 Mobile | 38.332 ms | 0 - 476 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 51.195 ms | 10 - 756 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 133.012 ms | 4 - 733 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 127.074 ms | 3 - 46 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 452.638 ms | 4 - 393 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 68.109 ms | 4 - 8 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® SA8775P | 105.926 ms | 3 - 393 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® SA8650P | 105.926 ms | 3 - 393 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® SA8255P | 105.926 ms | 3 - 393 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® QCS8450 | 133.012 ms | 4 - 733 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 105.723 ms | 3 - 46 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 37.835 ms | 0 - 364 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® SA7255P | 452.638 ms | 4 - 393 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® SA8295P | 110.47 ms | 3 - 392 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Snapdragon® 8 Elite Mobile | 37.835 ms | 0 - 364 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 26.119 ms | 3 - 368 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Snapdragon® 8 Gen 3 Mobile | 13.348 ms | 1 - 632 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Snapdragon® 8 Gen 1 Mobile | 37.478 ms | 1 - 644 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® Dragonwing™ QCS6490 | 113.478 ms | 1 - 25 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 20.167 ms | 1 - 26 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® Dragonwing™ IQ-8275 | 63.919 ms | 1 - 429 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 18.011 ms | 1 - 4 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® SA8775P | 17.609 ms | 1 - 430 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® SA8650P | 17.609 ms | 1 - 430 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® SA8255P | 17.609 ms | 1 - 430 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® QCS8450 | 37.478 ms | 1 - 644 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® Dragonwing™ IQ-9075 | 19.482 ms | 0 - 24 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-6690 | 436.427 ms | 1 - 433 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-7790 | 32.331 ms | 1 - 432 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® Dragonwing™ Q-8750 | 11.232 ms | 1 - 450 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® SA7255P | 63.919 ms | 1 - 429 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® SA8295P | 33.287 ms | 1 - 431 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Snapdragon® 8 Elite Mobile | 11.232 ms | 1 - 450 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 7.589 ms | 1 - 473 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Snapdragon® 7 Gen 4 Mobile | 32.331 ms | 1 - 432 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.
