remove-bg SKILL.md skillA
remove-bg from zju-real/easel is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add zju-real/easel/remove-bg@git:20261012.0d53744Pins git:20261012.0d53744 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- zju-real/easel
- Path
skills/builtin/remove-bg/SKILL.md- Versions recorded
- 1
- Latest version
- git:20261012.0d53744, committed Oct 12, 2026
- Size
- 3,370 bytes
- Repository stars
- 4,469
- License
- Apache-2.0
图片去背景 / 抠图 / 换背景:用 AI 语义分割把主体从背景抠出,输出透明 PNG,或直接换成纯色(电商白底)/ 新场景背景。无需绿幕。当用户说 去背景、抠图、抠图换背景、去掉背景、透明背景、白底图、换背景、抠人像、抠产品、扣图、KO图、商品白底 时使用。基于 shared/scripts/remove_bg.py(rembg u2net)。与 green-screen 区别:green-screen 处理绿幕视频,本 SKILL 处理任意图片;与 ecom-details-image 区别:那个出电商视觉方案,本 SKILL 只做抠图。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 图片去背景 / 抠图换背景 > 用 rembg(AI 语义分割)把主体抠出,输出透明 PNG 或换新背景。无需绿幕。全部走 > `skills/shared/scripts/remove_bg.py`。 > 绿幕**视频**抠像见 **green-screen**;电商视觉方案见 **ecom-details-image**; > 常规缩放/裁切/水印见 **image-editing**。 ## 前置 首次运行自动下载模型(~4-170MB,视模型而定),需外网代理(脚本读 `EASEL_PROXY`/`http(s)_proxy`,未设则直连)。先自检: ```bash python skills/shared/scripts/remove_bg.py check ``` ## 输入 | 字段 | 必填 | 说明 | |------|------|------| | 图片 | 是 | 要抠图的图片(没给就问) | | 输出背景 | 否 | 透明(默认)/ 纯色 / 换图片背景 | | 模型 | 否 | 通用 / 人像 / 精细,见下表 | ## 输出(`outputs/主题名/`) - 抠好的图片(透明用 `.png`) - 报告:所用模型、背景形态 ## 执行步骤 脚本路径(相对项目根):`skills/shared/scripts/remove_bg.py`(`remove -h` 看参数)。 ```bash # 透明背景(务必输出 .png) python skills/shared/scripts/remove_bg.py remove -i product.jpg \ -o outputs/主题名/cutout.png # 电商白底主图 python skills/shared/scripts/remove_bg.py remove -i product.jpg \ -o outputs/主题名/white.jpg --bg-color white # 换新场景背景 python skills/shared/scripts/remove_bg.py remove -i person.jpg \ -o outputs/主题名/scene.png --bg-image scene.jpg # 人像 + 毛发边缘细腻 python skills/shared/scripts/remove_bg.py remove -i portrait.jpg \ -o outputs/主题名/cut.png --model u2net_human_seg --alpha-matting ``` ## 模型选择 | 模型 | 适用 | |------|------| | `u2net`(默认) | 通用主体 | …
Read the whole file at its exact version.
How to install
mdr add zju-real/easel/remove-bg@sha256:6a5d23ee1f2c333eThe line at the top of this page pins the label git:20261012.0d53744, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_fjvpqotfed6y3gwo)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Oct 12, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3370 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
zju-real/easel · 4,469 stars · license Apache-2.0 · pushed 2026-11-02 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_fjvpqotfed6y3gwo GET https://markdownregistry.com/api/v1/resolve?ref=zju-real/easel/remove-bg GET https://markdownregistry.com/api/v1/blob/6a5d23ee1f2c333e5314f0a59b8a97de45b22e9764241e0058be46ca833b3dce
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.