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.42, ONNX Runtime 1.25.0 | Download |
| ONNX | w8a8 | Universal | QAIRT 2.42, ONNX Runtime 1.25.0 | 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:
- Model checkpoint: RealESRGAN_x4plus
- Input resolution: 128x128
- Number of parameters: 16.7M
- Model size (float): 63.9 MB
- Model size (w8a8): 16.7 MB
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 Mobile | 28.079 ms | 6 - 352 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Snapdragon® X2 Elite | 34.517 ms | 212 - 212 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Snapdragon® X Elite | 65.493 ms | 149 - 149 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 50.608 ms | 8 - 798 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Qualcomm® QCS8550 (Proxy) | 66.237 ms | 6 - 105 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 38.264 ms | 6 - 347 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Qualcomm® QCS9075 | 107.569 ms | 6 - 51 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Qualcomm® QCS8750 | 38.264 ms | 6 - 347 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | float | Qualcomm® QCS7181 | 65.493 ms | 149 - 149 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 9.143 ms | 1 - 507 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® X Elite | 26.086 ms | 181 - 181 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® 8 Gen 3 Mobile | 16.937 ms | 1 - 796 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® QCS8550 (Proxy) | 24.881 ms | 0 - 99 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 12.762 ms | 2 - 494 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® QCS9075 | 32.13 ms | 1 - 46 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® QCS8750 | 12.762 ms | 2 - 494 MB | NPU |
| Real-ESRGAN-x4plus | ONNX | w8a8 | Qualcomm® QCS7181 | 26.086 ms | 181 - 181 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 25.455 ms | 0 - 330 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® X2 Elite | 34.483 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® X Elite | 65.186 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 49.693 ms | 0 - 707 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® QCS8275 | 452.267 ms | 1 - 353 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® QCS8550 (Proxy) | 62.254 ms | 0 - 2 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® SA8775P | 105.554 ms | 1 - 351 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® SA8650P | 105.554 ms | 1 - 351 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® SA8255P | 105.554 ms | 1 - 351 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® QCS8450 (Proxy) | 110.802 ms | 0 - 710 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® SA8295P | 111.227 ms | 0 - 359 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 38.302 ms | 0 - 334 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® SA7255P | 452.267 ms | 1 - 353 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® QCS9075 | 108.836 ms | 0 - 5 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® QCS8750 | 38.302 ms | 0 - 334 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | float | Qualcomm® QCS7181 | 65.186 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 9.082 ms | 0 - 435 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® X2 Elite | 10.519 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® X Elite | 25.919 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® 8 Gen 3 Mobile | 16.767 ms | 0 - 686 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® QCS6490 | 109.607 ms | 2 - 4 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® QCS8275 | 68.98 ms | 0 - 486 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® QCS8550 (Proxy) | 24.485 ms | 0 - 3 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® SA8775P | 22.824 ms | 0 - 486 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® SA8650P | 22.824 ms | 0 - 486 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® SA8255P | 22.824 ms | 0 - 486 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® SA7255P | 68.98 ms | 0 - 486 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® SA8295P | 36.439 ms | 0 - 496 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® 7 Gen 4 Mobile | 39.095 ms | 0 - 486 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® QCM6690 | 467.171 ms | 0 - 460 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 12.253 ms | 0 - 424 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® QCS9075 | 30.912 ms | 0 - 2 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® QCS8450 (Proxy) | 37.439 ms | 0 - 714 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® QCS7790 | 39.095 ms | 0 - 486 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® QCS8750 | 12.253 ms | 0 - 424 MB | NPU |
| Real-ESRGAN-x4plus | QNN_DLC | w8a8 | Qualcomm® QCS7181 | 25.919 ms | 0 - 0 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 27.673 ms | 3 - 370 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 48.907 ms | 0 - 745 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® QCS8275 | 452.787 ms | 4 - 393 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® QCS8550 (Proxy) | 63.475 ms | 3 - 290 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® SA8775P | 105.905 ms | 3 - 392 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® SA8650P | 105.905 ms | 3 - 392 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® SA8255P | 105.905 ms | 3 - 392 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® QCS8450 (Proxy) | 118.508 ms | 4 - 731 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® SA8295P | 110.453 ms | 3 - 392 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 37.517 ms | 3 - 374 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® SA7255P | 452.787 ms | 4 - 393 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® QCS9075 | 109.988 ms | 3 - 46 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | float | Qualcomm® QCS8750 | 37.517 ms | 3 - 374 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Snapdragon® 8 Elite Gen 5 Mobile | 7.603 ms | 1 - 506 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Snapdragon® 8 Gen 3 Mobile | 13.858 ms | 1 - 652 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® QCS6490 | 93.644 ms | 1 - 26 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® QCS8275 | 64.833 ms | 1 - 449 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® QCS8550 (Proxy) | 18.638 ms | 1 - 4 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® SA8775P | 18.273 ms | 1 - 449 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® SA8650P | 18.273 ms | 1 - 449 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® SA8255P | 18.273 ms | 1 - 449 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® SA7255P | 64.833 ms | 1 - 449 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® SA8295P | 34.526 ms | 1 - 447 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Snapdragon® 7 Gen 4 Mobile | 32.854 ms | 1 - 446 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® QCM6690 | 437.464 ms | 3 - 441 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Snapdragon® 8 Elite For Galaxy Mobile | 11.772 ms | 1 - 472 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® QCS9075 | 25.549 ms | 1 - 26 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® QCS8450 (Proxy) | 35.353 ms | 1 - 661 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® QCS7790 | 32.854 ms | 1 - 446 MB | NPU |
| Real-ESRGAN-x4plus | TFLITE | w8a8 | Qualcomm® QCS8750 | 11.772 ms | 1 - 472 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.
