794 words
4 minutes
RMBG-3.0 on a 16 GB portable bundle: unzip, double-click, done (7/7 test cases passed on an RTX 3060)

RMBG-3.0 on a 16 GB portable bundle: unzip, double-click, done#

RMBG-3.0 runs fine on an old box with an RTX 3060 12 GB and 16 GB of RAM — all seven test cases passed. The whole stack (ComfyUI core, portable Python, CUDA torch, three weight files, workflows, scripts) is packed into a 16.30 GB zip. Unzip, double-click, use.

Download: https://pan.quark.cn/s/890e02694903 (Quark, no expiry) License: Bria FIBO License / CC-BY-NC-4.0 — non-commercial use only.

1. What the output looks like#

Three before/after pairs: originals on top, cutouts below (pet fur, fine-leaf bouquet, open-weave knit)

Top row is the original, bottom row is the cutout (checkerboard = transparency). Fur, fine leaves, and open-weave mesh are the three edge types that classic matting usually destroys. RMBG-3.0’s soft alpha handles all of them — every hole in the knit mesh is preserved as semi-transparent, which is the most convincing single result in the set.

CaseInputResult
Portrait832×1248Soft hair-edge falloff ✅
Beige cardigan (mesh)767×768Mesh holes kept semi-transparent ✅
Beige cardigan (hi-res)1554×768Hole-by-hole fidelity ✅
Dog (fur)1554×768Clean fur edges ✅
Fern bouquet1554×768 / 768×768Fine leaves and small flowers preserved ✅
Crop one subject760×900Subject isolated ✅

2. Requirements — will it run on your machine?#

ItemMeasured hereVerdict
GPURTX 3060 12 GBSteady-state VRAM 8.7–9 GB; 12 GB recommended; on smaller cards try --novram / --cpu-vae
RAM15.9 GBThe text encoder takes another ~4 GB of system RAM; 16 GB leaves ~2 GB free. Do not try 8 GB
OSWindows 10/11Bundle ships Python 3.13.15 + torch 2.14.1+cu130 — no separate Python / CUDA / custom nodes needed
Disk~20 GB after extraction13.3 GB of weights plus core

Performance (RTX 3060, 4 steps, cfg=1):

ScenarioTime
Cold start to ready7.5 s
First image after cold start (weights from disk)29.6 s
Warm 768×76817–23 s
Warm 832×124836 s
Warm 1552×76836–43 s
1 / 4 / 8 steps at 1.19 MP10 / 37 / 71 s

Rule of thumb: 5–8 s fixed overhead + 7–8 s per MP per step, so 4 steps ≈ 30 s per MP.

3. How to use it#

Option A — GUI

Double-click Start-RMBG3.cmd → browser opens http://127.0.0.1:8188
Drag workflows/rmbg3-matting.ui.json onto the canvas
Swap LoadImage for your own image → Queue
Outputs: output/RMBG3_matte_*.png (grayscale) + RMBG3_cutout_*.png (transparent PNG)

Option B — batch from the CLI (includes alpha validation and a checkerboard preview)

ComfyUI-Portable\python\cpython-3.13.15-windows-x86_64-none\python.exe \
ComfyUI-Portable\scripts\run_rmbg3.py <input image> <output prefix>

Option C — repair an incomplete download (resumable, size + sha256 verified)

powershell -File ComfyUI-Portable\scripts\fetch_models.ps1

The bundle also includes four workflows (main / subject-crop × UI / API), a quick-start file, a deployment guide, and a troubleshooting doc. All paths are relative, so the folder can be moved to any drive.

4. Four traps that fail silently#

  1. The prompt must be that exact fixed JSON. TextEncodeFibo2 only understands this template. Replace it with natural language or an empty string and you get white blocks full of hallucinated text.
    {"edit_instruction": "Generate a detailed grayscale alpha matte. Map the opaque foreground to white and the background to black. Produce soft, anti-aliased grayscale gradients at the edges of the subject to represent fine details and transparency."}
  2. The VAE decodes a grayscale matte with no alpha channel. flux2-vae’s decoder has three channels, so you must wire VAEDecode → ImageToMask(red) → InvertMask → JoinImageWithAlpha(original). Note that JoinImageWithAlpha computes alpha = 1 - mask; skip the InvertMask and foreground/background come out fully swapped.
  3. API dynamic inputs need flat key names. TextEncodeFibo2’s images expands to images.image_1, so you must pass "images.image_1": ["<LoadImage node>", 0]. A nested object does not error — node_errors stays empty — but the image never connects and you silently fall back to a 1024×1024 grayscale blob. Diagnostic: a 832×1248 source that outputs 1024×1024 means the image is not connected.
  4. Launch with --disable-all-custom-nodes. Third-party nodes shipped with the bundle hang ComfyUI during import (process alive, 0 % CPU, 888 MB RSS, no port opened). RMBG-3.0 needs no custom nodes at all.

Two more numeric traps: set width/height to the source dimensions rounded down to a multiple of 16 — leaving them at 0 makes ComfyUI centre-crop into a training bucket and the matte will not line up. And the same image with the same seed hits the node cache and returns in 0.2 s with the old result, so always change the seed when benchmarking.

5. Model-download notes#

  • huggingface.co is unreachable directly, hf-mirror.com gives ~0.8 MB/s, modelscope.cn gives ~3.8 MB/s per connection — use ModelScope.
  • aria2c cannot complete the TLS handshake with the mirror (multi-connection handshake rejected); plain curl.exe with a single connection works. For speed, use HTTP Range chunks with 8 threads writing into a pre-allocated file — 13.3 GB in about 20 minutes.
  • Verify by re-reading the file from disk and hashing it independently; do not trust a streaming hash computed while downloading.

6. Limitations#

The weights are non-commercial. If VRAM or RAM is tight, both speed and success rate degrade. The node graph and prompt are generic, but timings depend on your hardware. Automatic subject detection would need Florence-2 / SAM3 / YOLO (which pulls in custom-node dependencies); the current flow crops with ImageCrop first, then mattes.

RMBG-3.0 on a 16 GB portable bundle: unzip, double-click, done (7/7 test cases passed on an RTX 3060)
https://yunyingai.net/en/posts/rmbg-3-0-local-background-removal/
Author
云樱梦海
Published at
2026-11-18
License
CC BY-NC-SA 4.0