ComfyUI Node Runs on cloud
YOLO Segmentation (RMBG)
A ComfyUI node in 🧪AILab/🧽RMBG with 18 inputs and 4 outputs.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| model | COMBO | yolo26m-seg (Medium / 54.8MB) | YOLO model weights stored under /tmp/ComfyUI/models/ultralytics (presets download automatically). |
| mask_count | COMBO | all | Merge this many detections. 'all' merges everything (or just the selected index when specified). |
| select_mask_indexopt | COMBO | none | 1-based index of the first mask to keep. Use 'none' to start from the first detection. |
| confopt | FLOAT | 0.250–1 | Confidence threshold forwarded to Ultralytics. |
| iouopt | FLOAT | 0.450–1 | IOU used during NMS. |
| classesopt | STRING | Comma list or ranges of class IDs; empty keeps every class. | |
| annotation_modeopt | COMBO | Mask & Box | Display mode for ANNOTATED_IMAGE output. |
| backgroundopt | COMBO | Alpha | Background type for cutout IMAGE output. |
| background_coloropt | COLORCODE | #222222 | Background color when background is set to Color. |
| mask_bluropt | INT | 00–64 | Apply Gaussian blur to mask edges. |
| mask_offsetopt | INT | 0-64–64 | Expand/Shrink mask boundary (positive = expand, negative = shrink). |
| invert_outputopt | BOOLEAN | false | Invert the mask output. |
| deviceopt | COMBO | auto | Force a device or auto-detect CUDA → MPS → CPU. |
| max_detopt | INT | 3001–1000 | Maximum detections per image. |
| retina_masksopt | BOOLEAN | true | Use high-resolution masks (Ultralytics retina_masks flag). |
| agnostic_nmsopt | BOOLEAN | false | Enable class-agnostic NMS. |
| unload_modelopt | BOOLEAN | false | Unload model from VRAM after execution. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| ANNOTATED_IMAGE | IMAGE | — |
| MASK | MASK | — |
| MASK_LIST | MASK | — |