Downloads · 30 days
23
25% of all-time downloads
mlboydaisuke/LaMa-Dilated-LiteRT
LaMa-Dilated-LiteRT is a image-to-image model from mlboydaisuke. Use it when you need one image transformed into another. It is set up for litert. The card lists the license as apache-2.0.
⚠️ Archived / not maintained. This .tflite was produced by Qualcomm AI Hub's compiler, not by the Google-official LiteRT converter (litert-torch / ai-edge-torch), and LaMa is no longer part of my maintained conversion…
Downloads · 30 days
23
25% of all-time downloads
All-time downloads
91
Public
Repo size
183 MB
Likes
0
Public
Click a slice to open those files.
.tflite183 MB · 100%
From the Hugging Face model README
⚠️ Archived / not maintained. This
.tflitewas produced by Qualcomm AI Hub's compiler, not by the Google-official LiteRT converter (litert-torch/ai-edge-torch), and LaMa is no longer part of my maintained conversion lineup. The artifact is kept for reference only (it was verified bit-identical to the qai_hub PyTorch reference, corr = 1.0). For maintained, reproducible LiteRT conversions see my other repos.
On-device LiteRT (.tflite) build of
LaMa-Dilated large-mask image inpainting: paint a mask over an unwanted
object and the model fills the region naturally.
This is the LaMa-Dilated variant (FFT blocks replaced with dilated convolutions for GPU friendliness), obtained from Qualcomm AI Hub. It is a pure CNN — all 361 ops are LiteRT GPU-native (no Flex ops, no CPU fallback on Qualcomm GPUs).
| File | Size | Description |
|---|---|---|
lama_dilated.tflite | 174 MB | FP32 single-graph model |
[0, 1]):
image [1, 512, 512, 3] — RGBmask [1, 512, 512, 1] — single channel, 1 = region to inpaint, 0 = keeppainted_image [1, 512, 512, 3] — inpainted RGBThe model preserves the unmasked region exactly and only synthesizes inside the mask.
val model = CompiledModel.create(
context.assets, "lama_dilated.tflite",
CompiledModel.Options(Accelerator.GPU), null
)
val inputs = model.createInputBuffers()
val outputs = model.createOutputBuffers()
inputs[0].writeFloat(imageFloats) // [1,512,512,3] RGB [0,1]
inputs[1].writeFloat(maskFloats) // [1,512,512,1] 1=hole
model.run(inputs, outputs)
val painted = outputs[0].readFloat() // [1,512,512,3]
The graph contains 3 TRANSPOSE_CONV ops. These run on Qualcomm Adreno GPUs
(the hardware Qualcomm AI Hub optimized for). Some other GPU delegates may not
accept TRANSPOSE_CONV; verify on your target device.
.tflite from
Qualcomm AI Hub — lama_dilated..tflite for convenient on-device
use; all credit to the original authors and Qualcomm AI Hub.Want a different model on-device? Open a request — free, open weights only; the export and its measured numbers get published publicly.
<!-- /funnel:v1 -->