
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.51, ONNX Runtime 1.30.0 | Download |
| QNN_DLC | float | Universal | QAIRT 2.51 | Download |
| TFLITE | float | Universal | QAIRT 2.51 | 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.31 ms | 7 - 385 MB | NPU |
| LaMa-Dilated | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 42.758 ms | 35 - 393 MB | NPU |
| LaMa-Dilated | ONNX | float | Snapdragon® X2 Elite | 35.501 ms | 8 - 8 MB | NPU |
| LaMa-Dilated | ONNX | float | Snapdragon® X Elite | 76.935 ms | 91 - 91 MB | NPU |
| LaMa-Dilated | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 54.47 ms | 1 - 434 MB | NPU |
| LaMa-Dilated | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 108.647 ms | 11 - 427 MB | NPU |
| LaMa-Dilated | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 122.788 ms | 6 - 14 MB | NPU |
| LaMa-Dilated | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 76.411 ms | 10 - 13 MB | NPU |
| LaMa-Dilated | ONNX | float | Qualcomm® QCS8450 | 108.647 ms | 11 - 427 MB | NPU |
| LaMa-Dilated | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 106.561 ms | 7 - 15 MB | NPU |
| LaMa-Dilated | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 76.935 ms | 91 - 91 MB | NPU |
| LaMa-Dilated | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 42.758 ms | 35 - 393 MB | NPU |
| LaMa-Dilated | ONNX | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 28.487 ms | 10 - 361 MB | NPU |
| LaMa-Dilated | ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | 30.801 ms | 5 - 365 MB | NPU |
| LaMa-Dilated | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 33.753 ms | 0 - 358 MB | NPU |
| LaMa-Dilated | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 41.687 ms | 31 - 368 MB | NPU |
| LaMa-Dilated | QNN_DLC | float | Snapdragon® X2 Elite | 35.829 ms | 0 - 0 MB | NPU |
| LaMa-Dilated | QNN_DLC | float | Snapdragon® X Elite | 78.53 ms | 0 - 0 MB | NPU |
| LaMa-Dilated | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 53.486 ms | 0 - 423 MB | NPU |
| LaMa-Dilated | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 108.992 ms | 0 - 364 MB | NPU |
| LaMa-Dilated | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 123.12 ms | 0 - 6 MB | NPU |
| LaMa-Dilated | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 79.712 ms | 0 - 2 MB | NPU |
| LaMa-Dilated | QNN_DLC | float | Qualcomm® QCS8450 | 108.992 ms | 0 - 364 MB | NPU |
| LaMa-Dilated | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 108.94 ms | 2 - 7 MB | NPU |
| LaMa-Dilated | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 78.53 ms | 0 - 0 MB | NPU |
| LaMa-Dilated | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 41.687 ms | 31 - 368 MB | NPU |
| LaMa-Dilated | QNN_DLC | float | Qualcomm® SA8295P | 111.037 ms | 0 - 280 MB | NPU |
| LaMa-Dilated | QNN_DLC | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 27.725 ms | 0 - 340 MB | NPU |
| LaMa-Dilated | QNN_DLC | float | Snapdragon® 8 Elite Gen 6 Mobile | 31.276 ms | 0 - 347 MB | NPU |
| LaMa-Dilated | TFLITE | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 34.01 ms | 2 - 372 MB | NPU |
| LaMa-Dilated | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 41.892 ms | 30 - 381 MB | NPU |
| LaMa-Dilated | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 54.715 ms | 3 - 503 MB | NPU |
| LaMa-Dilated | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 108.088 ms | 4 - 448 MB | NPU |
| LaMa-Dilated | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 123.464 ms | 3 - 106 MB | NPU |
| LaMa-Dilated | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 80.487 ms | 3 - 291 MB | NPU |
| LaMa-Dilated | TFLITE | float | Qualcomm® SA8775P | 1398.137 ms | 0 - 23 MB | GPU |
| LaMa-Dilated | TFLITE | float | Qualcomm® SA8650P | 1398.137 ms | 0 - 23 MB | GPU |
| LaMa-Dilated | TFLITE | float | Qualcomm® SA8255P | 1398.137 ms | 0 - 23 MB | GPU |
| LaMa-Dilated | TFLITE | float | Qualcomm® QCS8450 | 108.088 ms | 4 - 448 MB | NPU |
| LaMa-Dilated | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 111.421 ms | 0 - 103 MB | NPU |
| LaMa-Dilated | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 41.892 ms | 30 - 381 MB | NPU |
| LaMa-Dilated | TFLITE | float | Qualcomm® SA7255P | 2058.93 ms | 2 - 26 MB | GPU |
| LaMa-Dilated | TFLITE | float | Qualcomm® SA8295P | 112.184 ms | 3 - 295 MB | NPU |
| LaMa-Dilated | TFLITE | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 27.998 ms | 3 - 355 MB | NPU |
| LaMa-Dilated | TFLITE | float | Snapdragon® 8 Elite Gen 6 Mobile | 31.159 ms | 2 - 363 MB | NPU |
License
- The license for the original implementation of LaMa-Dilated can be found here.
References
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.