N Nam Hoai Dat Motech.ksmart.com.es

Removing Watermarks from AI Video with MI-GAN, LaMA, ProPainter

Two still-image inpainting models applied per frame, plus the video model to reach for when the camera moves. A frame-safe workflow.

🇻🇳 Đọc bài viết này bằng Tiếng Việt nguyên bản: Đọc bản Tiếng Việt →

A corner badge or a floating watermark sitting on a clip you generated yourself is fixable, but the obvious fix ruins the shot. Blurring the region makes a soft hole; copying a nearby patch makes the background twitch on the next frame. Inpainting models exist for exactly this case — with one correction people repeat online: MI-GAN and LaMa are both still-image models. The video part comes from how you run them, or from a model built for video.

What the two image models actually are

LaMa (Samsung AI, WACV 2022) fills a masked region by reasoning about surrounding texture with an image-wide receptive field. It is strong on flat, repeating and periodic areas, so a badge over sky, a wall or a gradient disappears cleanly, and it generalises to resolutions far above its training size.

MI-GAN (ICCV 2023) is a mobile-scale inpainting GAN — roughly an order of magnitude smaller and cheaper than heavyweight models, designed to run on a phone. Its selling point is speed per frame, which matters when you have hundreds of frames to push through.

Neither model looks at neighbouring frames. Frame-to-frame consistency is your job, or a video model's.

Choosing the route before you start

Situation Route
Badge over a locked-off or static background LaMA or MI-GAN per frame, mask reused
Single poster frame or cover Either image model, highest quality setting
Camera or subject moves under the badge Video inpainting model such as ProPainter
One stubborn frame after a video pass Patch it with an image model

A dedicated video model — ProPainter and similar propagation-based tools — is what carries background detail across frames, because it was built to make neighbouring frames agree.

Preparing the frame sequence

Export the clip as individual frames before touching anything. Number them in order and keep the original video untouched, because the fastest way to lose an afternoon is re-running a long job over frames that were already partly edited.

Work at full resolution. Repairing a half-size proxy and scaling up afterwards brings back exactly the softness you were trying to remove.

Masking the badge by hand first

Draw the mask slightly larger than the badge itself, with a small feather on the edge. A mask that traces the logo tightly leaves a halo of its outline behind, and the halo is more noticeable than the original mark.

If the badge sits in the same corner for the whole clip, mask one frame, copy the mask, and confirm it still lines up. Only then run the batch. If the badge moves, the mask has to move with it — track it, or hand-adjust keyframes, before any batch runs.

Running it as a batch

If you are using IOPaint, the open-source wrapper that ships both models, the whole loop is terminal commands:

pip install iopaint
iopaint start --model lama

The local web UI opens, you paint the mask, and step through frames; batch mode runs a folder of images with the same mask. MI-GAN uses the same interface with --model migan and is the faster of the two when quality on a given frame is close.

Keeping the motion consistent across frames

The classic failure is crawling texture: each frame was filled independently, so the invented background disagrees with its neighbours. Three defences, in order of preference: keep the background static under the mask; use a video model that propagates across frames; or smooth the filled region across adjacent frames with a light median blend so single-frame disagreements cancel out.

A spot check across the first, middle and last second catches the problem before the viewer does.

A short checklist before export

  • Frames exported in order at full resolution.
  • Mask feathered and slightly oversized, and tracked if the badge moves.
  • Static background = image model per frame; moving background = video model.
  • A spot check across the first, middle and last second.
  • The untouched original kept somewhere safe.

— Nam Hoai (Nam Hoài Đất Mỏ)

N
Nam Hoai Dat Mo
AI & DATA ENGINEERING

AI & Data enthusiast who loves explaining complex tech in plain English. Sharing practical tool reviews, prompt guides, and digital creation workflows.