• 版本 [version]
  • 下载 110
  • 文件大小 25412
  • 文件计数 1
  • 创建日期 2026年4月3日
  • 最后更新 2026年9月20日

SDXL BRUSHNET一键换背景

SDXL BRUSHNET一键换背景 是一套面向抠图场景的 ComfyUI 工作流,全图共 23 个节点、29 条连线。链路以 PreviewImage ×5、LoadImage ×2、CLIPTextEncode ×2 为主干,输出图像,适合需要稳定批量出图的同学。主模型 segmentation_mask_brushnet_ckpt_sdxl_v1.safetensors、sam_vit_h_4b8939.pth。下载后直接导入即可使用,建议显存 8GB 起。

  • 主模型:segmentation_mask_brushnet_ckpt_sdxl_v1.safetensors、sam_vit_h_4b8939.pth
  • 核心节点:PreviewImage ×5、LoadImage ×2、CLIPTextEncode ×2
  • 输出形式:输出图像
  • 规模:23 节点 / 29 连线
  • 建议显存:8GB 起
  • 适用场景:发丝级抠图、前后景分离、图层拆分与智能擦除。

资源头图

SDXL BRUSHNET一键换背景

工作流节点图

SDXL BRUSHNET一键换背景 工作流节点图

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

使用说明

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

源码预览

{
    "last_node_id": 102,
    "last_link_id": 194,
    "nodes": [
        {
            "id": 29,
            "type": "CheckpointLoaderSimple",
            "pos": [
                3390,
                2170
            ],
            "size": [
                315,
                98
            ],
            "flags": [],
            "order": 0,
            "mode": 0,
            "inputs": [],
            "outputs": [
                {
                    "name": "MODEL",
                    "type": "MODEL",
                    "links": [
                        88
                    ],
                    "slot_index": 0,
                    "label": "模型"
                },
                {
                    "name": "CLIP",
                    "type": "CLIP",
                    "links": [
                        41,
                        42
                    ],
                    "slot_index": 1,
                    "label": "CLIP"
                },
                {
                    "name": "VAE",
                    "type": "VAE",
                    "links": [
                        49,
                        91
                    ],
                    "slot_index": 2,
                    "label": "VAE"
                }
            ],
            "properties": {
                "Node name for S&R": "CheckpointLoaderSimple"
            },
            "widgets_values": [
                "LEOSAM HelloWorld 新世界 | SDXL大模型_v7.0"
            ],
            "_widget_cache_map": {
                "LEOSAM HelloWorld 新世界 | SDXL大模型_v7.0": {
                    "name": "LEOSAM HelloWorld 新世界 | SDXL大模型_v7.0",
                    "baseType": 3,
                    "value": "aeed3bb1cdcb40c098e6f5011aa6d5cb"
                }
            }
        },
        {
            "id": 30,
            "type": "KSampler",
            "pos": [
                5120,
                2160
            ],
            "size": [
                315,
                262
            ],
            "flags": [],
            "order": 20,
            "mode": 0,
            "inputs": [
                {
                    "name": "model",
                    "type": "MODEL",
                    "link": 92,
                    "label": "模型"
                },
                {
                    "name": "positive",
                    "type": "CONDITIONING",
                    "link": 93,
                    "label": "正面条件"
                },
                {
                    "name": "negative",
                    "type": "CONDITIONING",
                    "link": 94,
                    "label": "负面条件"
                },
                {
                    "name": "latent_image",
                    "type": "LATENT",
                    "link": 95,
                    "label": "Latent"
                }
            ],
            "outputs": [
                {
                    "name": "LATENT",
                    "type": "LATENT",
                    "links": [
                        47
                    ],
                    "slot_index": 0,
                    "label": "Latent"
                }
            ],
            "properties": {
                "Node name for S&R": "KSampler"
            },
            "widgets_values": [
                310436889489725,
                "randomize",
                20,
                6,
                "dpmpp_sde",
                "karras",
                1
            ],
            "_widget_cache_map": []
        },
        {
            "id": 38,
            "type": "PreviewImage",
            "pos": [
                4907,
                2823
            ],
            "size": [
                518.7930908203125,
                615.9891967773438
            ],
            "f
… (完整内容请下载文件查看)

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

发表回复

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

提交评论