Remove checkerboard & white backgrounds from images — auto-detects AI fake-transparency vs solid backgrounds, produces real transparent PNGs. BiRefNet/rembg engines.
Python
0
2 commits
updated Aug 24, 2026
A portable Agent Skill that removes backgrounds from images to produce real transparent PNGs. Auto-detects and handles two background types:
The script auto-detects which type — you don't choose.
# Default: BiRefNet engine + feather 4 (best quality, needs GPU)
python scripts/remove_checkerboard.py input.png -o ./output --engine birefnet --feather 4
# Batch a folder (mixed checkerboard + white-bg images is fine)
python scripts/remove_checkerboard.py ./images -o ./output --engine birefnet --feather 4
# CPU-only (rembg, no GPU needed)
python scripts/remove_checkerboard.py input.png --engine rembg --feather 4
| Engine | Quality | GPU | Speed |
|---|---|---|---|
birefnet (default) | Best | Required | Slower |
rembg | Good | Not required | Faster |
remove-checkerboard/
├── SKILL.md Routing rules and detection logic
├── scripts/
│ ├── remove_checkerboard.py Core: auto-detect + remove background
│ └── test_remove_checkerboard.py Unit tests
└── references/
├── algorithm.md Detection algorithm explanation
├── engine-guide.md BiRefNet vs rembg engine comparison
└── tuning.md Feather / threshold tuning guide
可移植 Agent Skill,从图片中去除背景,生成真正的透明 PNG。自动识别处理两类背景:
脚本自动识别类型——无需手动选择。
# 默认:BiRefNet 引擎 + 羽化 4(最佳质量,需 GPU)
python scripts/remove_checkerboard.py input.png -o ./output --engine birefnet --feather 4
# 批量处理(棋盘格 + 白底混合图片可一起处理)
python scripts/remove_checkerboard.py ./images -o ./output --engine birefnet --feather 4
# 仅 CPU(rembg,无需 GPU)
python scripts/remove_checkerboard.py input.png --engine rembg --feather 4
| 引擎 | 质量 | GPU | 速度 |
|---|---|---|---|
birefnet(默认) | 最佳 | 必需 | 较慢 |
rembg | 良好 | 不需要 | 较快 |
MIT
Remove checkerboard & white backgrounds from images — auto-detects AI fake-transparency vs solid backgrounds, produces real transparent PNGs. BiRefNet/rembg engines.
Python
0
2 commits
updated Aug 24, 2026
A portable Agent Skill that removes backgrounds from images to produce real transparent PNGs. Auto-detects and handles two background types:
The script auto-detects which type — you don't choose.
# Default: BiRefNet engine + feather 4 (best quality, needs GPU)
python scripts/remove_checkerboard.py input.png -o ./output --engine birefnet --feather 4
# Batch a folder (mixed checkerboard + white-bg images is fine)
python scripts/remove_checkerboard.py ./images -o ./output --engine birefnet --feather 4
# CPU-only (rembg, no GPU needed)
python scripts/remove_checkerboard.py input.png --engine rembg --feather 4
| Engine | Quality | GPU | Speed |
|---|---|---|---|
birefnet (default) | Best | Required | Slower |
rembg | Good | Not required | Faster |
remove-checkerboard/
├── SKILL.md Routing rules and detection logic
├── scripts/
│ ├── remove_checkerboard.py Core: auto-detect + remove background
│ └── test_remove_checkerboard.py Unit tests
└── references/
├── algorithm.md Detection algorithm explanation
├── engine-guide.md BiRefNet vs rembg engine comparison
└── tuning.md Feather / threshold tuning guide
可移植 Agent Skill,从图片中去除背景,生成真正的透明 PNG。自动识别处理两类背景:
脚本自动识别类型——无需手动选择。
# 默认:BiRefNet 引擎 + 羽化 4(最佳质量,需 GPU)
python scripts/remove_checkerboard.py input.png -o ./output --engine birefnet --feather 4
# 批量处理(棋盘格 + 白底混合图片可一起处理)
python scripts/remove_checkerboard.py ./images -o ./output --engine birefnet --feather 4
# 仅 CPU(rembg,无需 GPU)
python scripts/remove_checkerboard.py input.png --engine rembg --feather 4
| 引擎 | 质量 | GPU | 速度 |
|---|---|---|---|
birefnet(默认) | 最佳 | 必需 | 较慢 |
rembg | 良好 | 不需要 | 较快 |
MIT