mirror of
https://github.com/wiltodelta/remove-ai-watermarks.git
synced 2026-06-05 10:38:00 +02:00
bc3228d387
Add deterministic, CPU-only removal of the visible Doubao "豆包AI生成" mark and
a position-agnostic region eraser for any other visible watermark/logo.
- doubao_engine.py: locate (geometry, scales with width) + polarity-aware
white-top-hat glyph mask + cv2 inpaint; coverage-gated detection and a
dense-text safety guard. No GPU, ~30ms.
- region_eraser.py + `erase` command: inpaint arbitrary --region box(es).
Default cv2 backend (no deps); optional big-LaMa via onnxruntime (`lama`
extra, Carve/LaMa-ONNX, model downloaded on first use, never bundled).
- cli `visible --mark auto|gemini|doubao`: auto routes by detector confidence.
- tests for both engines; seed previously-unseeded CLI image fixtures to stop
the Doubao detector flaking on random corners.
- .gitignore: doubao_capture/{seeds,captures} scratch (alpha-map calibration).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
44 lines
869 B
Plaintext
44 lines
869 B
Plaintext
# Dependencies
|
|
.venv/
|
|
__pycache__/
|
|
*.egg-info/
|
|
dist/
|
|
build/
|
|
|
|
# Environment secrets
|
|
.env
|
|
|
|
# OS files
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# IDE
|
|
.idea/
|
|
.vscode/
|
|
*.swp
|
|
*.swo
|
|
|
|
# Test results
|
|
data/results/
|
|
|
|
# SynthID corpus reference fills (synthetic black/white calibration tiles,
|
|
# regenerable; the labeled pos/neg/cleaned images ARE tracked, see README)
|
|
data/synthid_corpus/refs/
|
|
|
|
# Reference materials
|
|
_refs/
|
|
|
|
# Downloaded model weights
|
|
yolov8n.pt
|
|
.coverage
|
|
|
|
# Claude Code local settings
|
|
.claude/settings.local.json
|
|
|
|
# Doubao watermark calibration (local only; ship only the derived alpha-map asset).
|
|
# Synthetic seeds + raw Doubao captures are regenerable and not committed.
|
|
# Non-ours reference artifacts go in any _refs/ dir (already ignored above): usable
|
|
# locally for bootstrap/validation, never redistributed in the repo.
|
|
data/doubao_capture/seeds/
|
|
data/doubao_capture/captures/
|