A small, free ComfyUI workflow that cuts a product out of its photo and puts it on a pure #FFFFFF background, ready for marketplaces that require white backgrounds.
What's in it
4 nodes: Load Image → BiRefNetRMBG (BiRefNet-general, refine foreground on, background #FFFFFF) → Save Image, plus a notes node
UI and API-format JSON
A README with install steps, the settings that matter (sensitivity, mask_offset, Alpha for transparent PNG) and sample before/after images
Requirements
ComfyUI plus the ComfyUI-RMBG custom node (install it with ComfyUI-Manager). The BiRefNet-general model downloads automatically on first run.
One 1024×1024 image took about 57 s on CPU in my test. On a GPU it uses about 3–5 GB of VRAM and is much faster.
Honest limitations
It keeps whatever the model thinks is the subject. In my sample, a plant behind the mug was kept too, so crop first if your scene is busy.
Glass, mesh and fine hair-like edges usually need a manual touch-up.
Licence: Free for personal and commercial use. You can share the file unchanged with the credit note kept in, but please don't resell it. BiRefNet (MIT) and ComfyUI-RMBG (GPL-3.0) belong to their authors. Links are in the README.
Paid version (optional)
The $4 version adds a Real-ESRGAN 2× upscale and a 1600 px marketplace resize, plus a longer guide: https://ko-fi.com/s/b016b2fca7
The $7 pack also includes an ID-photo background swap and an old-photo restore and colorize workflow: https://ko-fi.com/s/95d51df2e1
You don't need either one. The free workflow above does the core cut-out on its own.
Disclosure: I'm Lei Sun (Lei Sun Studio). I built and tested this workflow with help from an AI assistant, which also helped write this text. The sample images are a computer-drawn test scene and the workflow's real output.
