Sanster /IOPaint
Image inpainting tool powered by SOTA AI Model. Remove any unwanted object, defect, people from your pictures or erase and replace(powered by stable diffusion) any thing on your pictures.
★ 23,286⑂ 2,568👁 7⑃ 67● 523▤ 58
+0
日增长
-12
周增长
-18
月增长
23,286
stars
2,568
forks
7
watchers
67
prs
523
issues
58
releases
README
IOPaint
A free and open-source inpainting & outpainting tool powered by SOTA AI model.
|Erase(LaMa)|Replace Object(PowerPaint)|
|-----|----|
| | |
|Draw Text(AnyText)|Out-painting(PowerPaint)|
|---------|-----------|
|||
Features
- Completely free and open-source, fully self-hosted, support CPU & GPU & Apple Silicon
- Windows 1-Click Installer
- OptiClean: macOS & iOS App for object erase
- Supports various AI models to perform erase, inpainting or outpainting task.
- Erase models: These models can be used to remove unwanted object, defect, watermarks, people from image.
- Diffusion models: These models can be used to replace objects or perform outpainting. Some popular used models include:
- runwayml/stable-diffusion-inpainting
- diffusers/stable-diffusion-xl-1.0-inpainting-0.1
- andregn/Realistic_Vision_V3.0-inpainting
- Lykon/dreamshaper-8-inpainting
- Sanster/anything-4.0-inpainting
- BrushNet
- PowerPaintV2
- Sanster/AnyText
- Fantasy-Studio/Paint-by-Example
- Plugins:
- Segment Anything: Accurate and fast Interactive Object Segmentation
- RemoveBG: Remove image background or generate masks for foreground objects
- Anime Segmentation: Similar to RemoveBG, the model is specifically trained for anime images.
- RealESRGAN: Super Resolution
- GFPGAN: Face Restoration
- RestoreFormer: Face Restoration
- FileManager: Browse your pictures conveniently and save them directly to the output directory.
Quick Start
Start webui
IOPaint provides a convenient webui for using the latest AI models to edit your images.
You can install and start IOPaint easily by running following command:
bash
In order to use GPU, install cuda version of pytorch first.
pip3 install torch==2.1.2 torchvision==0.16.2 --index-url https://download.pytorch.org/whl/cu118
AMD GPU users, please utilize the following command, only works on linux, as pytorch is not yet supported on Windows with ROCm.
pip3 install torch==2.1.2 torchvision==0.16.2 --index-url https://download.pytorch.org/whl/rocm5.6
pip3 install iopaint
iopaint start --model=lama --device=cpu --port=8080
That's it, you can start using IOPaint by visiting http://localhost:8080 in your web browser.
All models will be downloaded automatically at startup. If you want to change the download directory, you can add --model-dir. More documentation can be found here
You can see other supported models at here and how to use local sd ckpt/safetensors file at here.
Plugins
You can specify which plugins to use when starting the service, and you can view the commands to enable plugins by using iopaint start --help.
More demonstrations of the Plugin can be seen here
bash
iopaint start --enable-interactive-seg --interactive-seg-device=cuda
Batch processing
You can also use IOPaint in the command line to batch process images:
bash
iopaint run --model=lama --device=cpu \
--image=/path/to/image_folTop issues
#36Flask Server Stops listening,terminates itself17 comments · 2022-04-09#213I have problem with run "lama-clean"13 comments · 2023-02-13#80Issues while installing using pip13 comments · 2022-10-07#257How to update to v1 from One Click Installer12 comments · 2023-04-01#44Optimize the logic of the brush at the edge6 comments · 2022-04-20#469How to run locally?10 comments · 2024-03-03#262[BUG] defining custom model folder removes prior model's dir path9 comments · 2023-04-02#114pelase help. using on mac, installed everything via one click install/setup file and when running this happens9 comments · 2022-11-06
Discussions
#626phone support1 comments · 2025-02-22#625CUDA is not available on a laptop with an NVIDIA GPU0 comments · 2025-02-17#615Does IOPaint support Multi-GPU?0 comments · 2025-01-03#599Suggestion: Add Photoshop-Like Toolbar0 comments · 2024-11-19#564Watermark removal in batch mode1 comments · 2024-08-28#556google colab book dont works0 comments · 2024-08-10#540Bulk / batch feature2 comments · 2024-06-09#533How to access from internet?1 comments · 2024-05-28
Latest release
IOPaint-1.5.3 iopaint-1.5.3 2024-11-23- add --remove-bg-model briaai/RMBG-2.0 from: https://huggingface.co/briaai/RMBG-2.0 - add --remove-bg-device, device(cpu/cuda/mps) for remove background plugin, only supports briaai models(briaai/RMBG-1.4 and briaai/RMBG-2.0). For other remvoe-bg model(e.g Birefnet) you can install gpu version of rembg package to use gpu, see more at: https://github.com/danielgatis/rembg?tab=readme-ov-fileinstallation - fix --output-dir not work: https://github.com/Sanster/IOPaint/issues/597 - fix all 404 error in the terminal - fix remove-bg plugin requirements - Frontend - now support smaller brush