← 返回 Skills 市场
snowsand-enterprises

Watermark Remover

作者 snowsand-enterprises · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
45
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install snowsand-watermark-remover
功能描述
Remove watermarks from images using Florence-2 detection + IOPaint (LaMa) inpainting. Supports batch processing and manual/automatic modes.
使用说明 (SKILL.md)

Watermark Remover

Automatically detect and remove watermarks (especially MLS watermarks) from listing photos using Florence-2 for detection and IOPaint (LaMa) for inpainting.

Prerequisites

pip install iopaint transformers torch pillow
# Optional OCR fallback:
pip install paddleocr paddlepaddle

Models auto-download on first run (~560MB total): LaMa (~100MB) + Florence-2 (~460MB).

Quick Start

# Single image
python ~/.openclaw/workspace/skills/watermark-remover/scripts/remove_watermark.py \
  --input photo.jpg --output photo_clean.jpg

# Batch directory
python ~/.openclaw/workspace/skills/watermark-remover/scripts/remove_watermark.py \
  --input ./photos/ --output ./photos_clean/ --suffix _clean

Script: remove_watermark.py

  • --input — file or directory
  • --output — file or directory (created if missing)
  • --suffix — append to output filenames (e.g. _clean)
  • --modellama (default), mat, migan, or ldm
  • --devicecpu, cuda, or mps (auto-detected)
  • --confidence — detection threshold 0.0–1.0 (default: 0.5)
  • --padding — mask expansion in pixels (default: 10)
  • --dry-run — detect only, skip inpainting
  • --preserve-exif — copy EXIF metadata (default: on)

Supported: .jpg, .jpeg, .png, .webp, .tiff

Pipeline

  1. Detect — Florence-2 object detection (or PaddleOCR fallback) finds watermark regions
  2. Mask — Generate binary mask with padding around detected boxes
  3. Inpaint — IOPaint LaMa fills masked region with contextually appropriate pixels

Model Selection

  • LaMa (default) — Fast, excellent for small text watermarks. Handles ~90% of MLS watermarks.
  • MAT — Same speed/quality, different artifacts. Try if LaMa isn't clean enough.
  • MIGAN — Lightest (~30MB). For CPU-only or low-VRAM environments.
  • LDM — Slow but highest quality. For complex textures (patterned carpet, wallpaper).

Start with lama. Switch to ldm only if LaMa leaves visible artifacts.

Troubleshooting

  • Ghost text remains — increase --padding or try ldm
  • Blurry patch — switch to ldm for complex backgrounds
  • Watermark not detected — lower --confidence to 0.3
  • OOM — use --device cpu or migan model
  • Color mismatch — add --match-histograms (IOPaint ≥1.5)

Notes

  • Original images never modified in-place
  • Fully deterministic (LaMa is non-stochastic)
  • MLS watermarks (VMLS, CRMLS, etc.) are ideal LaMa use case: small, corner-positioned, semi-transparent text

See references/model-comparison.md for detailed model benchmarks.

安全使用建议
Install only if you intend to use Vmake's paid media-processing API and are comfortable sending selected images or videos to that service. Use it only on media you own or are authorized to modify, especially for watermarked or third-party content.
能力评估
Purpose & Capability
Watermark removal is a dual-use media editing capability, but it is clearly the stated purpose of the skill and is invoked on user-selected images or videos.
Instruction Scope
Runtime steps are specific to choosing a media task, checking required credentials, running the Vmake CLI wrapper, polling results, and delivering the processed media.
Install Mechanism
The metadata discloses Python 3 and required MT_AK/MT_SK credentials; no hidden package manager, broad install mutation, or undeclared persistence mechanism is evident from the artifact text.
Credentials
The skill sends media or media URLs to an external paid API and may deliver results through Feishu, Telegram, Discord, or similar channels; this is proportionate to the service but should be understood by users.
Persistence & Privilege
It uses API credentials, may use chat delivery credentials, can spawn a bounded worker for long video jobs, and records limited job history under the OpenClaw workspace; these behaviors are disclosed and tied to the workflow.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install snowsand-watermark-remover
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /snowsand-watermark-remover 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Florence-2 detection + IOPaint (LaMa) inpainting for MLS watermark removal, batch processing support
元数据
Slug snowsand-watermark-remover
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Watermark Remover 是什么?

Remove watermarks from images using Florence-2 detection + IOPaint (LaMa) inpainting. Supports batch processing and manual/automatic modes. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 45 次。

如何安装 Watermark Remover?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install snowsand-watermark-remover」即可一键安装,无需额外配置。

Watermark Remover 是免费的吗?

是的,Watermark Remover 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Watermark Remover 支持哪些平台?

Watermark Remover 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Watermark Remover?

由 snowsand-enterprises(@snowsand-enterprises)开发并维护,当前版本 v1.0.0。

💬 留言讨论