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

生成透明背景的图片

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

  • 主模型:SDXL1.0illustrationArtZYSDXL_v10.safetensors
  • 核心节点:PreviewImage ×2、CLIPTextEncode ×2、VAEDecode ×1
  • 输出形式:输出图像 · 1024×1024
  • 规模:13 节点 / 13 连线
  • 建议显存:8GB 起
  • 适用场景:发丝级抠图、前后景分离、图层拆分与智能擦除。

工作流节点图

生成透明背景的图片 工作流节点图

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

资源头图

生成透明背景的图片

使用说明

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

源码预览

{
    "last_node_id": 39,
    "last_link_id": 51,
    "nodes": [
        {
            "id": 14,
            "type": "VAEDecode",
            "pos": [
                1275,
                198
            ],
            "size": [
                210,
                46
            ],
            "flags": [],
            "order": 9,
            "mode": 0,
            "inputs": [
                {
                    "name": "samples",
                    "type": "LATENT",
                    "link": 21,
                    "label": "Latent"
                },
                {
                    "name": "vae",
                    "type": "VAE",
                    "link": 22,
                    "slot_index": 1,
                    "label": "VAE"
                }
            ],
            "outputs": [
                {
                    "name": "IMAGE",
                    "type": "IMAGE",
                    "links": [
                        29,
                        50
                    ],
                    "shape": 3,
                    "slot_index": 0,
                    "label": "图像"
                }
            ],
            "properties": {
                "Node name for S&R": "VAEDecode"
            }
        },
        {
            "id": 3,
            "type": "KSampler",
            "pos": [
                911,
                198
            ],
            "size": [
                315,
                262
            ],
            "flags": [],
            "order": 8,
            "mode": 0,
            "inputs": [
                {
                    "name": "model",
                    "type": "MODEL",
                    "link": 19,
                    "label": "模型"
                },
                {
                    "name": "positive",
                    "type": "CONDITIONING",
                    "link": 4,
                    "label": "正面条件"
                },
                {
                    "name": "negative",
                    "type": "CONDITIONING",
                    "link": 6,
                    "label": "负面条件"
                },
                {
                    "name": "latent_image",
                    "type": "LATENT",
                    "link": 2,
                    "label": "Latent"
                }
            ],
            "outputs": [
                {
                    "name": "LATENT",
                    "type": "LATENT",
                    "links": [
                        21,
                        49
                    ],
                    "slot_index": 0,
                    "label": "Latent"
                }
            ],
            "properties": {
                "Node name for S&R": "KSampler"
            },
            "widgets_values": [
                677626062006560,
                "randomize",
                20,
                8,
                "euler",
                "normal",
                1
            ]
        },
        {
            "id": 36,
            "type": "LayeredDiffusionDecodeRGBA",
            "pos": [
                1589,
                199
            ],
            "size": [
                243.60000610351562,
                46
            ],
            "flags": [],
            "order": 11,
            "mode": 0,
            "inputs": [
                {
                    "name": "samples",
                    "type": "LATENT",
                    "link": 49,
                    "label": "samples"
                },
                {
                    "name": "images",
                    "type": "IMAGE",
                    "link": 50,
                    "label": "images"
                }
            ],
            "outputs": [
                {
                    "name": "IMAGE",
             
… (完整内容请下载文件查看)

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

发表回复

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

提交评论