Skip to content

Latest commit

 

History

History
84 lines (64 loc) · 4.67 KB

README_CN.md

File metadata and controls

84 lines (64 loc) · 4.67 KB

English

支持使用新老版本BiRefNet模型进行抠图

预览

save api extended save api extended

安装

  • 手动安装
    cd custom_nodes
    git clone https://github.com/lldacing/ComfyUI_BiRefNet_ll.git
    cd ComfyUI_BiRefNet_ll
    pip install -r requirements.txt
    # restart ComfyUI
  • ComfyUI管理器搜索安装

模型

最新的模型:

  • General: 用于一般用例的预训练模型。
  • General-Lite: 用于一般用例的轻量级预训练模型。
  • General-Lite-2K: 用于一般用例的轻量级预训练模型,适用于高分辨率图像。 (最佳分辨率2560x1440).
  • Portrait: 人物肖像预训练模型。
  • Matting: 一种使用无trimap matting的预训练模型。
  • DIS: 一种用于二分图像分割(DIS)的预训练模型。
  • HRSOD: 一种用于高分辨率显著目标检测(HRSOD)的预训练模型。
  • COD: 一种用于隐蔽目标检测(COD)的预训练模型。
  • DIS-TR_TEs: 具有大量数据集的预训练模型。

模型文件放在${comfyui_rootpath}/models/BiRefNet(当使用AutoDownloadBiRefNetModel时,则会自动下载模型).

也可以手动下载模型:

  • Generalmodel.safetensors 重命名为 General.safetensors
  • General-Litemodel.safetensors 重命名为 General-Lite.safetensors
  • General-Lite-2Kmodel.safetensors 重命名为 General-Lite-2K.safetensors
  • Portraitmodel.safetensors 重命名为 Portrait.safetensors
  • Mattingmodel.safetensors 重命名为 Matting.safetensors
  • DISmodel.safetensors 重命名为 DIS.safetensors
  • HRSODmodel.safetensors 重命名为 HRSOD.safetensors
  • CODmodel.safetensors 重命名为 COD.safetensors
  • DIS-TR_TEsmodel.safetensors 重命名为 DIS-TR_TEs.safetensors

GitHub上的模型: BiRefNet Releases

旧模型:

权重模型(非必须)

下载放在models/BiRefNet

节点

感谢

ZhengPeng7/BiRefNet

dimitribarbot/sd-webui-birefnet