Visit ComfyUI Online for ready-to-use ComfyUI environment
Load pre-trained BiRefNet model for image background removal, supporting various versions and formats.
The LoadRembgByBiRefNetModel
node is designed to load a pre-trained BiRefNet model, which is used for background removal tasks in images. This node facilitates the loading of the model onto a specified device, ensuring that the model is ready for inference. By leveraging the BiRefNet architecture, this node provides a robust solution for AI artists looking to automate the process of background removal in their images, enhancing their workflow efficiency and output quality. The node supports loading models from different versions and formats, making it versatile and adaptable to various use cases.
This parameter specifies the name of the model to be loaded. It determines which pre-trained BiRefNet model will be used for the background removal task. The model name should correspond to a valid model file available in the specified directory. The choice of model can impact the accuracy and performance of the background removal process.
This parameter indicates the device on which the model will be loaded. It can be set to "AUTO" to automatically select the appropriate device based on availability, or "CPU" to force the model to load on the CPU. The device selection affects the speed and efficiency of the model's execution. Options: ["AUTO", "CPU"].
This optional boolean parameter determines whether to use pre-trained weights for the model. If set to True
, the model will be initialized with pre-trained weights, which can improve performance for certain tasks. If set to False
, the model will be initialized without pre-trained weights. Default value: False
.
This output parameter returns the loaded BiRefNet model along with its version. The model is ready for inference and can be used in subsequent nodes for background removal tasks. The version information helps in ensuring compatibility with other components in the workflow.
use_weight
parameter to True
.© Copyright 2024 RunComfy. All Rights Reserved.