Nodes/ComfyUI-RMBG/YOLO Segmentation (RMBG)
ComfyUI Node Runs on cloud

YOLO Segmentation (RMBG)

A ComfyUI node in 🧪AILab/🧽RMBG with 18 inputs and 4 outputs.

By 1038lab·Created 2 years ago·Updated 2 days ago· 2,196
YOLO Segmentation (RMBG)
  • images
  • background_color
  • IMAGE
  • ANNOTATED_IMAGE
  • MASK
  • MASK_LIST
◄modelyolo26m-seg (Medium / 54.8MB)►
◄mask_countall►
◄select_mask_indexnone►
◄conf0.25►
◄iou0.45►
◄classes►
◄annotation_modeMask & Box►
◄backgroundAlpha►
◄mask_blur0►
◄mask_offset0►
◄invert_outputfalse►
◄deviceauto►
◄max_det300►
◄retina_maskstrue►
◄agnostic_nmsfalse►
◄unload_modelfalse►
Category🧪AILab/🧽RMBG

Inputs (18)

NameTypeDefaultDescription
imagesIMAGE—
modelCOMBOyolo26m-seg (Medium / 54.8MB)YOLO model weights stored under /tmp/ComfyUI/models/ultralytics (presets download automatically).
mask_countCOMBOallMerge this many detections. 'all' merges everything (or just the selected index when specified).
select_mask_indexoptCOMBOnone1-based index of the first mask to keep. Use 'none' to start from the first detection.
confoptFLOAT0.250–1Confidence threshold forwarded to Ultralytics.
iouoptFLOAT0.450–1IOU used during NMS.
classesoptSTRINGComma list or ranges of class IDs; empty keeps every class.
annotation_modeoptCOMBOMask & BoxDisplay mode for ANNOTATED_IMAGE output.
backgroundoptCOMBOAlphaBackground type for cutout IMAGE output.
background_coloroptCOLORCODE#222222Background color when background is set to Color.
mask_bluroptINT00–64Apply Gaussian blur to mask edges.
mask_offsetoptINT0-64–64Expand/Shrink mask boundary (positive = expand, negative = shrink).
invert_outputoptBOOLEANfalseInvert the mask output.
deviceoptCOMBOautoForce a device or auto-detect CUDA → MPS → CPU.
max_detoptINT3001–1000Maximum detections per image.
retina_masksoptBOOLEANtrueUse high-resolution masks (Ultralytics retina_masks flag).
agnostic_nmsoptBOOLEANfalseEnable class-agnostic NMS.
unload_modeloptBOOLEANfalseUnload model from VRAM after execution.

Outputs (4)

NameTypeDescription
IMAGEIMAGE—
ANNOTATED_IMAGEIMAGE—
MASKMASK—
MASK_LISTMASK—