月亮 d21bef1d02 Merge pull request #23 from ComfyNodePRs/update-publish-yaml
Update Github Action for Publishing to Comfy Registry
2025-05-25 23:37:49 +08:00
2024-09-21 19:36:05 +08:00
2025-03-05 13:16:12 +08:00
2025-02-17 10:14:38 +08:00
2024-09-21 18:11:58 +08:00
2024-09-03 21:12:35 +08:00
2024-09-03 18:35:42 +08:00
2025-02-17 10:14:38 +08:00
2024-10-18 11:38:01 +08:00
2025-02-17 10:14:38 +08:00
2024-09-03 20:36:30 +08:00

ComfyUI-BiRefNet-Hugo


English | 中文

Introduction

This repository wraps the latest BiRefNet model as ComfyUI nodes. Compared to the previous model, the latest model offers higher and better matting accuracy.

🔥🔥🔥 Update!!

Installation

Method 1:

  1. Go to comfyUI custom_nodes folder, ComfyUI/custom_nodes/
  2. git clone https://github.com/MoonHugo/ComfyUI-BiRefNet-Hugo.git
  3. cd ComfyUI-BiRefNet-Hugo
  4. pip install -r requirements.txt
  5. restart ComfyUI

Method 2:

Directly download the node source package, then extract it into the custom_nodes directory, and finally restart ComfyUI.

Method 3:

Install through ComfyUI-Manager by searching for 'ComfyUI-BiRefNet-Hugo' and installing it.

Usage

The demo workflow placed in ComfyUI-BiRefNet-Hugo/workflow

Loading the model supports two methods: one is to automatically download and load a remote model, and the other is to load a local model. When loading a local model, you need to set 'load_local_model' to true and 'local_model_path' to the path where the local model is located, for example: H:\ZhengPeng7\BiRefNet.


Model download address: https://huggingface.co/ZhengPeng7/BiRefNet/tree/main


The use of workflow.json

plot


The use of video_workflow.json

plot

Sample Result

Social Account Homepage

Acknowledgments

Thanks to BiRefNet repo owner ZhengPeng7/BiRefNet

Some of the code references ZHO-ZHO-ZHO/ComfyUI-BiRefNet-ZHO Thanks!

star history

Star History Chart

S
Description
No description provided
Readme GPL-3.0
5.7 MiB
Languages
Python 55.4%
JavaScript 44.6%