Skip to content
Node packVerifiedExternal
Open source

ComfyUI-RMBG

A ComfyUI custom node designed for advanced image background removal and object, face, clothes, and fashion segmentation, utilizing multiple models including RMBG-2.0, VRMBG-3.0, FeyNoBg, Finegrain Box Segmenter,...

Maintainer@1038labCgrade

Package profile

Status
Verified
Publisher
@1038lab
Source
GitHub
Stars
2K
Linked pipes
1

README

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, SDMatte models, SAM, SAM2 and GroundingDINO, while also incorporating a new feature for real-time background replacement and enhanced edge detection for improved accuracy.

News & Updates

  • 2026/01/01: Update ComfyUI-RMBG to v3.0.0 ( update.md ) V3 0 0_nodes

  • 2025/12/09: Update ComfyUI-RMBG to v2.9.6 ( update.md )  v2.9.6_Image Compare

  • 2025/11/25: Update ComfyUI-RMBG to v2.9.5 SAM3 Segmentaion bug fixed( update.md ) 

  • 2025/11/24: Update ComfyUI-RMBG to v2.9.4 SAM3 Segmentaion ( update.md ) v2.9.4_sam3

  • 2025/10/05: Update ComfyUI-RMBG to v2.9.3 ( update.md ) v2.9._color 

  • 2025/09/30: Update ComfyUI-RMBG to v2.9.2 ( update.md )

  • Add new BiRefNet_toonOut Model v2.9.2_BiRefNet_toonOut

  • Updated Imagestitch v2.9.2_imagestitch

  • 2025/09/12: Update ComfyUI-RMBG to v2.9.1 ( update.md ) v2.9.1

  • 2025/08/18: Update ComfyUI-RMBG to v2.9.0 ( update.md ) v2 9 0

    • Added SDMatte Matting node
  • 2025/08/11: Update ComfyUI-RMBG to v2.8.0 ( update.md ) v2 8 0

    • Added SAM2Segment node for text-prompted segmentation with the latest Facebook Research SAM2 technology.
    • Enhanced color widget support across all nodes
  • 2025/08/06: Update ComfyUI-RMBG to v2.7.1 ( update.md ) v2.7.0_ImageStitch

    • Enhanced LoadImage into three distinct nodes to meet different needs, all supporting direct image loading from local paths or URLs
    • Completely redesigned ImageStitch node compatible with ComfyUI's native functionality
    • Fixed background color handling issues reported by users
  • 2025/07/15: Update ComfyUI-RMBG to v2.6.0 ( update.md )

ReferenceLatentMaskr

  • Added Kontext Refence latent Mask node, Which uses a reference latent and mask for precise region conditioning.

  • 2025/07/11: Update ComfyUI-RMBG to v2.5.2 ( update.md )

![V 2 5 2](h

Nodes in this pack

43 nodes
  • AILab_ColorInput
  • AILab_ColorToMask
  • AILab_CropObject
  • AILab_Florence2
  • AILab_Florence2ToCoordinates
  • AILab_ICLoRAConcat
  • AILab_ImageCombiner
  • AILab_ImageCompare
  • AILab_ImageCrop
  • AILab_ImageMaskConvert
  • AILab_ImageMaskToList
  • AILab_ImagePreview
  • AILab_ImageResize
  • AILab_ImageStitch
  • AILab_ImageToList
  • AILab_LamaRemover
  • AILab_LoadImage
  • AILab_LoadImageAdvanced
  • AILab_LoadImageBatch
  • AILab_LoadImageSimple
  • AILab_MaskCombiner
  • AILab_MaskEnhancer
  • AILab_MaskExtractor
  • AILab_MaskOverlay
  • AILab_MaskPreview
  • AILab_MaskToList
  • AILab_Preview
  • AILab_ReferenceLatentMask
  • AILab_SDMatte
  • AILab_UnbatchImages
  • AILab_YoloV8
  • AILab_YoloV8Adv
  • BiRefNetRMBG
  • BodySegment
  • ClothesSegment
  • FaceSegment
  • FashionSegmentAccessories
  • FashionSegmentClothing
  • RMBG
  • SAM2Segment
  • SAM3Segment
  • Segment
  • SegmentV2

Related resources

40 connections
Used byLTX 2.3 Workflows + LTX Director (RuneXX workflows, remade by Stefan Falkok) + NSFW (Base I2V, First-Last frame, Controlnet, Edit, Add Audio + Lipsync, Foley, Extended Video) — v1.0Used byWan 2.2 VACE Video Inpaint: MatAnyone Painted Masking (INT8 ConvRot)Used byAutoBatch ZeroDistort 8K Upscaler-批量自适应8K零变形放大流 — 2workflow for autoUpscaleUsed byIllustrious/ Pony/ SDXL Pro Grade Workflow (Low or High VRAM) — V8.1 Region Prompt UltraUsed byKrea 2 Pro Grade w/ Image Edit, Style Transfer, Controlnet, Multi-reference, SAM3 Detailers, & Low VRAM options — v1.1 added rebalanceUsed by(workflow)像素游戏角色化-make a pixel sprite! — pixelsprite workflow v1.0Used byFlux.2-Klein Image To Image editing — v2.0 — v4.0Used bykontext series:The IP generates IP生成 — v1.0Used byFlux Workflow - Multi character with Kontext — v4.0 - Ref BackgroundUsed byCharacters generator | Generation of detailed сharacter for full body — v1.1Used byZ Image Turbo Inpaint — v1.0Used byFisherKing-ZiT-[EyeDetailer]-I2I-ReferenceWorkflow-v1.0 [Low VRAM]Used byIllustrious/ Pony/ SDXL SFW & NSFW Pro Grade Workflow (Low and high VRAM) — V8.1 upgradesUsed byWan 2.2 Long video via multi-step actions — v1.1Used byIllustrious/ Pony/ SDXL SFW & NSFW Pro Grade Workflow (Low and high VRAM) — v11.1.1 Detailer OverhaulUsed byFlux.2 Character replacer v2.4Used byWan Animated ComfyUI — v1.1Used byIllustrious/ Pony/ SDXL Pro Grade Workflow (Low or High VRAM) — V13.1 tune upUsed byHunyuan 3D Flux Character Sheet To 3D — v1.0Used byPantomime | Facial expression sprite generator — v1.0.1Used byKrea 2 Pro Grade w/ Image Edit, Style Transfer, Controlnet, Multi-reference, SAM3 Detailers, & Low VRAM options — V3.1 tweaksUsed byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v8.2Used byZ-Image-Turbo ControlNet Image Remix V2.1(NSFW) — v1.0Used byWan2.2 FunControl FreeLength V2V with Background Changer (Version 2) — v2.0Used byInpaint Anyone or Anything Anywhere Doing Whatever Seamlessly With Krita, Kontext, and Nunchaku — v2.0Used byIllustrious/ Pony/ SDXL Pro Grade Workflow (Low or High VRAM) — V15.0.4 Detailer OverhaulUsed byAnima can edit images! | Testing Anima-Edit loras and IC-methodsUsed byKrea 2 Pro Grade w/ Image Edit, Style Transfer, Controlnet, Multi-reference, SAM3 Detailers, & Low VRAM options — v3.2 Krea 2T enhancer addUsed byBindWeave Single-Role Consistency Workflow — v1.0Used byIllustrious/ Pony/ SDXL Pro Grade Workflow (Low or High VRAM) — V16.0 sampler upgradeUsed byCombined workflow (ComfyUI txt2img, Wildcards, LLMs/Ollama, Pony, SDXL, Illustrious, Flux, Qwen, Z-Image, Anima, Flux 2 Klein, Krea 2 Turbo) — v8.3 — v9Used byWAN 2.1 VACE - Extra Frame Control — v1.0Used byUtopian Inpainting workflow — v2.2Used byEdit workflow 2 in one - Flux Klein 9 + Qwen edit 2511 + SAM3 — v1.0Used byUtopian Inpainting workflow — v2.1Used byAnima can edit images! | Testing Anima-Edit loras and IC-methods — Simple Anima IC-methodUsed byComfyUI Qwen Edit Workflow for Head Swap no LoRAs needed! — v1.0Used byIllustrious/ Pony/ SDXL Pro Grade Workflow (Low or High VRAM) — V10.2 Upgrade Face swapUsed byZ-Image Base & Turbo Pro Grade Workflow I2I/T2I (Low or High VRAM) — v16.0 Sam3 Detailers!!!Used byKrea 2 Moodboard + Identity Edit - ComfyUI Nodes (+ Forge Neo) — v1.3 — Rednode Studio 1.6.4

Sources

3 sources
GitHubPrimary
github.com/1038lab/ComfyUI-RMBG

Verified Oct 25

ManualSource

Source excerpts

1 excerpt

Source context: Repo 1038lab/ComfyUI-RMBG