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

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

Class Name

ImageRemoveBackgroundBiRefNet|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 (BiRefNet) [LP] Description

Removes image backgrounds using BiRefNet for high-quality subject isolation and editing.

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

The ImageRemoveBackgroundBiRefNet| Image Remove Background (BiRefNet) [LP] node is designed to facilitate the removal of backgrounds from images using the BiRefNet model, a sophisticated deep learning approach optimized for image segmentation tasks. This node is particularly beneficial for AI artists and designers who need to isolate subjects from their backgrounds efficiently, allowing for seamless integration into new environments or creative compositions. By leveraging the BiRefNet model, this node provides high-quality matting results, especially suited for portrait and human images, ensuring that the foreground is preserved with fine detail while the background is effectively removed. The node supports various configurations to refine the output, such as mask blurring and color adjustments, making it a versatile tool for enhancing image editing workflows.

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

image

This parameter accepts the input image that you wish to process for background removal. The image should be in a format compatible with the node, such as JPEG or PNG. The quality and resolution of the input image can significantly impact the effectiveness of the background removal process.

model

Select the BiRefNet model variant to use for processing. Different variants are optimized for specific tasks, such as general background removal or portrait/human matting. Choosing the appropriate model can enhance the accuracy and quality of the output.

mask_blur

Specify the amount of blur to apply to the edges of the mask. This parameter helps in smoothing the transition between the foreground and the background, reducing harsh edges. A value of 0 applies no blur, while higher values increase the blur effect.

mask_offset

Adjust the boundary of the mask with this parameter. Positive values expand the mask, potentially including more of the background, while negative values shrink it, focusing more on the foreground. This adjustment can help in fine-tuning the mask to better fit the subject.

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 usual output is desired.

refine_foreground

Use this parameter to apply Fast Foreground Colour Estimation, which optimizes the transparency of the background, ensuring that the foreground colors are accurately preserved and enhanced.

background

Choose the type of background for the output image. Options include Alpha for a transparent background or Color for a custom background color. This setting allows for flexibility in how the final image is presented.

background_color

Select the color for the background if the Color option is chosen. If Alpha is selected, the background will be transparent. This parameter allows for creative control over the final appearance of the image.

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

mask

The output mask is a binary image that delineates the foreground from the background. It is used to apply the background removal effect, ensuring that the subject is isolated cleanly. The quality of the mask directly affects the final output, making it a crucial component of the process.

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

  • For optimal results, use high-resolution images as input to ensure that the BiRefNet model can accurately detect and separate the foreground from the background.
  • Experiment with the mask_blur and mask_offset parameters to achieve the desired level of detail and smoothness in the transition between the subject and the background.
  • When working with portraits, consider using the BiRefNet-portrait model variant to enhance the accuracy of human matting.

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

Error in BiRefNet processing: <error_message>

  • Explanation: This error indicates that there was an issue during the processing of the image with the BiRefNet model. It could be due to an incompatible image format, incorrect parameter settings, or a problem with the model itself.
  • Solution: Ensure that the input image is in a supported format and that all parameters are set correctly. If the problem persists, check for updates to the model or the node, and consult the documentation for any additional troubleshooting steps.

Image Remove Background (BiRefNet) [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.