Image-to-Image
PyTorch
android

SRGAN: Optimized for Qualcomm Devices

SRGAN is designed for lightweight real-time upscaling of images.

This is based on the implementation of SRGAN 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.51, ONNX Runtime 1.30.0 Download
ONNX w8a16 Universal QAIRT 2.51, ONNX Runtime 1.30.0 Download
ONNX w8a8 Universal QAIRT 2.51, ONNX Runtime 1.30.0 Download
QNN_DLC float Universal QAIRT 2.51 Download
QNN_DLC w8a16 Universal QAIRT 2.51 Download
QNN_DLC w8a8 Universal QAIRT 2.51 Download
TFLITE float Universal QAIRT 2.51 Download
TFLITE w8a8 Universal QAIRT 2.51 Download

For more device-specific assets and performance metrics, visit SRGAN 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 SRGAN on GitHub for usage instructions.

Model Details

Model Type: Model_use_case.super_resolution

Model Stats:

  • Input resolution: 128x128
  • Model checkpoint: SRGAN_x4-ImageNet.pth
  • Model size (float): 5.92 MB
  • Model size (w8a16): 1.72 MB
  • Model size (w8a8): 1.58 MB
  • Number of parameters: 1.55M

Performance Summary

Model Runtime Precision Chipset Inference Time (ms) Peak Memory Range (MB) Primary Compute Unit
SRGAN ONNX float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 8.596 ms 5 - 162 MB NPU
SRGAN ONNX float Snapdragon® 8 Elite For Galaxy Mobile 10.414 ms 7 - 159 MB NPU
SRGAN ONNX float Snapdragon® X2 Elite 9.423 ms 8 - 8 MB NPU
SRGAN ONNX float Snapdragon® X Elite 22.823 ms 5 - 5 MB NPU
SRGAN ONNX float Snapdragon® 8 Gen 3 Mobile 12.28 ms 8 - 213 MB NPU
SRGAN ONNX float Snapdragon® 8 Gen 1 Mobile 28.3 ms 7 - 207 MB NPU
SRGAN ONNX float Qualcomm® Dragonwing™ IQ-8275 34.043 ms 6 - 11 MB NPU
SRGAN ONNX float Qualcomm® Dragonwing™ QCS8550 (Proxy) 21.868 ms 6 - 12 MB NPU
SRGAN ONNX float Qualcomm® QCS8450 28.3 ms 7 - 207 MB NPU
SRGAN ONNX float Qualcomm® Dragonwing™ IQ-9075 28.405 ms 7 - 11 MB NPU
SRGAN ONNX float Qualcomm® Dragonwing™ IQ-X7181 22.823 ms 5 - 5 MB NPU
SRGAN ONNX float Qualcomm® Dragonwing™ Q-8750 10.414 ms 7 - 159 MB NPU
SRGAN ONNX float Snapdragon® 8 Elite Extreme Gen 6 Mobile 7.244 ms 7 - 162 MB NPU
SRGAN ONNX float Snapdragon® 8 Elite Gen 6 Mobile 7.566 ms 8 - 159 MB NPU
SRGAN ONNX w8a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 7.294 ms 1 - 192 MB NPU
SRGAN ONNX w8a16 Snapdragon® 8 Elite For Galaxy Mobile 8.291 ms 3 - 182 MB NPU
SRGAN ONNX w8a16 Snapdragon® X2 Elite 8.432 ms 4 - 4 MB NPU
SRGAN ONNX w8a16 Snapdragon® X Elite 19.261 ms 4 - 4 MB NPU
SRGAN ONNX w8a16 Snapdragon® 8 Gen 3 Mobile 9.751 ms 3 - 208 MB NPU
SRGAN ONNX w8a16 Snapdragon® 8 Gen 1 Mobile 20.537 ms 3 - 218 MB NPU
SRGAN ONNX w8a16 Qualcomm® Dragonwing™ QCS6490 40.059 ms 3 - 6 MB NPU
SRGAN ONNX w8a16 Qualcomm® Dragonwing™ IQ-8275 13.628 ms 3 - 7 MB NPU
SRGAN ONNX w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 18.411 ms 3 - 7 MB NPU
SRGAN ONNX w8a16 Qualcomm® QCS8450 20.537 ms 3 - 218 MB NPU
SRGAN ONNX w8a16 Qualcomm® Dragonwing™ IQ-9075 18.703 ms 3 - 7 MB NPU
SRGAN ONNX w8a16 Qualcomm® Dragonwing™ IQ-X7181 19.261 ms 4 - 4 MB NPU
SRGAN ONNX w8a16 Qualcomm® Dragonwing™ Q-6690 193.232 ms 3 - 196 MB NPU
SRGAN ONNX w8a16 Qualcomm® Dragonwing™ Q-7790 21.269 ms 3 - 177 MB NPU
SRGAN ONNX w8a16 Qualcomm® Dragonwing™ Q-8750 8.291 ms 3 - 182 MB NPU
SRGAN ONNX w8a16 Snapdragon® 7 Gen 4 Mobile 21.269 ms 3 - 177 MB NPU
SRGAN ONNX w8a16 Snapdragon® 8 Elite Extreme Gen 6 Mobile 6.662 ms 3 - 185 MB NPU
SRGAN ONNX w8a16 Snapdragon® 8 Elite Gen 6 Mobile 6.363 ms 2 - 168 MB NPU
SRGAN ONNX w8a8 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 3.455 ms 0 - 159 MB NPU
SRGAN ONNX w8a8 Snapdragon® 8 Elite For Galaxy Mobile 4.124 ms 0 - 156 MB NPU
SRGAN ONNX w8a8 Snapdragon® X2 Elite 3.686 ms 3 - 3 MB NPU
SRGAN ONNX w8a8 Snapdragon® X Elite 9.592 ms 1 - 1 MB NPU
SRGAN ONNX w8a8 Snapdragon® 8 Gen 3 Mobile 4.782 ms 1 - 181 MB NPU
SRGAN ONNX w8a8 Snapdragon® 8 Gen 1 Mobile 10.819 ms 2 - 192 MB NPU
SRGAN ONNX w8a8 Qualcomm® Dragonwing™ QCS6490 20.216 ms 2 - 5 MB NPU
SRGAN ONNX w8a8 Qualcomm® Dragonwing™ IQ-8275 6.285 ms 2 - 6 MB NPU
SRGAN ONNX w8a8 Qualcomm® Dragonwing™ QCS8550 (Proxy) 9.154 ms 1 - 5 MB NPU
SRGAN ONNX w8a8 Qualcomm® QCS8450 10.819 ms 2 - 192 MB NPU
SRGAN ONNX w8a8 Qualcomm® Dragonwing™ IQ-9075 9.161 ms 2 - 5 MB NPU
SRGAN ONNX w8a8 Qualcomm® Dragonwing™ IQ-X7181 9.592 ms 1 - 1 MB NPU
SRGAN ONNX w8a8 Qualcomm® Dragonwing™ Q-6690 90.329 ms 2 - 164 MB NPU
SRGAN ONNX w8a8 Qualcomm® Dragonwing™ Q-7790 10.495 ms 2 - 164 MB NPU
SRGAN ONNX w8a8 Qualcomm® Dragonwing™ Q-8750 4.124 ms 0 - 156 MB NPU
SRGAN ONNX w8a8 Snapdragon® 7 Gen 4 Mobile 10.495 ms 2 - 164 MB NPU
SRGAN ONNX w8a8 Snapdragon® 8 Elite Extreme Gen 6 Mobile 3.007 ms 0 - 54 MB NPU
SRGAN ONNX w8a8 Snapdragon® 8 Elite Gen 6 Mobile 3.096 ms 0 - 162 MB NPU
SRGAN QNN_DLC float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 8.217 ms 0 - 151 MB NPU
SRGAN QNN_DLC float Snapdragon® 8 Elite For Galaxy Mobile 9.737 ms 0 - 151 MB NPU
SRGAN QNN_DLC float Snapdragon® X2 Elite 9.682 ms 0 - 0 MB NPU
SRGAN QNN_DLC float Snapdragon® X Elite 22.432 ms 0 - 0 MB NPU
SRGAN QNN_DLC float Snapdragon® 8 Gen 3 Mobile 11.672 ms 0 - 193 MB NPU
SRGAN QNN_DLC float Snapdragon® 8 Gen 1 Mobile 27.04 ms 0 - 193 MB NPU
SRGAN QNN_DLC float Qualcomm® Dragonwing™ IQ-8275 32.834 ms 0 - 6 MB NPU
SRGAN QNN_DLC float Qualcomm® Dragonwing™ QCS8550 (Proxy) 21.193 ms 0 - 2 MB NPU
SRGAN QNN_DLC float Qualcomm® SA8775P 27.748 ms 0 - 149 MB NPU
SRGAN QNN_DLC float Qualcomm® SA8650P 27.748 ms 0 - 149 MB NPU
SRGAN QNN_DLC float Qualcomm® SA8255P 27.748 ms 0 - 149 MB NPU
SRGAN QNN_DLC float Qualcomm® QCS8450 27.04 ms 0 - 193 MB NPU
SRGAN QNN_DLC float Qualcomm® Dragonwing™ IQ-9075 28.162 ms 0 - 6 MB NPU
SRGAN QNN_DLC float Qualcomm® Dragonwing™ IQ-X7181 22.432 ms 0 - 0 MB NPU
SRGAN QNN_DLC float Qualcomm® Dragonwing™ Q-8750 9.737 ms 0 - 151 MB NPU
SRGAN QNN_DLC float Qualcomm® SA7255P 115.05 ms 1 - 150 MB NPU
SRGAN QNN_DLC float Qualcomm® SA8295P 29.382 ms 1 - 151 MB NPU
SRGAN QNN_DLC float Snapdragon® 8 Elite Extreme Gen 6 Mobile 7.173 ms 0 - 43 MB NPU
SRGAN QNN_DLC float Snapdragon® 8 Elite Gen 6 Mobile 7.146 ms 0 - 150 MB NPU
SRGAN QNN_DLC w8a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 7.16 ms 0 - 179 MB NPU
SRGAN QNN_DLC w8a16 Snapdragon® 8 Elite For Galaxy Mobile 8.255 ms 0 - 171 MB NPU
SRGAN QNN_DLC w8a16 Snapdragon® X2 Elite 8.55 ms 0 - 0 MB NPU
SRGAN QNN_DLC w8a16 Snapdragon® X Elite 19.376 ms 0 - 0 MB NPU
SRGAN QNN_DLC w8a16 Snapdragon® 8 Gen 3 Mobile 9.643 ms 0 - 196 MB NPU
SRGAN QNN_DLC w8a16 Snapdragon® 8 Gen 1 Mobile 20.314 ms 0 - 209 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ QCS6490 39.447 ms 0 - 4 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-8275 13.49 ms 0 - 5 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 18.296 ms 0 - 2 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® SA8775P 18.784 ms 0 - 162 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® SA8650P 18.784 ms 0 - 162 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® SA8255P 18.784 ms 0 - 162 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® QCS8450 20.314 ms 0 - 209 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-9075 18.606 ms 2 - 6 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-X7181 19.376 ms 0 - 0 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-6690 197.166 ms 0 - 177 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-7790 20.643 ms 0 - 166 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-8750 8.255 ms 0 - 171 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® SA7255P 32.262 ms 0 - 162 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® SA8295P 22.34 ms 0 - 174 MB NPU
SRGAN QNN_DLC w8a16 Snapdragon® 7 Gen 4 Mobile 20.643 ms 0 - 166 MB NPU
SRGAN QNN_DLC w8a16 Snapdragon® 8 Elite Extreme Gen 6 Mobile 5.986 ms 0 - 63 MB NPU
SRGAN QNN_DLC w8a16 Snapdragon® 8 Elite Gen 6 Mobile 6.732 ms 0 - 158 MB NPU
SRGAN QNN_DLC w8a8 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 3.406 ms 0 - 41 MB NPU
SRGAN QNN_DLC w8a8 Snapdragon® 8 Elite For Galaxy Mobile 3.884 ms 0 - 42 MB NPU
SRGAN QNN_DLC w8a8 Snapdragon® X2 Elite 3.888 ms 0 - 0 MB NPU
SRGAN QNN_DLC w8a8 Snapdragon® X Elite 9.594 ms 0 - 0 MB NPU
SRGAN QNN_DLC w8a8 Snapdragon® 8 Gen 3 Mobile 4.515 ms 0 - 64 MB NPU
SRGAN QNN_DLC w8a8 Snapdragon® 8 Gen 1 Mobile 10.18 ms 0 - 71 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® Dragonwing™ QCS6490 17.039 ms 0 - 3 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® Dragonwing™ IQ-8275 5.964 ms 0 - 4 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® Dragonwing™ QCS8550 (Proxy) 8.923 ms 0 - 1 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® SA8775P 9.324 ms 0 - 46 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® SA8650P 9.324 ms 0 - 46 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® SA8255P 9.324 ms 0 - 46 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® QCS8450 10.18 ms 0 - 71 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® Dragonwing™ IQ-9075 8.917 ms 0 - 3 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® Dragonwing™ IQ-X7181 9.594 ms 0 - 0 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® Dragonwing™ Q-6690 82.608 ms 0 - 152 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® Dragonwing™ Q-7790 10.478 ms 0 - 150 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® Dragonwing™ Q-8750 3.884 ms 0 - 42 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® SA8295P 11.419 ms 0 - 44 MB NPU
SRGAN QNN_DLC w8a8 Snapdragon® 7 Gen 4 Mobile 10.478 ms 0 - 150 MB NPU
SRGAN QNN_DLC w8a8 Snapdragon® 8 Elite Extreme Gen 6 Mobile 2.987 ms 0 - 46 MB NPU
SRGAN QNN_DLC w8a8 Snapdragon® 8 Elite Gen 6 Mobile 3.035 ms 0 - 45 MB NPU
SRGAN TFLITE float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 8.348 ms 3 - 163 MB NPU
SRGAN TFLITE float Snapdragon® 8 Elite For Galaxy Mobile 10.246 ms 3 - 164 MB NPU
SRGAN TFLITE float Snapdragon® 8 Gen 3 Mobile 12.015 ms 3 - 201 MB NPU
SRGAN TFLITE float Snapdragon® 8 Gen 1 Mobile 27.619 ms 3 - 201 MB NPU
SRGAN TFLITE float Qualcomm® Dragonwing™ IQ-8275 33.631 ms 3 - 13 MB NPU
SRGAN TFLITE float Qualcomm® Dragonwing™ QCS8550 (Proxy) 21.658 ms 3 - 93 MB NPU
SRGAN TFLITE float Qualcomm® SA8775P 627.872 ms 3 - 12 MB CPU
SRGAN TFLITE float Qualcomm® SA8650P 627.872 ms 3 - 12 MB CPU
SRGAN TFLITE float Qualcomm® SA8255P 627.872 ms 3 - 12 MB CPU
SRGAN TFLITE float Qualcomm® QCS8450 27.619 ms 3 - 201 MB NPU
SRGAN TFLITE float Qualcomm® Dragonwing™ IQ-9075 28.646 ms 3 - 12 MB NPU
SRGAN TFLITE float Qualcomm® Dragonwing™ Q-8750 10.246 ms 3 - 164 MB NPU
SRGAN TFLITE float Qualcomm® SA8295P 29.308 ms 3 - 156 MB NPU
SRGAN TFLITE float Snapdragon® 8 Elite Extreme Gen 6 Mobile 7.191 ms 3 - 50 MB NPU
SRGAN TFLITE float Snapdragon® 8 Elite Gen 6 Mobile 7.824 ms 3 - 158 MB NPU
SRGAN TFLITE w8a8 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 3.403 ms 0 - 47 MB NPU
SRGAN TFLITE w8a8 Snapdragon® 8 Elite For Galaxy Mobile 3.89 ms 0 - 40 MB NPU
SRGAN TFLITE w8a8 Snapdragon® 8 Gen 3 Mobile 4.545 ms 0 - 67 MB NPU
SRGAN TFLITE w8a8 Snapdragon® 8 Gen 1 Mobile 10.373 ms 1 - 71 MB NPU
SRGAN TFLITE w8a8 Qualcomm® Dragonwing™ QCS6490 17.087 ms 1 - 6 MB NPU
SRGAN TFLITE w8a8 Qualcomm® Dragonwing™ IQ-8275 6.003 ms 1 - 7 MB NPU
SRGAN TFLITE w8a8 Qualcomm® Dragonwing™ QCS8550 (Proxy) 8.836 ms 1 - 3 MB NPU
SRGAN TFLITE w8a8 Qualcomm® SA8775P 9.394 ms 1 - 47 MB NPU
SRGAN TFLITE w8a8 Qualcomm® SA8650P 9.394 ms 1 - 47 MB NPU
SRGAN TFLITE w8a8 Qualcomm® SA8255P 9.394 ms 1 - 47 MB NPU
SRGAN TFLITE w8a8 Qualcomm® QCS8450 10.373 ms 1 - 71 MB NPU
SRGAN TFLITE w8a8 Qualcomm® Dragonwing™ IQ-9075 8.944 ms 1 - 6 MB NPU
SRGAN TFLITE w8a8 Qualcomm® Dragonwing™ Q-6690 90.317 ms 1 - 155 MB NPU
SRGAN TFLITE w8a8 Qualcomm® Dragonwing™ Q-7790 10.33 ms 1 - 153 MB NPU
SRGAN TFLITE w8a8 Qualcomm® Dragonwing™ Q-8750 3.89 ms 0 - 40 MB NPU
SRGAN TFLITE w8a8 Qualcomm® SA7255P 15.649 ms 1 - 47 MB NPU
SRGAN TFLITE w8a8 Qualcomm® SA8295P 11.533 ms 1 - 46 MB NPU
SRGAN TFLITE w8a8 Snapdragon® 7 Gen 4 Mobile 10.33 ms 1 - 153 MB NPU
SRGAN TFLITE w8a8 Snapdragon® 8 Elite Extreme Gen 6 Mobile 2.994 ms 0 - 46 MB NPU
SRGAN TFLITE w8a8 Snapdragon® 8 Elite Gen 6 Mobile 3.037 ms 0 - 46 MB NPU

License

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