An ONNX export of Big-LaMa with dynamic image height and width. The model weights
come from the original big-lama.pt release used by IOPaint; they were not
retrained by RAWmakase.
image: float32, shape [1, 3, H, W], RGB values in [0, 1]; pixels inside
the removal area must be black.mask: float32, shape [1, 1, H, W]; 1 means fill this pixel and 0
means keep it.output: float32, shape [1, 3, H, W], RGB values in [0, 1].The exported graph accepts dynamic dimensions. Use image dimensions divisible
by 8. The RAWmakase runtime uses dimensions up to 1536 pixels on the long side
with GPU inference, or 1024 pixels on CPU. On a CPU at 1024 × 1024, the ONNX
export was compared with the source TorchScript model; the largest measured
pixel difference was 6e-5.
The source checkpoint is Big-LaMa from Sanster/models, used by IOPaint. The source project's license is Apache-2.0. The original model is described in LaMa: Resolution-robust Large Mask Inpainting with Fourier Convolutions by Suvorov et al.
RAWmakase exported the same weights to ONNX with dynamic spatial dimensions.
The graph rewrites Fourier transforms as cosine and sine matrix products so
ONNX Runtime can execute those operations on GPU and CPU providers. No model
fine-tuning or weight changes were made. The exporter is
scripts/models/export_lama_dynamic.py in the RAWmakase source tree.
This export is distributed under Apache-2.0. Retain the upstream attribution and license when redistributing it. RAWmakase's exporter code has its own repository license; this model card describes the license of the derived model artifact.
lama_dynamic_fp32.onnx206037952 bytes74d9ed1ec1895cbd35fea884acd413ece328073c0b918922ddff12c2d67c3f64