wiltodelta/remove-ai-watermarks

★ 6,335⑂ 592

Remove visible and invisible AI watermarks from images and video, and AI provenance metadata from images, video, and audio.

About wiltodelta/remove-ai-watermarks

wiltodelta/remove-ai-watermarks is an open-source project on GitHub, mainly written in Python. Remove visible and invisible AI watermarks from images and video, and AI provenance metadata from images, video, and audio. It currently holds 6,335 stars and 592 forks with 1 open issues, and was last pushed on 2026-11-09 (repository created 2026-03-25).

Project Overview

Git Homed tracks it on the Image Trending board and on the AI Image Trending list.

GitHub Repository Details

Repository wiltodelta/remove-ai-watermarks · default branch main · size 681859 KB · watchers 15 · source: GitHub REST API and repository README

README

Remove AI Watermarks

Remove AI provenance marks from images, video, and audio you generated yourself:

| Before | After | | --- | --- | | Image with a visible Gemini watermark | Image after visible watermark removal |

uv tool install "remove-ai-watermarks[visible]"   # CLI for visible marks and metadata
npx skills add wiltodelta/remove-ai-watermarks    # agent skill for Claude Code, Codex, Cursor, and other agents

Video support covers provenance identification, complete visible-plus-metadata cleaning, directory batches, 23 visible AI video marks (including Sora, Veo, Seedance, Doubao, Dola, Hailuo AI, Vidu, Wan, Qwen, PixVerse, Luma AI, HeyGen, Sync Labs, TikTok AI, and Kling AI) with selective GOP stream-copy, and oracle-certified 2D VAE (including --native-guide) and 3D Wan 2.1 regeneration for video SynthID and Seedance removal.

raiw.cc runs this library as a hosted service, with the GPU
included and nothing to install. Visible mark and metadata removal at Standard
output up to 12 MP are free there; original resolution above 12 MP and invisible
watermark removal are paid. Project page · by Victor Kuznetsov.

PyPI Python Downloads License Tests Sponsor skills.sh Glama MCP server

This is a research project on AI provenance signals, for lawful use on content
you own. It is provided as is, without warranty or liability, and each user is
responsible for how they use it. It does not target stock agency previews or
other watermarks that protect third party paid content. Some jurisdictions,
including China, restrict removing AI labels or supplying tools that do. See
scope, safety, and legal notes.

Choose what you want to do

| Goal | Command | GPU | | --- | --- | --- | | Find provenance signals and watermarks | identify | No | | Classify likely AI provider and model version from pixels (opt-in, not provenance) | classify-source | No | | Remove known visible AI marks | visible | No | | Erase a region you select | erase | No | | Strip AI metadata | metadata | No | | Identify supported video provenance | video identify | No | | Inspect audio metadata and compatible public-model evidence | audio identify (--scheme auto, audioseal, wavmark, perth, silentcipher, or all) | No | | Strip AI metadata from audio | audio metadata | No | | Process a detected compatible audio watermark and verify the saved file (.wav, .flac, .mp3, .m4a, .ogg, .oga, .opus, .aac, .mka) | audio invisible | No | | Strip AI metadata and optionally clean compatible audio watermarks | audio all / audio batch | No | | Process one or all audio tracks (--all-streams) while copying encoded video | video audio | No | | Remove visible marks, AI metadata, and opt-in video/audio invisible marks | video all | Depends on --invisible | | Strip AI metadata from video | video metadata | No | | Remove a registered visible AI mark from video | video visible | No | | Erase user-specified (x, y, w, h) regions across video frames | video erase / erase | No | | Process a directory of videos | video batch | Depends on mode | | Detect or disrupt public VideoSeal/PixelSeal/ChunkySeal video marks | video message (detect / identify / remove) | Optional | | Regenerate video pixels (--profile auto, calibrated SynthID, Seedance, or Wan 2.1 on CUDA/MPS) | video invisible | Recommended | | Identify C2PA text/HTML wrappers, VSRMark, and Unicode steganography | text identify | No | | Strip C2PA text/HTML wrappers, VSRMark, and Unicode steganography | text metadata | No | | Regenerate unlocked prose for best-effort token-watermark removal | text invisible | Recommended | | Strip text provenance and optionally regenerate prose spans | text all | Depends on --invisible | | Regenerate an image to disrupt invisible watermarks | invisible | Required (CUDA) | | Run visible, invisible, and metadata removal | all | Recommended | | Process a directory | batch | Depends on mode |

Install remove-ai-watermarks[text] for the default local Transformers text rewriter and its packaged language checker. Local text regeneration also supports optional Apple silicon MLX models through remove-ai-watermarks[text-mlx] and --rewriter-backend mlx --rewriter-model /path/to/checkpoint. An explicitly configured API rewriter is available through the Python API with remove-ai-watermarks[text-api]. The same extra connects the CLI to a locally served Ollama model. Review generated prose for factual fidelity. See the text CLI.

Experimental public VideoSeal, PixelSeal, and ChunkySeal video checks and processing use video message. Known-message checks and processing require an independently known encoder message; video message detect is a blind presence check. Neither certifies arbitrary unknown marks or provider deployments.

Microsoft Paint and Photos InvisMark declarations are routed automatically to pixel regeneration. The all command removes both the hidden pixel watermark and its linked C2PA manifest; metadata stripping alone removes only the manifest. A specialized Python API can inspect and disrupt the validated local Watermarker.dll payload without diffusion.

Installation modes

| Need | Install | | --- | --- | | Metadata inspection and stripping | remove-ai-watermarks | | 10-provider source-export & model-version classification | remove-ai-watermarks[source-classify] | | Visible detection and removal | remove-ai-watermarks[visible] | | Visible video processing | remove-ai-watermarks[video] | | Public VideoSeal/PixelSeal/ChunkySeal checks | remove-ai-watermarks[video-detect], add diffusion for VAE | | Video SynthID removal | remove-ai-watermarks[video,diffusion] | | Audio sample processing and spectral disruption | remove-ai-watermarks[audio] | | Compatible public audio watermark detection (AudioSeal) | remove-ai-watermarks[audio-detect] | | Neural audio codec resynthesis (EnCodec / DAC / SNAC) | remove-ai-watermarks[audio-codec] | | Torch-free DWT-DCT detection | remove-ai-watermarks[detect] | | Direct local Paint InvisMark disruption | remove-ai-watermarks[pixels] | | Invisible image removal (needs CUDA) | remove-ai-watermarks[qwen-zimage] | | Production removal and default classifier backends | remove-ai-watermarks[all] | | Optional OCR proposals for operator verification | remove-ai-watermarks[text-draft] |

Lower-level and specialized extras include pixels, heif, trustmark, migan, lama, diffusion, source-classify, audio-wavmark, audio-perth, and audio-silentcipher. The installation guide documents their exact dependency composition, Python compatibility, and model requirements.

Quick start

Install the metadata-focused default CLI:

uv tool install remove-ai-watermarks

Inspect an image:

remove-ai-watermarks identify image.png

For an abstaining, CPU-only 10-provider source-export and model-version classifier from pixels after metadata removal (classify_source and CLI classify-source), install source-classify. identify never runs it, and it is not a SynthID detector:

uv tool install --force "remove-ai-watermarks[source-classify]"
remove-ai-watermarks classify-source image.png
import remove_ai_watermarks as raiw

result = raiw.classify_source("image.png") print(result.label, result.version_subfamily, result.synthetic_detected, result.confidence)

Guide: source-pipeline classification. Model card and weights: wiltodelta/raiw-source-classify on Hugging Face and GitHub.

Signed provenance is the supported route for SynthID and identify reads it. There is no local SynthID pixel detector in the package. Research on a periodic lattice expert is in scripts/synthid_runtime/ and synthid-detector-research.md.

For visible watermark removal, install the pixel dependencies:

uv tool install --force "remove-ai-watermarks[visible]"

Then remove a known visible mark and AI metadata:

remove-ai-watermarks visible image.png -o clean.png

Strip metadata without running visible inpainting or diffusion:

remove-ai-watermarks metadata image.png --remove -o clean.png

Without -o this command overwrites the source in place.

Inspect or remove AI metadata from an MP4, MOV, M4V, WebM, MKV, AVI, or FLV file:

remove-ai-watermarks video metadata input.mp4 --check
remove-ai-watermarks video metadata input.mp4 --remove -o clean.mp4

The video metadata command does not transcode video or audio streams. Unlike the image command above, when -o is omitted it writes _clean and preserves the original. MP4 and MOV inspection includes the native TC260 AIGC tag in moov.udta.meta.keys/ilst, including a moov placed after the media payload, plus the QuickTime-form meta variants Doubao's iOS export writes (a bare meta box as a direct moov child, and a keyless hdlr=mdir metadata list). Keyed workflow and prompt entries in the same metadata-list structure are also detected and removed, including ComfyUI exports. MKV and WebM inspection reads the normative Segment.Tags.Tag.SimpleTag placement. AVI uses LIST/INFO/AIGC, while FLV uses script.onMetaData.AIGC. The non-ISOBMFF formats are remuxed with stream copy for removal.

Use the product-oriented video path to identify or clean a file:

uv tool install --force "remove-ai-watermarks[video]"
remove-ai-watermarks video identify input.mp4
remove-ai-watermarks video all input.mp4 -o clean.mp4

video identify also names invisible watermark hints from metadata and provider policy. These are separate from pixel detection and per-file removal verification.

video all removes a stable registered visible mark when present and always strips verified AI metadata. If neither signal is found, it still writes a same-container passthrough, so application callers get one predictable output contract. Proprietary invisible-video removal is excluded by default: --invisible opts into the lossy, oracle-certified video SynthID profile (with motion-compensated temporal stabilization enabled by default, --keep-fps to retain native frame rate, --native-guide for fast 512p-guided native-resolution 2D upscaling, and --wan-steps for fast 3D Wan 2.1 denoising), and --audio-invisible inspects and cleans compatible watermarked audio tracks in the same atomic pipeline.

Process a directory with the same contract:

remove-ai-watermarks video batch ./videos --mode all

Remove a supported visible video mark:

remove-ai-watermarks video visible input.mp4 -o clean.mp4
remove-ai-watermarks video visible veo.mp4 --mark veo -o veo_clean.mp4
remove-ai-watermarks video visible seedance.mp4 --mark seedance -o seedance_clean.mp4
remove-ai-watermarks video visible dola.mp4 --mark dola -o dola_clean.mp4
remove-ai-watermarks video visible hailuo.mp4 --mark hailuo -o hailuo_clean.mp4
remove-ai-watermarks video visible kling.mp4 --mark kling -o kling_clean.mp4

This path scans the complete sequence before changing pixels. It accepts only a mark that repeats at a stable position across adjacent frames, then reuses the same OpenCV, MI-GAN, or LaMa fill backends as image removal. Audio is copied without re-encoding and is allowed to reach its natural end; the video stream is transcoded because its pixels change. By default, a guarded optical-flow pass motion-aligns the preceding accepted fill and blends it only when the nearby source context agrees; use --no-temporal-consistency to disable it. The encoder preserves supported 8-bit and 10-bit HDR (yuv420p10le, bt2020nc, smpte2084/arib-std-b67) source chroma sampling, color tags, and MP4/MOV track timescale instead of relying on ffmpeg's implicit raw-BGR defaults. Variable frame intervals are preserved through a timestamped in-memory NUT bridge instead of being flattened to the average frame rate. Non-zero source start timestamps are retained together with the copied audio offset. The default --mark auto scans all providers in one decode pass and selects the first stable match in the specificity order shown below. Valid Google AI-video provenance breaks a Sora/Veo cross-match in favor of Veo when the diamond is nested in the Sora region or Veo persists through the complete clip while Sora does not. Pass an explicit mark to restrict detection to one provider. Sora covers the moving Sora 2 mascot, with or without the wordmark; mascot-only matches also require the complete two-eye shape. Veo covers both the current four-point diamond and the legacy Veo text. Seedance covers the fixed boxed AI label, Dola covers the fixed Dola AI text, Hailuo AI covers the composite MINIMAX | hailuo AI label, and Kling AI covers the bottom-right KLING AI or KlingAI label with its version suffix. A completed encode is published atomically. No output is written when no stable mark is found. Unsupported pixel formats are rejected before encoding rather than silently reduced to 8-bit SDR.

Apply the calibrated video-pixel SynthID-removal profile:

uv tool install --force "remove-ai-watermarks[video,diffusion]"
remove-ai-watermarks video invisible input.mp4 -o clean.mp4

This path regenerates the complete sequence with one latent-noise field shared across time, copies complete audio, strips source metadata, and publishes the completed encode atomically. The default noise_std=0.15 profile passed both the two-carrier calibration and a complete public eight-second Veo oracle check. Google does not publish a local decoder, so a fresh provider check remains useful for unusually important files or after provider changes, but it is not a product result state. The CLI therefore describes video-pixel regeneration instead of claiming a per-file SynthID verdict, and reports the copied audio watermark as UNVERIFIED.

For invisible watermark removal through the CLI or high-level API, install the qwen-zimage extra. An NVIDIA GPU is required: all diffusion profiles are CUDA-only, and there is no CPU or MPS fallback. The specialized local Paint API uses the pixels extra without CUDA.

uv tool install --force "remove-ai-watermarks[qwen-zimage]"
remove-ai-watermarks invisible image.png -o clean.png

If the local detectors cannot confirm an invisible watermark but you know the image came from an AI generator, add --force:

remove-ai-watermarks invisible image.png -o clean.png --force

Typography-heavy images can opt into the experimental verified-text post-pass. It accepts manually reviewed strings and line boxes or an operator-verified geometry-only manifest; it never treats raw OCR output as ground truth or runs automatically:

uv tool install --force "remove-ai-watermarks[text-restoration]"
remove-ai-watermarks invisible image.png -o clean.png \
  --text-manifest verified-lines.json --force

See the CLI guide for the manifest schema, compatibility restrictions, and oracle caveats.

See the installation guide for Homebrew, uv, optional features, and development setup.

Examples

Visible Gemini mark

The after raster at the top of this page is generated from the tracked before raster by the public path:

uv run remove-ai-watermarks visible demo_banana_before.png \
  --backend cv2 -o demo_banana_after.png

High quality invisible removal

qwen-zimage is the default profile: a Qwen-Image-2512 Lightning pass under Canny ControlNet, followed by SAM-masked Z-Image repair of any detected face. The alternative, sdxl-zimage, swaps the global stage for SDXL and keeps the same face stage. chroma-zimage uses the Apache-2.0 Chroma1 global pass with its own flat vendor floors; see docs/chroma1-engine-research.md for the calibration. An opt-in profile, qwen21-zimage, swaps the global stage for Qwen-Image-2.1 (with madebyollin/texture-fix-vae-for-qwen-image-2.1 and Qwen-Image-2.1-Fun-Controlnet-Union Canny); because Qwen/Qwen-Image-2.1 is released under the Qwen Research License, qwen21-zimage is for non-commercial research, evaluation, and personal use only (not for commercial use). --pipeline auto picks sdxl-zimage for Google, chroma-zimage for Microsoft, and qwen-zimage otherwise, keeping auto commercial-safe. All are CUDA only.

Since 0.57.0, qwen21-zimage includes bounded geometric alignment by default after the shared Qwen-2.1 global and face stages, accepting a result only when both source MSE and local LPIPS improve. It retains the Qwen Research License restrictions. Qualified text geometry can be supplied through the Python API; the CLI does not run automatic OCR. See the fidelity profile for limits and fallback behavior.

uv tool install --force "remove-ai-watermarks[qwen-zimage]"
remove-ai-watermarks invisible image.png -o clean.png --force

| OpenAI example before | OpenAI example after | | --- | --- | | OpenAI portrait grid before qwen-zimage | OpenAI portrait grid after qwen-zimage |

| Gemini example before | Gemini example after | | --- | --- | | Gemini sign before qwen-zimage | Gemini sign after qwen-zimage |

These exact output files were checked with the matching provider verifiers. That result applies to these files, not to every seed, image, or future watermark version.

Popular formats and invisible watermarks (images, video, audio, text)

One command (remove-ai-watermarks all -o ) handles visible marks, provenance-triggered invisible removal, and metadata stripping across images (PNG, JPG, WebP, HEIC, TIFF), video (MP4, MOV, M4V, WebM, MKV, AVI, FLV, including 10-bit HEVC/HDR), audio (WAV, FLAC, MP3, M4A, OGG, OGA, Opus, AAC, MKA), and text (MD, HTML, TXT):

# Images with invisible watermarks (InvisMark, TrustMark, SDXL DWT-DCT, SynthID)
remove-ai-watermarks all data/fixtures/provenance/microsoft-invismark.png -o microsoft_clean.png
remove-ai-watermarks all data/fixtures/provenance/adobe-trustmark-p.png -o firefly_clean.png
remove-ai-watermarks all data/fixtures/provenance/sdxl-dwt-dct.png -o sdxl_clean.png
remove-ai-watermarks all data/fixtures/provenance/recraft-v3.webp -o recraft_clean.webp

Video (Google Veo visible + SynthID video/audio; ByteDance Seedance 10-bit HEVC/HDR)

remove-ai-watermarks all data/fixtures/provenance/google-gemini-omni-app.mp4 -o veo_clean.mp4 remove-ai-watermarks all data/fixtures/provenance/dreamina-seedance-2-mini.mp4 -o seedance_clean.mp4 remove-ai-watermarks video message marked.mp4 -o clean.mp4 --scheme videoseal

Audio (AudioSeal, WavMark, Perth, SilentCipher, Google SynthID, ElevenLabs, Cartesia)

remove-ai-watermarks all track.wav -o track_clean.wav remove-ai-watermarks all speech.mp3 -o speech_clean.mp3 --vendor elevenlabs

See docs/examples.md for the complete format-by-format guide, or try the interactive presets in the Hugging Face Space.

Common recipes

Remove every detected visible mark

remove-ai-watermarks visible image.png -o clean.png

The default --mark auto checks all registered visible marks and removes every match. If the mark is visible to you but the detector misses it, select its region explicitly:

remove-ai-watermarks erase image.png \
  --region 1640,1930,400,100 \
  -o clean.png

--region uses x,y,width,height and may be repeated.

Use a learned fill backend

The visible extra uses OpenCV inpainting when no learned backend is installed. For more difficult backgrounds, the learned-backend extras include the same pixel dependencies automatically:

uv tool install --force "remove-ai-watermarks[migan]"
remove-ai-watermarks visible image.png -o clean.png --backend migan

```bash uv tool install --f

GitHub Stars & Activity

6,335Stars
592Forks
1Open issues
PythonLanguage

GitHub Popularity

GitHub stars6,335
Forks592
Open issues1
Primary languagePython
LicenseApache-2.0
Stars gained today0
Created2026-03-25
Last pushed2026-11-09

Trending History

Trending statusnot on today's boards

Related GitHub Projects

1
→
2

Comfy-Org / ComfyUI

Python★ 148,543⑂ 0
→
3

unslothai / unsloth

Python★ 80,212⑂ 0
→
4

ultralytics / ultralytics

Python★ 63,733⑂ 0
→
5

ultralytics / yolov5

Python★ 58,309⑂ 0
→
6

roboflow / supervision

Python★ 51,716⑂ 0
→
7

huggingface / diffusers

Python★ 34,972⑂ 0
→
8

ATH-MaaS / Pixelle-Video

Python★ 30,514⑂ 0
→

More Trending Repositories