Sync with version of BiRefNet. NODES:AutoDownloadBiRefNetModel, LoadRembgByBiRefNetModel, RembgByBiRefNet.
Support the use of new and old versions of BiRefNet models
cd custom_nodes
git clone https://github.com/lldacing/ComfyUI_BiRefNet_ll.git
cd ComfyUI_BiRefNet_ll
pip install -r requirements.txt
# restart ComfyUI
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:
model.safetensors
must be renamed General.safetensors
model.safetensors
must be renamed General-Lite.safetensors
model.safetensors
must be renamed General-Lite-2K.safetensors
model.safetensors
must be renamed Portrait.safetensors
model.safetensors
must be renamed Matting.safetensors
model.safetensors
must be renamed DIS.safetensors
model.safetensors
must be renamed HRSOD.safetensors
model.safetensors
must be renamed COD.safetensors
model.safetensors
must be renamed DIS-TR_TEs.safetensors
Some models on GitHub: BiRefNet Releases
${comfyui_rootpath}/models/BiRefNet
, do not support weight model${comfyui_rootpath}/models/BiRefNet
or the path of birefnet
configured in the extra YAML file