mirror of
https://github.com/wiltodelta/remove-ai-watermarks.git
synced 2026-07-12 11:06:33 +02:00
1a955b096a
- Replace reverse-alpha removal with localize -> fill (template-free mask + one shared cv2/MI-GAN/big-LaMa fill) for every mark; drops the colour-shift / dark-pit failure modes, version-robust to a moved or re-rendered mark - Separate perception/decision/action: engines report Candidates, a pure decide(candidates, Context) arbiter owns all policy (sensitivity + provenance + pill gate), remove_auto_marks orchestrates -- behavior-preserving (corpus 46/46/92) - Three orthogonal knobs replace --method: --backend cv2|migan|lama, --sensitivity auto|strict|assume-ai, provenance (auto from metadata) - Add high-level api.remove_visible / visible_provenance (lazy top-level re-export); visible --mark auto delegates to it so CLI and library share ONE path - Read+write HEIC/AVIF on the pixel path via pillow-heif; imwrite preserves the input format at max quality (JPEG q100/4:4:4); a no-op copies the original bytes verbatim - Lossless byte-level JPEG metadata strip (no DCT re-encode); consolidate the two remove_ai_metadata into one, delete legacy noai/cleaner + best_auto_mark - Bump 0.13.0 -> 0.14.0 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
18 lines
668 B
Bash
Executable File
18 lines
668 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
uv sync --all-extras
|
|
# uv-outdated / uv-secure run via uvx (isolated env), NOT `uv run`: resolving them
|
|
# inside the project env crashes (uv-secure -> "annotated-doc raised exception") and,
|
|
# with set -e, aborts the whole gate before ruff/pyright/tests. uvx sidesteps the
|
|
# in-project dependency conflict (see CLAUDE.md "Test and lint").
|
|
uvx uv-outdated
|
|
uvx uv-secure --ignore-unfixed
|
|
uv run ruff check --fix
|
|
uv run ruff format
|
|
# Scoped to src/: a full-project pyright run OOM-crashes node on this ML-heavy
|
|
# repo (see CLAUDE.md "Test and lint"); src/ is the authoritative strict gate.
|
|
uv run pyright src/
|
|
uv run pytest -n auto
|