Image-to-Image
PyTorch
backbone
android

LaMa-Dilated: Optimized for Qualcomm Devices

LaMa-Dilated is a machine learning model that allows to erase and in-paint part of given input image.

This is based on the implementation of LaMa-Dilated 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.27.1 Download
QNN_DLC float Universal QAIRT 2.50 Download
TFLITE float Universal QAIRT 2.50 Download

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

Model Details

Model Type: Model_use_case.image_editing

Model Stats:

  • Input resolution: 512x512
  • Model checkpoint: Dilated CelebAHQ
  • Model size (float): 174 MB
  • Number of parameters: 45.6M

Performance Summary

Model Runtime Precision Chipset Inference Time (ms) Peak Memory Range (MB) Primary Compute Unit
LaMa-Dilated ONNX float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 34.369 ms 7 - 383 MB NPU
LaMa-Dilated ONNX float Snapdragon® 8 Elite For Galaxy Mobile 43.298 ms 8 - 366 MB NPU
LaMa-Dilated ONNX float Snapdragon® X2 Elite 35.585 ms 8 - 8 MB NPU
LaMa-Dilated ONNX float Snapdragon® X Elite 77.369 ms 90 - 90 MB NPU
LaMa-Dilated ONNX float Snapdragon® 8 Gen 3 Mobile 54.337 ms 0 - 433 MB NPU
LaMa-Dilated ONNX float Snapdragon® 8 Gen 1 Mobile 109.352 ms 1 - 415 MB NPU
LaMa-Dilated ONNX float Qualcomm® Dragonwing™ IQ-8275 123.431 ms 6 - 14 MB NPU
LaMa-Dilated ONNX float Qualcomm® Dragonwing™ QCS8550 (Proxy) 77.828 ms 0 - 94 MB NPU
LaMa-Dilated ONNX float Qualcomm® QCS8450 109.352 ms 1 - 415 MB NPU
LaMa-Dilated ONNX float Qualcomm® Dragonwing™ IQ-9075 108.118 ms 8 - 15 MB NPU
LaMa-Dilated ONNX float Qualcomm® Dragonwing™ IQ-X7181 77.369 ms 90 - 90 MB NPU
LaMa-Dilated ONNX float Qualcomm® Dragonwing™ Q-8750 43.298 ms 8 - 366 MB NPU
LaMa-Dilated QNN_DLC float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 33.791 ms 1 - 359 MB NPU
LaMa-Dilated QNN_DLC float Snapdragon® 8 Elite For Galaxy Mobile 41.496 ms 1 - 337 MB NPU
LaMa-Dilated QNN_DLC float Snapdragon® X2 Elite 35.954 ms 4 - 4 MB NPU
LaMa-Dilated QNN_DLC float Snapdragon® X Elite 78.764 ms 4 - 4 MB NPU
LaMa-Dilated QNN_DLC float Snapdragon® 8 Gen 3 Mobile 53.42 ms 0 - 425 MB NPU
LaMa-Dilated QNN_DLC float Snapdragon® 8 Gen 1 Mobile 109.231 ms 1 - 364 MB NPU
LaMa-Dilated QNN_DLC float Qualcomm® Dragonwing™ IQ-8275 123.154 ms 4 - 14 MB NPU
LaMa-Dilated QNN_DLC float Qualcomm® Dragonwing™ QCS8550 (Proxy) 80.807 ms 4 - 7 MB NPU
LaMa-Dilated QNN_DLC float Qualcomm® SA8650P 106.893 ms 1 - 364 MB NPU
LaMa-Dilated QNN_DLC float Qualcomm® SA8255P 106.893 ms 1 - 364 MB NPU
LaMa-Dilated QNN_DLC float Qualcomm® QCS8450 109.231 ms 1 - 364 MB NPU
LaMa-Dilated QNN_DLC float Qualcomm® Dragonwing™ IQ-9075 109.691 ms 4 - 13 MB NPU
LaMa-Dilated QNN_DLC float Qualcomm® Dragonwing™ IQ-X7181 78.764 ms 4 - 4 MB NPU
LaMa-Dilated QNN_DLC float Qualcomm® Dragonwing™ Q-8750 41.496 ms 1 - 337 MB NPU
LaMa-Dilated QNN_DLC float Qualcomm® SA7255P 407.452 ms 1 - 335 MB NPU
LaMa-Dilated QNN_DLC float Qualcomm® SA8295P 111.274 ms 1 - 281 MB NPU
LaMa-Dilated TFLITE float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 34.009 ms 0 - 371 MB NPU
LaMa-Dilated TFLITE float Snapdragon® 8 Elite For Galaxy Mobile 41.616 ms 2 - 354 MB NPU
LaMa-Dilated TFLITE float Snapdragon® 8 Gen 3 Mobile 54.682 ms 1 - 504 MB NPU
LaMa-Dilated TFLITE float Snapdragon® 8 Gen 1 Mobile 108.074 ms 3 - 445 MB NPU
LaMa-Dilated TFLITE float Qualcomm® Dragonwing™ IQ-8275 122.909 ms 3 - 106 MB NPU
LaMa-Dilated TFLITE float Qualcomm® Dragonwing™ QCS8550 (Proxy) 82.18 ms 3 - 133 MB NPU
LaMa-Dilated TFLITE float Qualcomm® SA8650P 106.491 ms 3 - 380 MB NPU
LaMa-Dilated TFLITE float Qualcomm® SA8255P 106.491 ms 3 - 380 MB NPU
LaMa-Dilated TFLITE float Qualcomm® QCS8450 108.074 ms 3 - 445 MB NPU
LaMa-Dilated TFLITE float Qualcomm® Dragonwing™ IQ-9075 109.937 ms 2 - 104 MB NPU
LaMa-Dilated TFLITE float Qualcomm® Dragonwing™ Q-8750 41.616 ms 2 - 354 MB NPU
LaMa-Dilated TFLITE float Qualcomm® SA7255P 2069.116 ms 0 - 24 MB GPU
LaMa-Dilated TFLITE float Qualcomm® SA8295P 112.594 ms 0 - 290 MB NPU

License

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

Model tree for qualcomm/LaMa-Dilated

Finetunes
1 model

Paper for qualcomm/LaMa-Dilated