Image-to-Image
PyTorch
android

XLSR: Optimized for Qualcomm Devices

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

This is based on the implementation of XLSR 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 w8a8 Universal QAIRT 2.51, ONNX Runtime 1.30.0 Download
QNN_DLC float 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 XLSR 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 XLSR on GitHub for usage instructions.

Model Details

Model Type: Model_use_case.super_resolution

Model Stats:

  • Input resolution: 128x128
  • Model checkpoint: xlsr_3x_checkpoint
  • Model size (float): 115 KB
  • Model size (w8a8): 45.6 KB
  • Number of parameters: 28.0K

Performance Summary

Model Runtime Precision Chipset Inference Time (ms) Peak Memory Range (MB) Primary Compute Unit
XLSR ONNX float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 0.394 ms 0 - 27 MB NPU
XLSR ONNX float Snapdragon® 8 Elite For Galaxy Mobile 0.417 ms 0 - 28 MB NPU
XLSR ONNX float Snapdragon® X2 Elite 0.358 ms 8 - 8 MB NPU
XLSR ONNX float Snapdragon® X Elite 0.826 ms 8 - 8 MB NPU
XLSR ONNX float Snapdragon® 8 Gen 3 Mobile 0.584 ms 0 - 33 MB NPU
XLSR ONNX float Snapdragon® 8 Gen 1 Mobile 1.108 ms 0 - 41 MB NPU
XLSR ONNX float Qualcomm® Dragonwing™ IQ-8275 1.022 ms 0 - 4 MB NPU
XLSR ONNX float Qualcomm® Dragonwing™ QCS8550 (Proxy) 0.831 ms 0 - 2 MB NPU
XLSR ONNX float Qualcomm® QCS8450 1.108 ms 0 - 41 MB NPU
XLSR ONNX float Qualcomm® Dragonwing™ IQ-9075 1.04 ms 6 - 10 MB NPU
XLSR ONNX float Qualcomm® Dragonwing™ IQ-X7181 0.826 ms 8 - 8 MB NPU
XLSR ONNX float Qualcomm® Dragonwing™ Q-8750 0.417 ms 0 - 28 MB NPU
XLSR ONNX float Snapdragon® 8 Elite Extreme Gen 6 Mobile 0.366 ms 0 - 24 MB NPU
XLSR ONNX float Snapdragon® 8 Elite Gen 6 Mobile 0.451 ms 0 - 25 MB NPU
XLSR ONNX w8a8 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 0.237 ms 0 - 27 MB NPU
XLSR ONNX w8a8 Snapdragon® 8 Elite For Galaxy Mobile 0.255 ms 0 - 27 MB NPU
XLSR ONNX w8a8 Snapdragon® X2 Elite 0.219 ms 3 - 3 MB NPU
XLSR ONNX w8a8 Snapdragon® X Elite 0.536 ms 3 - 3 MB NPU
XLSR ONNX w8a8 Snapdragon® 8 Gen 3 Mobile 0.368 ms 0 - 35 MB NPU
XLSR ONNX w8a8 Snapdragon® 8 Gen 1 Mobile 0.662 ms 2 - 43 MB NPU
XLSR ONNX w8a8 Qualcomm® Dragonwing™ QCS6490 1.739 ms 0 - 3 MB NPU
XLSR ONNX w8a8 Qualcomm® Dragonwing™ IQ-8275 0.514 ms 0 - 4 MB NPU
XLSR ONNX w8a8 Qualcomm® Dragonwing™ QCS8550 (Proxy) 0.541 ms 0 - 2 MB NPU
XLSR ONNX w8a8 Qualcomm® QCS8450 0.662 ms 2 - 43 MB NPU
XLSR ONNX w8a8 Qualcomm® Dragonwing™ IQ-9075 0.622 ms 0 - 4 MB NPU
XLSR ONNX w8a8 Qualcomm® Dragonwing™ IQ-X7181 0.536 ms 3 - 3 MB NPU
XLSR ONNX w8a8 Qualcomm® Dragonwing™ Q-6690 2.08 ms 0 - 137 MB NPU
XLSR ONNX w8a8 Qualcomm® Dragonwing™ Q-7790 0.578 ms 0 - 25 MB NPU
XLSR ONNX w8a8 Qualcomm® Dragonwing™ Q-8750 0.255 ms 0 - 27 MB NPU
XLSR ONNX w8a8 Snapdragon® 7 Gen 4 Mobile 0.578 ms 0 - 25 MB NPU
XLSR ONNX w8a8 Snapdragon® 8 Elite Extreme Gen 6 Mobile 0.215 ms 0 - 27 MB NPU
XLSR ONNX w8a8 Snapdragon® 8 Elite Gen 6 Mobile 0.327 ms 0 - 27 MB NPU
XLSR QNN_DLC float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 0.314 ms 0 - 27 MB NPU
XLSR QNN_DLC float Snapdragon® 8 Elite For Galaxy Mobile 0.344 ms 0 - 25 MB NPU
XLSR QNN_DLC float Snapdragon® X2 Elite 0.498 ms 0 - 0 MB NPU
XLSR QNN_DLC float Snapdragon® X Elite 0.787 ms 0 - 0 MB NPU
XLSR QNN_DLC float Snapdragon® 8 Gen 3 Mobile 0.466 ms 0 - 34 MB NPU
XLSR QNN_DLC float Snapdragon® 8 Gen 1 Mobile 0.986 ms 0 - 41 MB NPU
XLSR QNN_DLC float Qualcomm® Dragonwing™ IQ-8275 0.825 ms 0 - 6 MB NPU
XLSR QNN_DLC float Qualcomm® Dragonwing™ QCS8550 (Proxy) 0.718 ms 0 - 2 MB NPU
XLSR QNN_DLC float Qualcomm® QCS8450 0.986 ms 0 - 41 MB NPU
XLSR QNN_DLC float Qualcomm® Dragonwing™ IQ-9075 0.866 ms 0 - 6 MB NPU
XLSR QNN_DLC float Qualcomm® Dragonwing™ IQ-X7181 0.787 ms 0 - 0 MB NPU
XLSR QNN_DLC float Qualcomm® Dragonwing™ Q-8750 0.344 ms 0 - 25 MB NPU
XLSR QNN_DLC float Qualcomm® SA8295P 1.124 ms 0 - 23 MB NPU
XLSR QNN_DLC float Snapdragon® 8 Elite Extreme Gen 6 Mobile 0.318 ms 0 - 26 MB NPU
XLSR QNN_DLC float Snapdragon® 8 Elite Gen 6 Mobile 0.378 ms 0 - 25 MB NPU
XLSR QNN_DLC w8a8 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 0.175 ms 0 - 28 MB NPU
XLSR QNN_DLC w8a8 Snapdragon® 8 Elite For Galaxy Mobile 0.214 ms 0 - 26 MB NPU
XLSR QNN_DLC w8a8 Snapdragon® X2 Elite 0.267 ms 0 - 0 MB NPU
XLSR QNN_DLC w8a8 Snapdragon® X Elite 0.477 ms 0 - 0 MB NPU
XLSR QNN_DLC w8a8 Snapdragon® 8 Gen 3 Mobile 0.238 ms 0 - 34 MB NPU
XLSR QNN_DLC w8a8 Snapdragon® 8 Gen 1 Mobile 0.456 ms 0 - 41 MB NPU
XLSR QNN_DLC w8a8 Qualcomm® Dragonwing™ QCS6490 1.432 ms 0 - 3 MB NPU
XLSR QNN_DLC w8a8 Qualcomm® Dragonwing™ IQ-8275 0.362 ms 0 - 4 MB NPU
XLSR QNN_DLC w8a8 Qualcomm® Dragonwing™ QCS8550 (Proxy) 0.386 ms 0 - 2 MB NPU
XLSR QNN_DLC w8a8 Qualcomm® QCS8450 0.456 ms 0 - 41 MB NPU
XLSR QNN_DLC w8a8 Qualcomm® Dragonwing™ IQ-9075 0.435 ms 0 - 3 MB NPU
XLSR QNN_DLC w8a8 Qualcomm® Dragonwing™ IQ-X7181 0.477 ms 0 - 0 MB NPU
XLSR QNN_DLC w8a8 Qualcomm® Dragonwing™ Q-6690 1.674 ms 0 - 23 MB NPU
XLSR QNN_DLC w8a8 Qualcomm® Dragonwing™ Q-7790 0.404 ms 0 - 24 MB NPU
XLSR QNN_DLC w8a8 Qualcomm® Dragonwing™ Q-8750 0.214 ms 0 - 26 MB NPU
XLSR QNN_DLC w8a8 Qualcomm® SA8295P 0.644 ms 0 - 23 MB NPU
XLSR QNN_DLC w8a8 Snapdragon® 7 Gen 4 Mobile 0.404 ms 0 - 24 MB NPU
XLSR QNN_DLC w8a8 Snapdragon® 8 Elite Extreme Gen 6 Mobile 0.178 ms 0 - 27 MB NPU
XLSR QNN_DLC w8a8 Snapdragon® 8 Elite Gen 6 Mobile 0.23 ms 0 - 25 MB NPU
XLSR TFLITE float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 0.781 ms 0 - 27 MB NPU
XLSR TFLITE float Snapdragon® 8 Elite For Galaxy Mobile 0.96 ms 0 - 26 MB NPU
XLSR TFLITE float Snapdragon® 8 Gen 3 Mobile 1.408 ms 0 - 34 MB NPU
XLSR TFLITE float Snapdragon® 8 Gen 1 Mobile 2.37 ms 0 - 42 MB NPU
XLSR TFLITE float Qualcomm® Dragonwing™ IQ-8275 2.009 ms 3 - 10 MB NPU
XLSR TFLITE float Qualcomm® Dragonwing™ QCS8550 (Proxy) 2.182 ms 0 - 2 MB NPU
XLSR TFLITE float Qualcomm® SA8775P 3.308 ms 0 - 26 MB GPU
XLSR TFLITE float Qualcomm® SA8650P 3.308 ms 0 - 26 MB GPU
XLSR TFLITE float Qualcomm® SA8255P 3.308 ms 0 - 26 MB GPU
XLSR TFLITE float Qualcomm® QCS8450 2.37 ms 0 - 42 MB NPU
XLSR TFLITE float Qualcomm® Dragonwing™ IQ-9075 2.369 ms 3 - 9 MB NPU
XLSR TFLITE float Qualcomm® Dragonwing™ Q-8750 0.96 ms 0 - 26 MB NPU
XLSR TFLITE float Qualcomm® SA7255P 7.698 ms 3 - 28 MB GPU
XLSR TFLITE float Qualcomm® SA8295P 2.873 ms 0 - 23 MB NPU
XLSR TFLITE float Snapdragon® 8 Elite Extreme Gen 6 Mobile 0.715 ms 0 - 27 MB NPU
XLSR TFLITE float Snapdragon® 8 Elite Gen 6 Mobile 1.156 ms 0 - 26 MB NPU
XLSR TFLITE w8a8 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 0.186 ms 0 - 28 MB NPU
XLSR TFLITE w8a8 Snapdragon® 8 Elite For Galaxy Mobile 0.218 ms 0 - 30 MB NPU
XLSR TFLITE w8a8 Snapdragon® 8 Gen 3 Mobile 0.265 ms 0 - 34 MB NPU
XLSR TFLITE w8a8 Snapdragon® 8 Gen 1 Mobile 0.474 ms 1 - 42 MB NPU
XLSR TFLITE w8a8 Qualcomm® Dragonwing™ QCS6490 1.131 ms 0 - 3 MB NPU
XLSR TFLITE w8a8 Qualcomm® Dragonwing™ IQ-8275 0.357 ms 0 - 4 MB NPU
XLSR TFLITE w8a8 Qualcomm® Dragonwing™ QCS8550 (Proxy) 0.4 ms 0 - 2 MB NPU
XLSR TFLITE w8a8 Qualcomm® SA8775P 3.87 ms 0 - 26 MB GPU
XLSR TFLITE w8a8 Qualcomm® SA8650P 3.87 ms 0 - 26 MB GPU
XLSR TFLITE w8a8 Qualcomm® SA8255P 3.87 ms 0 - 26 MB GPU
XLSR TFLITE w8a8 Qualcomm® QCS8450 0.474 ms 1 - 42 MB NPU
XLSR TFLITE w8a8 Qualcomm® Dragonwing™ IQ-9075 0.43 ms 0 - 4 MB NPU
XLSR TFLITE w8a8 Qualcomm® Dragonwing™ Q-6690 1.592 ms 0 - 24 MB NPU
XLSR TFLITE w8a8 Qualcomm® Dragonwing™ Q-7790 0.413 ms 0 - 24 MB NPU
XLSR TFLITE w8a8 Qualcomm® Dragonwing™ Q-8750 0.218 ms 0 - 30 MB NPU
XLSR TFLITE w8a8 Qualcomm® SA7255P 8.507 ms 4 - 28 MB GPU
XLSR TFLITE w8a8 Qualcomm® SA8295P 0.684 ms 0 - 24 MB NPU
XLSR TFLITE w8a8 Snapdragon® 7 Gen 4 Mobile 0.413 ms 0 - 24 MB NPU
XLSR TFLITE w8a8 Snapdragon® 8 Elite Extreme Gen 6 Mobile 0.184 ms 0 - 27 MB NPU
XLSR TFLITE w8a8 Snapdragon® 8 Elite Gen 6 Mobile 0.221 ms 0 - 26 MB NPU

License

  • The license for the original implementation of XLSR 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. 🙋 2 Ask for provider support

Paper for qualcomm/XLSR