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.50, ONNX Runtime 1.30.0 Download
ONNX w8a16 Universal QAIRT 2.50, ONNX Runtime 1.30.0 Download
ONNX w8a8 Universal QAIRT 2.50, ONNX Runtime 1.30.0 Download
QNN_DLC float Universal QAIRT 2.50 Download
QNN_DLC w8a16 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 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.589 ms 6 - 162 MB NPU
SRGAN ONNX float Snapdragon® 8 Elite For Galaxy Mobile 10.567 ms 7 - 157 MB NPU
SRGAN ONNX float Snapdragon® X2 Elite 9.468 ms 8 - 8 MB NPU
SRGAN ONNX float Snapdragon® X Elite 22.771 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.207 ms 6 - 205 MB NPU
SRGAN ONNX float Qualcomm® Dragonwing™ IQ-8275 33.733 ms 6 - 10 MB NPU
SRGAN ONNX float Qualcomm® Dragonwing™ QCS8550 (Proxy) 22.018 ms 6 - 12 MB NPU
SRGAN ONNX float Qualcomm® QCS8450 28.207 ms 6 - 205 MB NPU
SRGAN ONNX float Qualcomm® Dragonwing™ IQ-9075 28.497 ms 6 - 10 MB NPU
SRGAN ONNX float Qualcomm® Dragonwing™ IQ-X7181 22.771 ms 5 - 5 MB NPU
SRGAN ONNX float Qualcomm® Dragonwing™ Q-8750 10.567 ms 7 - 157 MB NPU
SRGAN ONNX float Snapdragon® 8 Elite Extreme Gen 6 Mobile 7.341 ms 7 - 163 MB NPU
SRGAN ONNX float Snapdragon® 8 Elite Gen 6 Mobile 7.57 ms 6 - 164 MB NPU
SRGAN ONNX w8a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 7.419 ms 1 - 187 MB NPU
SRGAN ONNX w8a16 Snapdragon® 8 Elite For Galaxy Mobile 8.295 ms 3 - 180 MB NPU
SRGAN ONNX w8a16 Snapdragon® X2 Elite 8.447 ms 4 - 4 MB NPU
SRGAN ONNX w8a16 Snapdragon® X Elite 19.295 ms 2 - 2 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.619 ms 3 - 218 MB NPU
SRGAN ONNX w8a16 Qualcomm® Dragonwing™ QCS6490 40.051 ms 3 - 6 MB NPU
SRGAN ONNX w8a16 Qualcomm® Dragonwing™ IQ-8275 13.539 ms 3 - 7 MB NPU
SRGAN ONNX w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 18.389 ms 3 - 111 MB NPU
SRGAN ONNX w8a16 Qualcomm® QCS8450 20.619 ms 3 - 218 MB NPU
SRGAN ONNX w8a16 Qualcomm® Dragonwing™ IQ-9075 18.796 ms 3 - 6 MB NPU
SRGAN ONNX w8a16 Qualcomm® Dragonwing™ IQ-X7181 19.295 ms 2 - 2 MB NPU
SRGAN ONNX w8a16 Qualcomm® Dragonwing™ Q-6690 193.105 ms 0 - 192 MB NPU
SRGAN ONNX w8a16 Qualcomm® Dragonwing™ Q-7790 21.19 ms 3 - 177 MB NPU
SRGAN ONNX w8a16 Qualcomm® Dragonwing™ Q-8750 8.295 ms 3 - 180 MB NPU
SRGAN ONNX w8a16 Snapdragon® 7 Gen 4 Mobile 21.19 ms 3 - 177 MB NPU
SRGAN ONNX w8a16 Snapdragon® 8 Elite Extreme Gen 6 Mobile 6.288 ms 3 - 192 MB NPU
SRGAN ONNX w8a16 Snapdragon® 8 Elite Gen 6 Mobile 6.197 ms 3 - 182 MB NPU
SRGAN ONNX w8a8 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 3.453 ms 2 - 161 MB NPU
SRGAN ONNX w8a8 Snapdragon® 8 Elite For Galaxy Mobile 4.117 ms 0 - 155 MB NPU
SRGAN ONNX w8a8 Snapdragon® X2 Elite 3.697 ms 3 - 3 MB NPU
SRGAN ONNX w8a8 Snapdragon® X Elite 9.596 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.898 ms 2 - 190 MB NPU
SRGAN ONNX w8a8 Qualcomm® Dragonwing™ QCS6490 20.23 ms 2 - 5 MB NPU
SRGAN ONNX w8a8 Qualcomm® Dragonwing™ IQ-8275 6.446 ms 2 - 6 MB NPU
SRGAN ONNX w8a8 Qualcomm® Dragonwing™ QCS8550 (Proxy) 9.167 ms 1 - 6 MB NPU
SRGAN ONNX w8a8 Qualcomm® QCS8450 10.898 ms 2 - 190 MB NPU
SRGAN ONNX w8a8 Qualcomm® Dragonwing™ IQ-9075 9.326 ms 2 - 5 MB NPU
SRGAN ONNX w8a8 Qualcomm® Dragonwing™ IQ-X7181 9.596 ms 1 - 1 MB NPU
SRGAN ONNX w8a8 Qualcomm® Dragonwing™ Q-6690 90.949 ms 2 - 163 MB NPU
SRGAN ONNX w8a8 Qualcomm® Dragonwing™ Q-7790 10.471 ms 2 - 161 MB NPU
SRGAN ONNX w8a8 Qualcomm® Dragonwing™ Q-8750 4.117 ms 0 - 155 MB NPU
SRGAN ONNX w8a8 Snapdragon® 7 Gen 4 Mobile 10.471 ms 2 - 161 MB NPU
SRGAN ONNX w8a8 Snapdragon® 8 Elite Extreme Gen 6 Mobile 3.0 ms 0 - 57 MB NPU
SRGAN ONNX w8a8 Snapdragon® 8 Elite Gen 6 Mobile 3.072 ms 0 - 164 MB NPU
SRGAN QNN_DLC float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 8.213 ms 0 - 155 MB NPU
SRGAN QNN_DLC float Snapdragon® 8 Elite For Galaxy Mobile 9.828 ms 0 - 154 MB NPU
SRGAN QNN_DLC float Snapdragon® X2 Elite 9.719 ms 0 - 0 MB NPU
SRGAN QNN_DLC float Snapdragon® X Elite 22.483 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.039 ms 0 - 192 MB NPU
SRGAN QNN_DLC float Qualcomm® Dragonwing™ IQ-8275 33.298 ms 0 - 6 MB NPU
SRGAN QNN_DLC float Qualcomm® Dragonwing™ QCS8550 (Proxy) 21.175 ms 0 - 2 MB NPU
SRGAN QNN_DLC float Qualcomm® QCS8450 27.039 ms 0 - 192 MB NPU
SRGAN QNN_DLC float Qualcomm® Dragonwing™ IQ-9075 28.168 ms 2 - 7 MB NPU
SRGAN QNN_DLC float Qualcomm® Dragonwing™ IQ-X7181 22.483 ms 0 - 0 MB NPU
SRGAN QNN_DLC float Qualcomm® Dragonwing™ Q-8750 9.828 ms 0 - 154 MB NPU
SRGAN QNN_DLC float Qualcomm® SA7255P 115.029 ms 1 - 149 MB NPU
SRGAN QNN_DLC float Qualcomm® SA8295P 29.345 ms 0 - 149 MB NPU
SRGAN QNN_DLC float Snapdragon® 8 Elite Extreme Gen 6 Mobile 7.141 ms 0 - 45 MB NPU
SRGAN QNN_DLC float Snapdragon® 8 Elite Gen 6 Mobile 7.128 ms 0 - 155 MB NPU
SRGAN QNN_DLC w8a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 7.161 ms 0 - 178 MB NPU
SRGAN QNN_DLC w8a16 Snapdragon® 8 Elite For Galaxy Mobile 8.255 ms 0 - 173 MB NPU
SRGAN QNN_DLC w8a16 Snapdragon® X2 Elite 8.601 ms 0 - 0 MB NPU
SRGAN QNN_DLC w8a16 Snapdragon® X Elite 19.333 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.287 ms 0 - 206 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ QCS6490 39.222 ms 0 - 4 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-8275 13.3 ms 0 - 5 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 18.3 ms 0 - 4 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® QCS8450 20.287 ms 0 - 206 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-9075 19.321 ms 0 - 4 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-X7181 19.333 ms 0 - 0 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-6690 205.09 ms 0 - 178 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-7790 20.62 ms 0 - 167 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-8750 8.255 ms 0 - 173 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® SA7255P 32.259 ms 0 - 162 MB NPU
SRGAN QNN_DLC w8a16 Qualcomm® SA8295P 22.324 ms 0 - 168 MB NPU
SRGAN QNN_DLC w8a16 Snapdragon® 7 Gen 4 Mobile 20.62 ms 0 - 167 MB NPU
SRGAN QNN_DLC w8a16 Snapdragon® 8 Elite Extreme Gen 6 Mobile 5.966 ms 0 - 71 MB NPU
SRGAN QNN_DLC w8a16 Snapdragon® 8 Elite Gen 6 Mobile 6.246 ms 0 - 170 MB NPU
SRGAN QNN_DLC w8a8 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 3.404 ms 0 - 41 MB NPU
SRGAN QNN_DLC w8a8 Snapdragon® 8 Elite For Galaxy Mobile 3.873 ms 0 - 44 MB NPU
SRGAN QNN_DLC w8a8 Snapdragon® X2 Elite 3.917 ms 0 - 0 MB NPU
SRGAN QNN_DLC w8a8 Snapdragon® X Elite 9.649 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.167 ms 0 - 68 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® Dragonwing™ QCS6490 16.62 ms 2 - 5 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® Dragonwing™ IQ-8275 6.147 ms 0 - 4 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® Dragonwing™ QCS8550 (Proxy) 8.917 ms 0 - 47 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® QCS8450 10.167 ms 0 - 68 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® Dragonwing™ IQ-9075 9.044 ms 0 - 3 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® Dragonwing™ IQ-X7181 9.649 ms 0 - 0 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® Dragonwing™ Q-6690 84.534 ms 1 - 148 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® Dragonwing™ Q-7790 10.467 ms 0 - 150 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® Dragonwing™ Q-8750 3.873 ms 0 - 44 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® SA7255P 15.567 ms 0 - 44 MB NPU
SRGAN QNN_DLC w8a8 Qualcomm® SA8295P 11.413 ms 0 - 44 MB NPU
SRGAN QNN_DLC w8a8 Snapdragon® 7 Gen 4 Mobile 10.467 ms 0 - 150 MB NPU
SRGAN QNN_DLC w8a8 Snapdragon® 8 Elite Extreme Gen 6 Mobile 2.972 ms 0 - 49 MB NPU
SRGAN QNN_DLC w8a8 Snapdragon® 8 Elite Gen 6 Mobile 3.001 ms 0 - 48 MB NPU
SRGAN TFLITE float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 8.433 ms 3 - 163 MB NPU
SRGAN TFLITE float Snapdragon® 8 Elite For Galaxy Mobile 10.282 ms 3 - 157 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.579 ms 3 - 198 MB NPU
SRGAN TFLITE float Qualcomm® Dragonwing™ IQ-8275 34.011 ms 3 - 13 MB NPU
SRGAN TFLITE float Qualcomm® Dragonwing™ QCS8550 (Proxy) 21.761 ms 3 - 5 MB NPU
SRGAN TFLITE float Qualcomm® SA8775P 28.759 ms 3 - 160 MB NPU
SRGAN TFLITE float Qualcomm® SA8650P 28.759 ms 3 - 160 MB NPU
SRGAN TFLITE float Qualcomm® SA8255P 28.759 ms 3 - 160 MB NPU
SRGAN TFLITE float Qualcomm® QCS8450 27.579 ms 3 - 198 MB NPU
SRGAN TFLITE float Qualcomm® Dragonwing™ IQ-9075 28.707 ms 1 - 10 MB NPU
SRGAN TFLITE float Qualcomm® Dragonwing™ Q-8750 10.282 ms 3 - 157 MB NPU
SRGAN TFLITE float Qualcomm® SA8295P 29.298 ms 3 - 155 MB NPU
SRGAN TFLITE float Snapdragon® 8 Elite Extreme Gen 6 Mobile 7.174 ms 3 - 53 MB NPU
SRGAN TFLITE float Snapdragon® 8 Elite Gen 6 Mobile 7.426 ms 3 - 163 MB NPU
SRGAN TFLITE w8a8 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 3.403 ms 0 - 42 MB NPU
SRGAN TFLITE w8a8 Snapdragon® 8 Elite For Galaxy Mobile 3.884 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.142 ms 1 - 71 MB NPU
SRGAN TFLITE w8a8 Qualcomm® Dragonwing™ QCS6490 16.989 ms 1 - 6 MB NPU
SRGAN TFLITE w8a8 Qualcomm® Dragonwing™ IQ-8275 6.174 ms 1 - 6 MB NPU
SRGAN TFLITE w8a8 Qualcomm® Dragonwing™ QCS8550 (Proxy) 8.845 ms 1 - 3 MB NPU
SRGAN TFLITE w8a8 Qualcomm® SA8775P 9.33 ms 1 - 49 MB NPU
SRGAN TFLITE w8a8 Qualcomm® SA8650P 9.33 ms 1 - 49 MB NPU
SRGAN TFLITE w8a8 Qualcomm® SA8255P 9.33 ms 1 - 49 MB NPU
SRGAN TFLITE w8a8 Qualcomm® QCS8450 10.142 ms 1 - 71 MB NPU
SRGAN TFLITE w8a8 Qualcomm® Dragonwing™ IQ-9075 9.101 ms 1 - 6 MB NPU
SRGAN TFLITE w8a8 Qualcomm® Dragonwing™ Q-6690 87.674 ms 1 - 149 MB NPU
SRGAN TFLITE w8a8 Qualcomm® Dragonwing™ Q-7790 10.303 ms 1 - 152 MB NPU
SRGAN TFLITE w8a8 Qualcomm® Dragonwing™ Q-8750 3.884 ms 0 - 40 MB NPU
SRGAN TFLITE w8a8 Qualcomm® SA7255P 15.638 ms 1 - 47 MB NPU
SRGAN TFLITE w8a8 Qualcomm® SA8295P 11.544 ms 1 - 45 MB NPU
SRGAN TFLITE w8a8 Snapdragon® 7 Gen 4 Mobile 10.303 ms 1 - 152 MB NPU
SRGAN TFLITE w8a8 Snapdragon® 8 Elite Extreme Gen 6 Mobile 2.968 ms 0 - 50 MB NPU
SRGAN TFLITE w8a8 Snapdragon® 8 Elite Gen 6 Mobile 3.029 ms 0 - 49 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