Visit ComfyUI Online for ready-to-use ComfyUI environment
Powerful image segmentation node using BiRefNet model for background removal, ideal for AI artists.
BiRefNet_Hugo is a powerful node designed for image segmentation, specifically focusing on background removal. This node leverages the BiRefNet model to accurately segment and isolate the foreground from the background in images. It is particularly useful for AI artists who need to create clean, isolated images without manual editing. The node can handle various input images, resize them to the required dimensions, and apply the segmentation model to produce high-quality results. The flexibility to load a local model or use a pre-trained model from a remote source adds to its versatility. Additionally, it offers options to customize the background color, making it a valuable tool for creating transparent or colored backgrounds as needed.
This parameter accepts the input image that you want to process for background removal. The image should be in a format compatible with the node, such as JPEG or PNG. The node will resize the image to the required dimensions and apply the segmentation model to it.
This boolean parameter determines whether to load a local model or use a pre-trained model from a remote source. If set to True
, the node will load a model from the specified local path. If set to False
, it will use the pre-trained BiRefNet model from the remote source. The default value is False
.
This parameter allows you to specify the color of the background after the segmentation. You can choose from a variety of colors such as "transparency", "green", "white", "red", and many others. The default value is "transparency", which makes the background transparent.
This parameter specifies the device to be used for processing. Options include "auto", "cuda", "cpu", "mps", "xpu", and "meta". The default value is "auto", which automatically selects the best available device based on your system's capabilities.
This optional parameter specifies the path to the local model if load_local_model
is set to True
. It should be a string representing the file path to the model. If not provided, the node will use the default model path.
This output parameter provides the processed image with the background removed. The image will be in the same format as the input image but with the specified background color or transparency.
This output parameter provides the mask generated by the segmentation model. The mask highlights the foreground and background areas, which can be useful for further image processing or analysis.
device
parameter set to "auto" to let the node automatically select the best processing device available on your system.background_color_name
options to see which background color works best for your project.load_local_model
parameter set to True
and provide the local_model_path
to utilize your model.device
parameter.local_model_path
is correct and that the model file is present at the specified location.device
parameter to "cpu" to use the CPU for processing.© Copyright 2024 RunComfy. All Rights Reserved.