Nodes Browser

ComfyDeploy: How ComfyUI_BiRefNet_ll works in ComfyUI?

What is ComfyUI_BiRefNet_ll?

Sync with version of BiRefNet. NODES:AutoDownloadBiRefNetModel, LoadRembgByBiRefNetModel, RembgByBiRefNet.

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for ComfyUI_BiRefNet_ll and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

中文文档

Support the use of new and old versions of BiRefNet models

Preview

save api extended save api extended

Install

  • Manual
    cd custom_nodes
    git clone https://github.com/lldacing/ComfyUI_BiRefNet_ll.git
    cd ComfyUI_BiRefNet_ll
    pip install -r requirements.txt
    # restart ComfyUI
  • Via ComfyUI Manager

Models

The available newest models are:

  • General: A pre-trained model for general use cases.
  • General-Lite: A light pre-trained model for general use cases.
  • General-Lite-2K: A light pre-trained model for general use cases in high resolution (2560x1440).
  • Portrait: A pre-trained model for human portraits.
  • Matting: A pre-trained model for general trimap-free matting use.
  • DIS: A pre-trained model for dichotomous image segmentation (DIS).
  • HRSOD: A pre-trained model for high-resolution salient object detection (HRSOD).
  • COD: A pre-trained model for concealed object detection (COD).
  • DIS-TR_TEs: A pre-trained model with massive dataset.

Model files go here (when use AutoDownloadBiRefNetModel automatically downloaded if the folder is not present during first run): ${comfyui_rootpath}/models/BiRefNet.

If necessary, they can be downloaded from:

  • Generalmodel.safetensors must be renamed General.safetensors
  • General-Litemodel.safetensors must be renamed General-Lite.safetensors
  • General-Lite-2Kmodel.safetensors must be renamed General-Lite-2K.safetensors
  • Portraitmodel.safetensors must be renamed Portrait.safetensors
  • Mattingmodel.safetensors must be renamed Matting.safetensors
  • DISmodel.safetensors must be renamed DIS.safetensors
  • HRSODmodel.safetensors must be renamed HRSOD.safetensors
  • CODmodel.safetensors must be renamed COD.safetensors
  • DIS-TR_TEsmodel.safetensors must be renamed DIS-TR_TEs.safetensors

Some models on GitHub: BiRefNet Releases

Old models:

Weight Models (Optional)

Nodes

Thanks

ZhengPeng7/BiRefNet

dimitribarbot/sd-webui-birefnet