Downloads · 30 days
0
fernandotonon/QtMeshEditor-lama-onnx
QtMeshEditor-lama-onnx is a image-to-image model from fernandotonon. Use it when you need one image transformed into another. It is set up for onnx. The card lists the license as apache-2.0.
Re-hosted ONNX export of LaMa (large-mask inpainting), used by QtMeshEditor to fill masked regions of a texture with plausible, seamlessly continued content (issue 1017).
Downloads · 30 days
0
Access
Public
Updated Sep 15, 2026
Repo size
208 MB
Likes
1
Public
Click a slice to open those files.
.onnx208 MB · 100%
From the Hugging Face model README
Re-hosted ONNX export of LaMa (large-mask inpainting), used by QtMeshEditor to fill masked regions of a texture with plausible, seamlessly continued content (issue #1017).
Carve/LaMa-ONNX.The upstream repo publishes two graphs. The plainly-named lama.onnx there is
broken — it fails ONNX Runtime shape inference on a DFT node (LaMa's
Fourier convolution) and cannot be loaded at all:
Op (DFT) [ShapeInferenceError] one-sided DFT requires real input
This repo hosts the working lama_fp32.onnx under the plain name
lama.onnx, which is what the application downloads.
Measured, not documented upstream:
| name | dtype | shape | range | |
|---|---|---|---|---|
| input | image | float32 | [1,3,512,512] | RGB scaled to [0,1] |
| input | mask | float32 | [1,1,512,512] | 1 = inpaint, 0 = keep |
| output | output | float32 | [1,3,512,512] | RGB already in 0..255 |
Note the asymmetry — in [0,1], out 0..255. Feeding an un-scaled image
produces a near-white result (measured mean 246.6 vs a correct 128.6) with no
error raised.
Spatial dims are fixed, so larger textures are processed in overlapping 512² tiles with a feathered seam blend.
On a thin-seam mask (the UV-bleed repair case), against ground truth the model never saw:
Downloaded automatically on first use by QtMeshEditor. Also available in the
aggregate repo
QtMeshEditor-models
under pbr/lama.onnx, which is the path the runtime fetches.
qtmesh material --texture albedo.png --inpaint --mask holes.png -o fixed.png