CoolFace
Modelpublic

qualcomm/LaMa-Dilated

sourceHugging Faceapache-2.0updated 11d agoView on Hugging Face
9likes1.9kdownloads
Model Card

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.

RuntimePrecisionChipsetSDK VersionsDownload
ONNXfloatUniversalQAIRT 2.45, ONNX Runtime 1.27.1Download
QNN_DLCfloatUniversalQAIRT 2.45Download
TFLITEfloatUniversalQAIRT 2.45Download

For more device-specific assets and performance metrics, visit [LaMa-Dilated on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/lama_dilated).

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: Modelusecase.image_editing

Model Stats:

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

Performance Summary

ModelRuntimePrecisionChipsetInference Time (ms)Peak Memory Range (MB)Primary Compute Unit
LaMa-DilatedONNXfloatSnapdragon® X2 Elite36.378 ms8 - 8 MBNPU
LaMa-DilatedONNXfloatSnapdragon® X Elite77.556 ms90 - 90 MBNPU
LaMa-DilatedONNXfloatSnapdragon® 8 Gen 3 Mobile54.56 ms0 - 479 MBNPU
LaMa-DilatedONNXfloatSnapdragon® 8 Gen 1 Mobile133.618 ms2 - 527 MBNPU
LaMa-DilatedONNXfloatQualcomm® Dragonwing™ IQ-8275123.774 ms6 - 14 MBNPU
LaMa-DilatedONNXfloatQualcomm® Dragonwing™ QCS8550 (Proxy)77.985 ms0 - 94 MBNPU
LaMa-DilatedONNXfloatQualcomm® QCS8450133.618 ms2 - 527 MBNPU
LaMa-DilatedONNXfloatQualcomm® Dragonwing™ IQ-9075108.956 ms6 - 13 MBNPU
LaMa-DilatedONNXfloatQualcomm® Dragonwing™ IQ-X718177.556 ms90 - 90 MBNPU
LaMa-DilatedONNXfloatQualcomm® Dragonwing™ Q-875043.695 ms7 - 437 MBNPU
LaMa-DilatedONNXfloatSnapdragon® 8 Elite Mobile43.695 ms7 - 437 MBNPU
LaMa-DilatedONNXfloatSnapdragon® 8 Elite Gen 5 Mobile34.287 ms5 - 404 MBNPU
LaMa-DilatedQNN_DLCfloatSnapdragon® X2 Elite34.369 ms4 - 4 MBNPU
LaMa-DilatedQNN_DLCfloatSnapdragon® X Elite75.421 ms4 - 4 MBNPU
LaMa-DilatedQNN_DLCfloatSnapdragon® 8 Gen 3 Mobile52.33 ms0 - 454 MBNPU
LaMa-DilatedQNN_DLCfloatSnapdragon® 8 Gen 1 Mobile133.148 ms4 - 409 MBNPU
LaMa-DilatedQNN_DLCfloatQualcomm® Dragonwing™ IQ-8275120.514 ms4 - 13 MBNPU
LaMa-DilatedQNN_DLCfloatQualcomm® Dragonwing™ QCS8550 (Proxy)74.969 ms4 - 6 MBNPU
LaMa-DilatedQNN_DLCfloatQualcomm® SA8775P106.893 ms1 - 364 MBNPU
LaMa-DilatedQNN_DLCfloatQualcomm® SA8650P106.893 ms1 - 364 MBNPU
LaMa-DilatedQNN_DLCfloatQualcomm® SA8255P106.893 ms1 - 364 MBNPU
LaMa-DilatedQNN_DLCfloatQualcomm® QCS8450133.148 ms4 - 409 MBNPU
LaMa-DilatedQNN_DLCfloatQualcomm® Dragonwing™ IQ-9075106.306 ms4 - 13 MBNPU
LaMa-DilatedQNN_DLCfloatQualcomm® Dragonwing™ IQ-X718175.421 ms4 - 4 MBNPU
LaMa-DilatedQNN_DLCfloatQualcomm® Dragonwing™ Q-875040.187 ms1 - 367 MBNPU
LaMa-DilatedQNN_DLCfloatQualcomm® SA7255P403.099 ms1 - 364 MBNPU
LaMa-DilatedQNN_DLCfloatQualcomm® SA8295P109.591 ms1 - 300 MBNPU
LaMa-DilatedQNN_DLCfloatSnapdragon® 8 Elite Mobile40.187 ms1 - 367 MBNPU
LaMa-DilatedQNN_DLCfloatSnapdragon® 8 Elite Gen 5 Mobile32.351 ms4 - 397 MBNPU
LaMa-DilatedTFLITEfloatSnapdragon® 8 Gen 3 Mobile52.831 ms2 - 538 MBNPU
LaMa-DilatedTFLITEfloatSnapdragon® 8 Gen 1 Mobile133.005 ms4 - 462 MBNPU
LaMa-DilatedTFLITEfloatQualcomm® Dragonwing™ IQ-8275121.318 ms3 - 106 MBNPU
LaMa-DilatedTFLITEfloatQualcomm® Dragonwing™ QCS8550 (Proxy)74.971 ms1 - 293 MBNPU
LaMa-DilatedTFLITEfloatQualcomm® SA8775P106.491 ms3 - 380 MBNPU
LaMa-DilatedTFLITEfloatQualcomm® SA8650P106.491 ms3 - 380 MBNPU
LaMa-DilatedTFLITEfloatQualcomm® SA8255P106.491 ms3 - 380 MBNPU
LaMa-DilatedTFLITEfloatQualcomm® QCS8450133.005 ms4 - 462 MBNPU
LaMa-DilatedTFLITEfloatQualcomm® Dragonwing™ IQ-9075106.278 ms2 - 104 MBNPU
LaMa-DilatedTFLITEfloatQualcomm® Dragonwing™ Q-875040.533 ms2 - 388 MBNPU
LaMa-DilatedTFLITEfloatQualcomm® SA7255P404.481 ms3 - 382 MBNPU
LaMa-DilatedTFLITEfloatQualcomm® SA8295P110.158 ms3 - 311 MBNPU
LaMa-DilatedTFLITEfloatSnapdragon® 8 Elite Mobile40.533 ms2 - 388 MBNPU
LaMa-DilatedTFLITEfloatSnapdragon® 8 Elite Gen 5 Mobile32.436 ms3 - 418 MBNPU

License

  • The license for the original implementation of LaMa-Dilated can be found here.

References

Community