mirror of
https://github.com/wiltodelta/remove-ai-watermarks.git
synced 2026-07-07 08:57:50 +02:00
0e5a4cbc54
- Add the Jimeng-basic top-left "AI生成" pill as a CAPTURE-LESS mark (pill_engine.py): synthetic-silhouette edge-NCC detect + inpaint-only removal. Gated in remove_auto_marks: kept only when Jimeng is confirmed (TC260 metadata OR the bottom-right "★ 即梦AI" wordmark fired -- the wordmark keeps recall on metadata-STRIPPED uploads) AND Doubao did not fire. - Add an inpaint-fallback removal path + MI-GAN ONNX backend (migan extra, MIT, ~28 MB / ~1 GB peak -- droplet-friendly) alongside big-LaMa. New --method auto|reverse-alpha|inpaint (shared across visible/all/batch) and erase --backend migan; footprint_mask on each engine. - auto is deterministic: reverse-alpha for capture marks (recovers exact pixels, lighter -- measured cleaner than MI-GAN on structured backgrounds) and inpaint only for the capture-less pill. - --mark auto now removes EVERY detected mark in one pass (remove_auto_marks), so a Jimeng-basic image's top-left pill AND bottom-right wordmark both clear. - Bump 0.12.1 -> 0.13.0. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
15 lines
583 B
Python
15 lines
583 B
Python
"""Remove-AI-Watermarks: Unified tool for removing visible and invisible AI watermarks."""
|
|
|
|
import os as _os
|
|
import warnings as _warnings
|
|
|
|
# transformers prints a noisy deprecation for the Siglip2ImageProcessorFast
|
|
# alias when it is imported (by the optional GPU/ML path). Silence it before
|
|
# any submodule pulls transformers in, so the CLI startup stays quiet. Uses
|
|
# setdefault so a user-set TRANSFORMERS_VERBOSITY still wins.
|
|
_os.environ.setdefault("TRANSFORMERS_VERBOSITY", "error")
|
|
_warnings.filterwarnings("ignore", message=r".*ImageProcessorFast.*")
|
|
|
|
|
|
__version__ = "0.13.0"
|