LaMa
Resolution-robust large-mask inpainting with Fourier convolutions.
- Stars
- 10.4K
- Forks
- 1.1K
- Open issues
- 132
- Last commit
- 2025-02-05
Live from the GitHub API · updated 2026-11-30
What is LaMa?
LaMa (WACV 2022) is the inpainting model behind many object-removal tools. Its fast Fourier convolutions give it an image-wide receptive field, so it fills large masked areas with plausible textures even at high resolution.
Key features
- Large-mask inpainting
- Generalizes to ~2K resolution
- Pretrained models and training code
- Basis for IOPaint and similar tools
System requirements
- Platforms
- Linux · Windows · Docker
- GPU
- Optional
- Python
- 3.8+
How to install LaMa
Summarized from the project’s README. Projects change quickly — check the GitHub page for the latest instructions.
From source
- 1Clone and install the requirements.
git clone https://github.com/advimman/lama.git cd lama pip install -r requirements.txt - 2Download big-lama from the README link, then inpaint a folder of images + masks.
python3 bin/predict.py model.path=$(pwd)/big-lama indir=$(pwd)/input outdir=$(pwd)/output
Strengths
- Excellent object removal
- Lightweight
Limitations
- Research code; IOPaint is easier for end users
LaMa alternatives compared
| Software | Stars | License | Platforms | VRAM |
|---|---|---|---|---|
| LaMa Resolution-robust large-mask inpainting with Fourier convolutions. | 10.4K | Apache-2.0 | — | |
| IOPaint Erase objects, watermarks and people with AI inpainting (formerly Lama Cleaner). | 23.3K | Apache-2.0 | — | |
| Inpaint Anything Click an object to remove, fill or replace it using SAM + inpainting. | 7.7K | Apache-2.0 | — | |
| SAM 2 Segment Anything for images and video, with object tracking. | 20.3K | Apache-2.0 | — | |
| Upscayl Free desktop app that upscales images with AI. | 53.4K | AGPL-3.0 | — | |
| Real-ESRGAN Practical image and video super-resolution models. | 37.8K | BSD-3-Clause | — |
FAQ
Is LaMa free?
Yes — LaMa is open-source software released under the Apache-2.0 license. Check the license (and any model weight licenses) before commercial use.
Does LaMa run on Windows, Mac and Linux?
LaMa supports: Linux, Windows, Docker.
What hardware do I need for LaMa?
Optional
How do I install LaMa?
1. Clone and install the requirements. 2. Download big-lama from the README link, then inpaint a folder of images + masks.
What are the best LaMa alternatives?
Popular alternatives include IOPaint, Inpaint Anything, SAM 2, Upscayl. See the comparison table on this page.
Can I use LaMa online without installing it?
If you just want results, AiLoft runs top image models such as GPT Image 2.5 and Nano Banana Pro in the browser — no GPU or setup required.
Skip the install — generate images in your browser
No GPU, drivers or Python needed. Use GPT Image 2.5 and Nano Banana Pro online and compare them side by side.