ComfyUI Node: Segmentation V2 (RMBG)

Authored by 1038lab

Created

Updated

2023 stars

Run Segmentation V2 (RMBG) without installing ComfyUI

This node already runs on ComfyICU. Open it in the browser, hit run, and you're billed for GPU seconds — not for setup, and not while you're idle.

Category

🧪AILab/🧽RMBG

Inputs

image IMAGE
prompt STRING
sam_model
  • sam_vit_h (2.56GB)
  • sam_vit_l (1.25GB)
  • sam_vit_b (375MB)
  • sam_hq_vit_h (2.57GB)
  • sam_hq_vit_l (1.25GB)
  • sam_hq_vit_b (379MB)
dino_model
  • GroundingDINO_SwinT_OGC (694MB)
  • GroundingDINO_SwinB (938MB)
threshold FLOAT
mask_blur INT
mask_offset INT
invert_output BOOLEAN
background
  • Alpha
  • Color
background_color COLORCODE

Outputs

IMAGE

MASK

IMAGE

Extension: ComfyUI-RMBG

A sophisticated ComfyUI custom node engineered for advanced image background removal and precise segmentation of objects, faces, clothing, and fashion elements. This tool leverages a diverse array of models, including RMBG-2.0, INSPYRENET, BEN, BEN2, BiRefNet models, SAM, and GroundingDINO, while also incorporating a new feature for real-time background replacement and enhanced edge detection for improved accuracy.

Authored by 1038lab

Looking for a different node?

Run Segmentation V2 (RMBG) without installing ComfyUI

This node already runs on ComfyICU. Open it in the browser, hit run, and you're billed for GPU seconds — not for setup, and not while you're idle.

Learn more