opencv/inpainting_lama
By opencv · ↓ 0 · ♥ 5 · Updated 2025-06-20
What's in this repo
This page lists the files in opencv/inpainting_lama, including inpainting_lama_2025jan.onnx.
- 1 ONNX models (.onnx files)
- 11 files, including 2 .py, 2 .jpg, 1 .txt, 1 .md, 1 .cpp, 1 .onnx
- Last updated 2025-06-20
ONNX files
| File | Size | Download |
|---|---|---|
| inpainting_lama_2025jan.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
Lama
LaMa is a very lightweight yet powerful image inpainting model.
Notes:
- Model source: ONNX.
Requirements
Install latest OpenCV >=5.0.0 and CMake >= 3.22.1 to get started with.
Demo
Python
Run the following command to try the demo:
# usage
python demo.py --input /path/to/image
# get help regarding various parameters
python demo.py --help
C++
# A typical and default installation path of OpenCV is /usr/local
cmake -B build -D OPENCV_INSTALLATION_PATH=/path/to/opencv/installation .
cmake --build build
# usage
./build/demo --input=/path/to/image
# get help messages
./build/demo -h
Example outputs

License
All files in this directory are licensed under Apache License.
Reference
- https://github.com/advimman/lama
Files (11)
Related models
More from opencv
More models
No task type declared.