Remove Bg logo

Remove Bg

OrganizationPopular
ZJU-REAL
remove-bg

图片去背景 / 抠图 / 换背景:用 AI 语义分割把主体从背景抠出,输出透明 PNG,或直接换成纯色(电商白底)/ 新场景背景。无需绿幕。当用户说 去背景、抠图、抠图换背景、去掉背景、透明背景、白底图、换背景、抠人像、抠产品、扣图、KO图、商品白底 时使用。基于 shared/scripts/remove_bg.py(rembg u2net)。与 green-screen 区别:green-screen 处理绿幕视频,本 SKILL 处理任意图片;与 ecom-details-image 区别:那个出电商视觉方案,本 SKILL 只做抠图。

Overview

PublisherZJU-REAL
RepositoryEasel
Skill nameremove-bg
Stars
1.2K
Forks
175
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by ZJU-REAL on GitHub. Read the source before you install it.

Installation

Install the Remove Bg AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ZJU-REAL/Easel.git /tmp/Easel
mkdir -p .claude/skills
cp -r /tmp/Easel/skills/openclaw/remove-bg .claude/skills/remove-bg
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Remove Bg in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Remove Bg on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Remove Bg is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

图片去背景 / 抠图换背景

用 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.pyremove -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(默认)通用主体
u2netp轻量快速(质量略低)
u2net_human_seg人像专用
isnet-general-use更精细的通用分割
silueta体积小的通用模型

抠不干净/边缘毛糙时:换更精细的模型,或加 --alpha-matting(慢但边缘更好,适合头发/毛绒)。

规则

  1. 要透明背景必须输出 .png(jpg 不支持透明,脚本会自动改白底并提示)。
  2. 电商主图用 --bg-color white;换场景用 --bg-image(自动等比覆盖裁切)。
  3. 人像优先 u2net_human_seg,商品/通用用 u2net
  4. 抠图质量取决于主体与背景对比度;复杂/低对比图无法保证完美。
  5. 产物统一进 outputs/主题名/

参考来源

去背景用 rembg(u2net 系列显著性目标检测/分割模型)+ onnxruntime CPU 推理,是无 GPU 抠图的 主流方案。换背景合成用 Pillow alpha_composite。把模型加载、代理注入、背景合成封装成确定性脚本。

Frequently asked questions

What does the Remove Bg AI skill do?

图片去背景 / 抠图 / 换背景:用 AI 语义分割把主体从背景抠出,输出透明 PNG,或直接换成纯色(电商白底)/ 新场景背景。无需绿幕。当用户说 去背景、抠图、抠图换背景、去掉背景、透明背景、白底图、换背景、抠人像、抠产品、扣图、KO图、商品白底 时使用。基于 shared/scripts/remove_bg.py(rembg u2net)。与 green-screen 区别:green-screen 处理绿幕视频,本 SKILL 处理任意图片;与 ecom-details-image 区别:那个出电商视觉方案,本 SKILL 只做抠图。

Why use Remove Bg on TypingMind?

Because you install it once and use it with any model. Remove Bg is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Remove Bg in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ZJU-REAL/Easel/tree/main/skills/openclaw/remove-bg. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Remove Bg?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Remove Bg?

As many as you like. As long as a model supports skills, you can use Remove Bg with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Remove Bg AI skill free?

Yes. It is published on GitHub by ZJU-REAL under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇