Skip to content

How-ToGPU

How to Remove Objects from Photos Locally with IOPaint

IOPaint is a free, open-source tool that uses AI models on your own PC to remove unwanted objects, people and watermarks from photos, with no uploading. Using the developers' documentation, we explain how to install it on Windows, when you need a GPU, which erase model to pick and how to batch process a folder.

By , Systems & Technical Editor

4 min read

How to Remove Objects from Photos Locally with IOPaint

Want to get rid of a stranger in the background, a bin, a watermark or a scratch on an old scan without uploading your photo to a website? IOPaint is a free and open-source tool that does it with AI models running on your own PC. Its developers describe it as an inpainting and outpainting tool that is fully self-hosted and supports CPU, GPU and Apple Silicon. This guide is based on IOPaint's own README and documentation.

What IOPaint can do

IOPaint runs as a small server on your PC and you use it through a web page in your browser. According to its documentation, it supports three kinds of job:

  • Erase: remove unwanted objects, defects, watermarks and people from an image using dedicated erase models.

  • Replace and outpaint: use Stable Diffusion inpainting models, such as PowerPaint and BrushNet, to replace objects or extend the picture beyond its edges.

  • Extras via plugins: Segment Anything for interactive object selection, RemoveBG for background removal, RealESRGAN for super resolution, and GFPGAN and RestoreFormer for face restoration.

It's licensed under Apache-2.0. One thing to know before you start: the project isn't updated often. The latest version on PyPI when we checked on 29 November 2026 was 1.6.0, uploaded in March 2025.

Step 1: Install IOPaint

There are two routes on Windows.

The Windows 1-click installer. IOPaint's documentation links to an installer package on Google Drive. Unzip it and you get three batch files: double-click win_setup.bat to install the dependencies the first time, win_config.bat to open a configuration page in your browser where you can pick the start-up model and model download folder, and win_update.bat when you want to update IOPaint. The developers warn that some Windows 11 users hit an error involving fgbemm.dll and link to a fix on their GitHub issues page.

Python and pip. If you already have Python installed, the documented install is:

pip3 install iopaint
iopaint start --model=lama --device=cpu --port=8080

Then open http://localhost:8080 in your browser. The developers say all models are downloaded automatically at start-up, and you can add --model-dir to choose where they're stored, which is handy if your C: drive is short of space.

Step 2: Decide between CPU and GPU

You don't need a graphics card for basic object removal: the start command above runs the LaMa model on the CPU. If you want to use a GPU, IOPaint's install page says you need to install the GPU version of PyTorch first. For NVIDIA cards the documented command installs PyTorch 2.1.2 built for CUDA 11.8. For AMD cards, the developers say the ROCm version only works on Linux, as PyTorch is not yet supported on Windows with ROCm. Once the GPU version of PyTorch is installed, change the --device=cpu part of the start command to your GPU; run iopaint start --help to see all the command-line options.

Our suggestion, not a tested result: the documented PyTorch version is now fairly old, so if it fails to use a very recent graphics card, installing a newer CUDA build of PyTorch from the PyTorch website is the usual thing to try. If you plan to use the heavier Stable Diffusion models for replacing objects, a card with plenty of video memory, such as the MSI RTX 5060 Ti 16GB Ventus 2X OC Plus, gives you more headroom. Our guide to how much VRAM you need explains why memory matters for AI models.

Step 3: Pick an erase model

IOPaint's models page recommends three erase models:

  • LaMa - recommended, and the default in the start command above.

  • MAT - recommended.

  • MIGAN - recommended, and the developers say it's minimal in size and needs the least resources.

It also lists LDM, ZITS, FcF and a Manga model for comic-style images. To try a different one, change the --model= value when you start IOPaint.

Step 4: Remove the object

With IOPaint open in your browser, load your photo, mark the area you want removed and let the erase model fill it in. If your photo is precious, work on a copy. Selecting fiddly shapes by hand can be slow, so the developers offer the Segment Anything plugin, which they say produces high-quality object masks from a click. Start IOPaint with it switched on:

iopaint start --enable-interactive-seg --interactive-seg-device=cuda

The developers' example uses an NVIDIA GPU (cuda); run iopaint start --help to see the other options if you don't have one.

Step 5: Batch process a folder

IOPaint can also run from the command line on a whole folder, which is useful for removing the same watermark or date stamp from many scans:

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

The --image folder holds your pictures and --mask holds a matching mask image for each one. The developers say that if --mask points to a single mask file, that mask is used for every image.

Where it fits

If you only need the odd quick fix and you're on Windows 11, the built-in Photos app has its own Generative erase tool, covered in our guide to the AI features in the Photos app. If you want to cut out a whole background rather than remove an object, see our best AI background remover apps, and for scratched or faded family photos try our guide to restoring old photos locally with CodeFormer.

The bottom line

IOPaint is a free, open-source way to remove objects, people and watermarks from photos on your own PC: install it with the Windows 1-click package or pip, start it with the LaMa model on your CPU, and mark what you want gone. A GPU isn't required for basic erasing, but it helps with the bigger Stable Diffusion models. Bear in mind that the project hasn't had a new release since March 2025.

In this article

Sources

  1. 01Sanster, IOPaint README on GitHub
  2. 02IOPaint, Install
  3. 03IOPaint, Windows 1-click Installer
  4. 04IOPaint, Models
  5. 05IOPaint, Interactive Segmentation plugin
  6. 06PyPI, iopaint package page

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

Best GPU for Blender in 2026

Best Picks

Best GPU for Blender in 2026

Building or upgrading a PC for Blender rendering? The GPU and its VRAM matter most. We pick the RTX 5070 Ti, RTX 5090, RTX 5060 Ti 16GB, Arc B580, RX 9070 XT and Radeon AI PRO R9700 using the Blender manual, official specs and Puget Systems' credited test results.

Hannah Vance8 min

DLAA vs DLSS: Which NVIDIA Setting Should You Use?

Versus

DLAA vs DLSS: Which NVIDIA Setting Should You Use?

DLAA and DLSS Super Resolution use the same NVIDIA AI model but do opposite jobs: DLSS renders at a lower resolution and upscales for more frames, while DLAA stays at native resolution and uses AI purely for anti-aliasing. Using NVIDIA's documentation, we compare image quality goals, performance, RTX support and models, and show how to enable DLAA with the NVIDIA app.

Callum Reid5 min

How to Set Up PCSX2 on Windows: Play Your PS2 Games on PC

How-To

How to Set Up PCSX2 on Windows: Play Your PS2 Games on PC

PCSX2 can play much of the PlayStation 2 library on a Windows PC at higher resolutions than the original console. Using PCSX2's official documentation, we explain the hardware you need, how to install it, how to dump the BIOS from your own PS2 and your game discs, which renderer to choose, how to save safely and what to check if games run slowly.

Marcus Thorne8 min

Best Local AI Video Translation and Dubbing Tools in 2026

Best Picks

Best Local AI Video Translation and Dubbing Tools in 2026

Free AI tools can now transcribe a video, translate it and dub it into another language on your own PC. We pick the best: pyVideoTrans, VideoLingo, OpenCreator (formerly KrillinAI) and SoniTranslate, comparing offline use, languages, voices, setup, licences and hardware from each project's official docs.

Hannah Vance5 min