Nodes/toobusy · 너무바쁜베짱이/toobusy Background Remove
ComfyUI Node

toobusy Background Remove

Rembg for ComfyUI, with the model choice laid bare

By nicekriss·Created about a year ago·Updated 3 days ago· 16
toobusy Background Remove
  • image
  • image
  • mask
modelu2net
backgroundwhite
alpha_mattingfalse
post_process_maskfalse

Background removal in 2026 is the most commoditized operation in the whole ecosystem, which means the interesting question isn't "does it exist" - it's "which model do you let touch your hair." toobusy Background Remove is a clean rembg wrapper that puts that choice right on the node instead of hiding it. It's part of the toobusy image-preprocessing set, sitting alongside the face-mask node and feeding the reference-board flow that this pack is built around.

How it works

It's rembg under the hood - the MIT-licensed segmentation library that's been the standard tool since 2020. You feed it an image, it runs the selected model through a fresh session, and it returns two things: the cutout composited onto your chosen background color, and the raw alpha mask on a separate socket so you can keep using the alpha for something else (inpainting, compositing, feeding a Reference Board card). Models download on first use to ~/.u2net, so the first run of a new model is slower than the rest.

The node's real value is that it exposes the model menu. u2net is the default and the safe choice - fast, tiny, runs on CPU. But it's also the one that costs you quality on fine edges; that's been true since 2020 and hasn't changed. If you're cutting out anything with hair, fur, or semi-transparency, switch the model dropdown: isnet-general-use or isnet-anime sharpen edges (anime for illustration), u2net_human_seg for people, and birefnet-general if you want the current quality champ - BiRefNet is what ComfyUI itself shipped into core, and it's the reason the old "rembg = u2net" assumption quietly stopped being true.

The inputs that matter

  • model - see above; this dropdown is the whole game.
  • background - white/black/green/gray/magenta. Pick the color, not the transparency; the alpha is on the mask output.
  • alpha_matting - off by default, and it's slower, but it's the hair/fur toggle. Turn it on when the mask is eating flyaway strands.
  • post_process_mask - cleans the mask after segmentation. Cheap to try; keep it on if your cutout has specks.

Outputs and where they go

  • image - the cutout on your background color. Straight into a Reference Board, a composite, or straight to a Save Image.
  • mask - the alpha as a MASK tensor, for anything that wants a mask rather than a premultiplied image.

Install and gotchas

This node has its own optional dependency file - install the pack, then:

python -m pip install -r custom_nodes/toobusy/requirements_rembg.txt

That pulls rembg and onnxruntime. On an NVIDIA card, swap onnxruntime for onnxruntime-gpu in that file before installing, or you'll be doing CPU inference without noticing. Restart ComfyUI after.

The honest troubleshooting note: if your subject is a person standing against a plain background, any model here nails it in under a second, and you won't notice the difference. The moment you feed it a veil, glass, or motion blur, no model in this list is perfect - the community's standing advice is to run your two hardest images through a couple of model choices before standardizing on one. The dropdown makes that a two-minute A/B instead of a research project.

Categorytoobusy/Image

Inputs (5)

NameTypeDefaultDescription
imageIMAGE
modelCOMBOu2net7 options: u2net, u2netp, u2net_human_seg, isnet-general-use, isnet-anime, silueta, +1
backgroundCOMBOwhite5 options: white, black, green, gray, magenta
alpha_mattingoptBOOLEANfalseRefine edges (slower). Good for hair/fur.
post_process_maskoptBOOLEANfalseClean up the mask after segmentation.

Outputs (2)

NameTypeDescription
imageIMAGE
maskMASK