• 版本 [version]
  • 下载 177
  • 文件大小 17675
  • 文件计数 1
  • 创建日期 2025年12月16日
  • 最后更新 2026年9月20日

BrushNet白底加背景

这是一份开箱即用的换脸换装工作流(SDXL、BrushNet),拖入 ComfyUI 即可运行,全图 16 节点 / 17 连线。核心流程 CLIPTextEncode ×2、PreviewImage ×2、InvertMask ×1,输出图像,参数已调好,替换输入图即可复现效果。主模型 sam_vit_h_4b8939.pth、segmentation_mask_brushnet_ckpt_sdxl_v1.safetensors。下载后直接导入即可使用,建议显存 8GB 起。

  • 主模型:sam_vit_h_4b8939.pth、segmentation_mask_brushnet_ckpt_sdxl_v1.safetensors
  • 核心节点:CLIPTextEncode ×2、PreviewImage ×2、InvertMask ×1
  • 输出形式:输出图像
  • 规模:16 节点 / 17 连线
  • 建议显存:8GB 起
  • 适用场景:人物换脸、虚拟试衣、商品换装与背景替换,电商模特图的主力玩法。

工作流节点图

BrushNet白底加背景 工作流节点图

图较大可横向滚动;点击图片查看高清矢量原图(浏览器中可自由缩放)。

资源头图

BrushNet白底加背景

使用说明

下载工作流文件后在 ComfyUI 中直接拖入画布(或菜单 Load 导入)即可运行;缺失的自定义节点用 ComfyUI Manager 一键安装,模型按文件名放入对应的 models 目录。

源码预览

{
    "last_node_id": 72,
    "last_link_id": 129,
    "nodes": [
        {
            "id": 17,
            "type": "InvertMask",
            "pos": [
                -926.1711490490408,
                266.98587723138456
            ],
            "size": [
                210,
                26
            ],
            "flags": {
                "collapsed": true
            },
            "order": 11,
            "mode": 0,
            "inputs": [
                {
                    "name": "mask",
                    "type": "MASK",
                    "link": 16,
                    "label": "遮罩"
                }
            ],
            "outputs": [
                {
                    "name": "MASK",
                    "type": "MASK",
                    "links": [
                        85
                    ],
                    "shape": 3,
                    "label": "遮罩",
                    "slot_index": 0
                }
            ],
            "properties": {
                "Node name for S&R": "InvertMask"
            },
            "category": "Custom Nodes"
        },
        {
            "id": 49,
            "type": "Anything Everywhere",
            "pos": [
                -794.1711490490408,
                265.98587723138456
            ],
            "size": [
                210,
                26
            ],
            "flags": {
                "collapsed": true
            },
            "order": 13,
            "mode": 0,
            "inputs": [
                {
                    "name": "MASK",
                    "type": "*",
                    "link": 85,
                    "label": "输入",
                    "color_on": "#81C784"
                }
            ],
            "properties": {
                "Node name for S&R": "Anything Everywhere",
                "group_restricted": 0,
                "color_restricted": 0
            },
            "widgets_values": [],
            "_widget_cache_map": [],
            "category": "Custom Nodes"
        },
        {
            "id": 46,
            "type": "MaskToImage",
            "pos": [
                -924.1711490490408,
                318.9858772313845
            ],
            "size": [
                210,
                26
            ],
            "flags": {
                "collapsed": true
            },
            "order": 0,
            "mode": 0,
            "inputs": [
                {
                    "name": "mask",
                    "type": "MASK",
                    "link": null,
                    "label": "遮罩"
                }
            ],
            "outputs": [
                {
                    "name": "IMAGE",
                    "type": "IMAGE",
                    "links": [
                        79
                    ],
                    "shape": 3,
                    "label": "图像",
                    "slot_index": 0
                }
            ],
            "properties": {
                "Node name for S&R": "MaskToImage"
            },
            "category": "Custom Nodes"
        },
        {
            "id": 29,
            "type": "VAEDecode",
            "pos": [
                -99,
                448
            ],
            "size": [
                210,
                46
            ],
            "flags": {
                "collapsed": true
            },
            "order": 14,
            "mode": 0,
            "inputs": [
                {
                    "name": "samples",
                    "type": "LATENT",
                    "link": 43,
                    "label": "Latent"
                },
                {
                    "name": "vae",
                    "type": "VAE",
                    "link": null,
            
… (完整内容请下载文件查看)

代码较长,以上仅前 3800 字符 —— 点击下方按钮下载完整 JSON。

发表回复

你的电子邮件地址不会被公开 * 为必填字段

提交评论