Giter Site home page Giter Site logo

comfyui-birefnet-zho's Introduction

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 同时支持 图像和视频 处理

视频演示

BiRefNet.mp4

安装 | 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 感谢!

comfyui-birefnet-zho's People

Contributors

zho-zho-zho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

comfyui-birefnet-zho's Issues

Attempting to deserialize object on a CUDA

File "/Users/shijin/ComfyUI/custom_nodes/ComfyUI-BiRefNet-ZHO/models/backbones/build_backbone.py", line 29, in load_weights save_model = torch.load(config.weights[model_name])

在CPU模式下,这里报错,缺map_location参数

Ability to threshold?

Is it possible to have the ability to have a threshholding option? or is it a 1 shot process no matter what

import failed in MAC

I have installed all the requirements, but it import failed.

I try to uninstall and install again , it did not work.

I use Macbook pro m2 max.

thx

请教

您好,请问图和视频去背景的工作流json文件是否可以提供一下,我初次尝试comfyui,加载模型后不知道怎么运行了,下面是我的comfyui界面截图:
image
期待您的回复

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.