ComfyUI > Nodes > ComfyUI Level Pixel Advanced > Image Remove Background (RMBG) [LP]

ComfyUI Node: Image Remove Background (RMBG) [LP]

Class Name

ImageRemoveBackgroundRMBG|LP

Category
LevelPixel/Image
Author
LevelPixel (Account age: 640days)
Extension
ComfyUI Level Pixel Advanced
Latest Updated
2026-03-21
Github Stars
0.02K

How to Install ComfyUI Level Pixel Advanced

Install this extension via the ComfyUI Manager by searching for ComfyUI Level Pixel Advanced
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Level Pixel Advanced 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

Image Remove Background (RMBG) [LP] Description

Removes image backgrounds using deep learning models for precise foreground separation.

Image Remove Background (RMBG) [LP]| Image Remove Background (RMBG) [LP]:

The ImageRemoveBackgroundRMBG| Image Remove Background (RMBG) [LP] node is designed to facilitate the removal of backgrounds from images using advanced deep learning models. This node is part of the ComfyUI-LevelPixel-Advanced suite and leverages models such as RMBG-2.0, INSPYRENET, and BEN to accurately detect and separate the foreground from the background. By utilizing these models, the node provides a powerful tool for artists and designers to create images with transparent backgrounds or custom background colors, enhancing the flexibility and creativity in image editing. The node's capabilities are particularly beneficial for tasks that require precise background removal, such as creating product images, digital art, or any scenario where the focus needs to be on the subject without distractions from the background.

Image Remove Background (RMBG) [LP]| Image Remove Background (RMBG) [LP] Input Parameters:

image

This parameter accepts the input image that you want to process for background removal. The image serves as the primary data source for the node to analyze and apply the background removal techniques.

model

Select the background removal model to use from options like RMBG-2.0, INSPYRENET, and BEN. Each model has its own strengths and may perform differently depending on the image characteristics, so choosing the right model can impact the quality of the background removal.

sensitivity

This parameter allows you to adjust the strength of mask detection. Higher values result in more aggressive detection, which can be useful for images with complex backgrounds, while lower values may preserve more of the original image details.

process_res

Set the processing resolution with this parameter. Higher resolutions require more VRAM and may increase processing time, but they can also lead to more detailed and accurate background removal results.

mask_blur

Specify the amount of blur to apply to the mask edges. A value of 0 means no blur, while higher values will soften the edges of the mask, which can help in creating a more natural transition between the foreground and the background.

mask_offset

Adjust the mask boundary using this parameter. Positive values expand the mask, potentially including more of the background, while negative values shrink it, which can help in tightly cropping the subject.

background

Choose the output type for the background: Alpha for a transparent background or Color for a custom background color. This setting determines how the final image will be presented after background removal.

background_color

Pick a background color if you have selected the Color option for the background. This parameter supports alpha values and allows you to use a color picker to choose the desired color.

invert_output

Enable this option to invert both the image and mask output. This can be useful for creating certain artistic effects or when the inverse of the original mask is needed.

refine_foreground

Use Fast Foreground Colour Estimation to optimize the transparent background. This parameter helps in refining the foreground colors, making the transition to transparency smoother and more visually appealing.

Image Remove Background (RMBG) [LP]| Image Remove Background (RMBG) [LP] Output Parameters:

IMAGE

The output is an image with the background removed according to the specified parameters. This image can have a transparent background or a custom color background, depending on the settings chosen. The output is crucial for applications where the subject needs to be isolated from its background for further processing or creative use.

Image Remove Background (RMBG) [LP]| Image Remove Background (RMBG) [LP] Usage Tips:

  • Experiment with different models to find the one that best suits your image characteristics for optimal background removal results.
  • Adjust the sensitivity and mask_blur parameters to fine-tune the mask edges and achieve a natural look, especially for images with intricate details.
  • Use the process_res parameter wisely to balance between processing time and output quality, especially if working with high-resolution images.

Image Remove Background (RMBG) [LP]| Image Remove Background (RMBG) [LP] Common Errors and Solutions:

Invalid color format

  • Explanation: This error occurs when the background color is not specified in a valid hex format.
  • Solution: Ensure that the background color is provided in a correct hex format, such as #RRGGBB or #RRGGBBAA.

Model not found

  • Explanation: This error indicates that the selected model is not available or not properly loaded.
  • Solution: Verify that the model name is correctly specified and that the model files are correctly installed in the designated directory.

Insufficient VRAM

  • Explanation: This error occurs when the selected processing resolution exceeds the available VRAM capacity.
  • Solution: Reduce the process_res value or close other applications to free up VRAM resources.

Image Remove Background (RMBG) [LP] Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Level Pixel Advanced
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.