Inpaint Anything
Click an object to remove, fill or replace it using SAM + inpainting.
- Stars
- 7.7K
- Forks
- 664
- Open issues
- 114
- Last commit
- 2026-08-22
Live from the GitHub API · updated 2026-11-30
What is Inpaint Anything?
Inpaint Anything combines Segment Anything for click-based masks with LaMa and Stable Diffusion inpainting, so you can remove objects, fill them with prompted content or replace backgrounds in images, video and 3D scenes.
Key features
- Click-to-segment masks via SAM
- Remove, fill or replace anything
- Video and 3D scene support
- Gradio demo
System requirements
- Platforms
- Linux · Windows
- GPU
- NVIDIA recommended
- Python
- 3.8+
How to install Inpaint Anything
Summarized from the project’s README. Projects change quickly — check the GitHub page for the latest instructions.
From source
- 1Clone, install dependencies and download the SAM and LaMa checkpoints listed in the README.
git clone https://github.com/geekyutao/Inpaint-Anything.git cd Inpaint-Anything python -m pip install -e segment_anything python -m pip install -r lama/requirements.txt
Strengths
- Intuitive click-based workflow
Limitations
- Research-grade setup
Inpaint Anything alternatives compared
| Software | Stars | License | Platforms | VRAM |
|---|---|---|---|---|
| Inpaint Anything Click an object to remove, fill or replace it using SAM + inpainting. | 7.7K | Apache-2.0 | — | |
| IOPaint Erase objects, watermarks and people with AI inpainting (formerly Lama Cleaner). | 23.3K | Apache-2.0 | — | |
| LaMa Resolution-robust large-mask inpainting with Fourier convolutions. | 10.4K | Apache-2.0 | — | |
| Segment Anything (SAM) Meta’s promptable segmentation model — click to cut out any object. | 55.2K | 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 Inpaint Anything free?
Yes — Inpaint Anything is open-source software released under the Apache-2.0 license. Check the license (and any model weight licenses) before commercial use.
Does Inpaint Anything run on Windows, Mac and Linux?
Inpaint Anything supports: Linux, Windows.
What hardware do I need for Inpaint Anything?
NVIDIA recommended
How do I install Inpaint Anything?
1. Clone, install dependencies and download the SAM and LaMa checkpoints listed in the README.
What are the best Inpaint Anything alternatives?
Popular alternatives include IOPaint, LaMa, Segment Anything (SAM), Upscayl. See the comparison table on this page.
Can I use Inpaint Anything 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.