分享 GitHub 上一款强大的 ComfyUI 背景移除插件:ComfyUI-RMBG。支持物体、人脸、服装和时尚元素的精准分割,整合了多种先进模型包括 RMBG-2.0、INSPYRENET、BEN、BEN2、BiRefNet 模型、SAM 和 GroundingDINO。
还支持批量处理、可自由调整敏感度、分辨率、模糊度等参数。可通过 ComfyUI-Manager 搜索安装,或直接克隆到 custom_nodes 文件夹中,首次使用时会自动下载所需模型。
相关链接
GitHub:github.com/1038lab/ComfyUI-RMBG
特征
背景去除(RMBG 节点)
-
多种型号:RMBG-2.0、INSPYRENET、BEN、BEN2
-
多种背景选项
-
批处理支持
-
对象分割(Segment 节点)
文本提示的物体检测
-
支持标签式和自然语言输入
-
使用 SAM 进行高精度分割
-
灵活的参数控制
安装
###在ComfyUI-Manager上安装 搜索Comfyui-RMBG并安装,在 ComfyUI-RMBG 文件夹中安装 requirment.txt
./ComfyUI/python_embeded/python -m pip install -r requirements.txt`
将此存储库克隆到 ComfyUI custom_nodes 文件夹
cd ComfyUI/custom_nodes
git clone https://github.com/1038lab/ComfyUI-RMBG
在 ComfyUI-RMBG 文件夹中安装 requirment.txt
./ComfyUI/python_embeded/python -m pip install -r requirements.txt