Home
Softono
ComfyUI-BiRefNet-ZHO

ComfyUI-BiRefNet-ZHO

Open source Python
405
Stars
41
Forks
35
Issues
6
Watchers
1 year
Last Commit

About ComfyUI-BiRefNet-ZHO

ComfyUI-BiRefNet-ZHO is an enhanced, non-official implementation of the BiRefNet model designed for the ComfyUI platform. It leverages what is considered the best current open-source commercial model for background removal, capable of processing both images and videos. Unlike earlier versions that only generated simple masks, this plugin separates model loading from image processing to significantly increase speed. Key features include the direct output of transparent PNG images and the ability to handle video background removal, supporting batch processing for efficiency. The software provides dedicated nodes for loading models and executing background removal workflows. Installation requires the timm library and can be performed via ComfyUI Manager or manually by cloning the repository and installing dependencies. Users must download six specific model files to the designated models folder to utilize the full range of options. This tool is ideal for content creators and professionals requiring high-quality,

Platforms

Web Self-hosted

Languages

Python

Links

BRF

ComfyUI-BiRefNet-ZHO

Better version for BiRefNet in ComfyUI | Both img & video

Dingtalk_20240401154248

项目介绍 | Info

  • BiRefNet 的非官方实现

  • viperyl/ComfyUI-BiRefNet 插件区别:

    • 原版插件:只能简单输出蒙版,不方便用,也不能处理视频

    • 新版插件:

      1)模型加载和图像处理相分离,提升速度(和我之前做的 BRIA RMBG in ComfyUI 插件一致)

      2)可以直接输出透明背景的 PNG 图

      3)可以直接抠视频

  • BiRefNet 模型:目前最好的开源可商用背景抠除模型

  • 版本:V1.0 同时支持 图像和视频 处理

视频演示

https://github.com/ZHO-ZHO-ZHO/ComfyUI-BiRefNet-ZHO/assets/140084057/ae337aa0-ec9e-40c3-85d4-390654bd0cc7

安装 | Install

  • 所需依赖:timm,如已安装无需运行 requirements.txt,只需 git 项目即可

  • 推荐使用管理器 ComfyUI Manager 安装(On the Way)

  • 手动安装:

    1. cd custom_nodes
    2. git clone https://github.com/ZHO-ZHO-ZHO/ComfyUI-BiRefNet-ZHO.git
    3. cd custom_nodes/ComfyUI-BiRefNet-ZHO
    4. pip install -r requirements.txt
    5. 重启 ComfyUI

使用说明 | How to Use

  • BiRefNet 中的 6 个模型均下载至./models/BiRefNet

  • 节点:

    Dingtalk_20240331031811

    • 🧹BiRefNet Model Loader:自动加载 BiRefNet 模型
    • 🧹BiRefNet:去除背景

更新日志

  • 20240401

    V1.0 同时支持 图像和视频 处理(支持批量处理)、支持输出 mask 功能

    创建项目

Stars

Star History Chart

关于我 | About me

📬 联系我

🔗 社交媒体

💡 支持我

Credits

BiRefNet

代码参考了 viperyl/ComfyUI-BiRefNet 感谢!