ComfyUI > Nodes > ComfyUI-RMBG

ComfyUI Extension: ComfyUI-RMBG

Repo Name

ComfyUI-RMBG

Author
1038lab (Account age: 1116 days)
Nodes
View all nodes(24)
Latest Updated
2026-02-03
Github Stars
1.89K

How to Install ComfyUI-RMBG

Install this extension via the ComfyUI Manager by searching for ComfyUI-RMBG
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-RMBG in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ComfyUI-RMBG Description

ComfyUI-RMBG is a custom node for ComfyUI designed for advanced image background removal and precise segmentation of objects, faces, and fashion elements. It utilizes models like RMBG-2.0 and INSPYRENET, offering real-time background replacement and enhanced edge detection for improved accuracy.

ComfyUI-RMBG Introduction

ComfyUI-RMBG is a powerful extension designed to enhance your image editing capabilities by providing advanced tools for background removal and object segmentation. This extension is particularly useful for AI artists who want to isolate specific elements within an image, such as objects, faces, clothing, and fashion items, without needing extensive technical knowledge. By leveraging a variety of sophisticated models, ComfyUI-RMBG allows you to achieve precise segmentation and background replacement, making it easier to create stunning visuals with clean and professional results.

How ComfyUI-RMBG Works

At its core, ComfyUI-RMBG uses machine learning models to analyze images and identify different elements within them. Imagine having a digital pair of scissors that can cut out parts of an image with incredible accuracy. The extension uses models like RMBG-2.0, INSPYRENET, and others to "see" the image in layers, distinguishing between the foreground (the main subject) and the background. Once the background is identified, it can be removed or replaced with a new one, allowing you to focus on the elements you want to highlight. This process is akin to a skilled artist sketching the outline of a subject before painting the details.

ComfyUI-RMBG Features

ComfyUI-RMBG offers a range of features that cater to different artistic needs:

  • Background Removal: Use the RMBG node to remove backgrounds from images. You can choose from various models like RMBG-2.0 and INSPYRENET, each offering different strengths in terms of speed and accuracy.
  • Object Segmentation: The Segment node allows you to detect and isolate objects within an image using text prompts. This feature supports both tag-style and natural language inputs, making it flexible and user-friendly.
  • Real-Time Background Replacement: Replace backgrounds in real-time, giving you the ability to experiment with different settings and see immediate results.
  • Edge Detection and Refinement: Enhanced edge detection ensures that the boundaries of your segmented objects are smooth and precise, reducing the jagged edges that can occur with less sophisticated tools.

ComfyUI-RMBG Models

ComfyUI-RMBG includes several models, each tailored for specific tasks:

  • RMBG-2.0: Ideal for general-purpose background removal, offering high accuracy and detail preservation.
  • INSPYRENET: Specializes in human portrait segmentation, providing fast processing and excellent edge detection.
  • BEN and BEN2: These models offer a balance between speed and accuracy, suitable for both simple and complex scenes.
  • BiRefNet: A versatile model family with options for high-resolution processing and specific tasks like portrait matting.
  • SAM and SAM2: Advanced models for object detection and segmentation, supporting multiple object handling and batch processing.
  • GroundingDINO: Designed for text-prompted object detection, offering high accuracy in complex environments.

What's New with ComfyUI-RMBG

The latest updates to ComfyUI-RMBG bring several enhancements:

  • Version 3.0.0: Introduced real-time background replacement and improved edge detection.
  • Version 2.9.6: Enhanced image comparison features.
  • Version 2.9.5: Fixed segmentation bugs in the SAM3 model.
  • Version 2.9.2: Added the BiRefNet_toonOut model and updated the ImageStitch feature. These updates improve the extension's performance and usability, making it easier for AI artists to achieve their creative goals.

Troubleshooting ComfyUI-RMBG

Here are some common issues you might encounter and how to resolve them:

  • Missing Models: If a model doesn't load, ensure it's downloaded to the correct directory. You can manually download models from the provided links and place them in the specified folders.
  • Image Not Processing: Check that all required inputs are connected and that upstream nodes have run successfully.
  • Performance Issues: Adjust the processing resolution and mask blur settings to optimize performance based on your system's capabilities.

Learn More about ComfyUI-RMBG

To further enhance your understanding and use of ComfyUI-RMBG, consider exploring the following resources:

  • Tutorials and Documentation: Visit the ComfyUI-RMBG GitHub repository for detailed guides and documentation.
  • Community Forums: Join online forums and communities where you can ask questions, share your work, and learn from other AI artists.
  • Video Tutorials: Look for video tutorials that demonstrate the extension's features and provide step-by-step instructions for common tasks. By leveraging these resources, you can maximize the potential of ComfyUI-RMBG and create stunning, professional-quality images with ease.

ComfyUI-RMBG Related Nodes

RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

ComfyUI-RMBG detailed guide | ComfyUI