IOPaint/README.md
2024-01-24 22:00:01 +08:00

3.9 KiB

IOPaint

A free and open-source inpainting & outpainting tool powered by SOTA AI model.

total download version python version

Quick Start

IOPaint provides a convenient webui for using the latest AI models to edit your images. The installation process for IOPaint is also simple, requiring just two commands:

# 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
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.

You can also use IOPaint in the command line to batch process images:

iopaint run --model=lama --device=cpu \
--input=/path/to/image_folder \
--mask=/path/to/mask_folder \
--output=output_dir

--input is the folder containing input images, --mask is the folder containing corresponding mask images. When --mask is a path to a mask file, all images will be processed using this mask.

You can see more information about the available models and plugins supported by IOPaint below.

Features