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

带光源的自动换背景iclight流

带光源的自动换背景iclight流:基于 SD 1.5、IC-Light 搭建的换脸换装方案,节点规模 20 个、连线 28 条。工作流主路径为 VAEEncode ×2、CLIPTextEncode ×2、PreviewImage ×2,配合 输出图像;节点已按执行顺序排布,便于二次修改。主模型 majicMIXmajicmixRealistic_v7.safetensors、iclight_sd15_fc.safetensors、BiRefNet-general-epoch_244.pth。下载后直接导入即可使用,建议显存 4GB 起。

  • 主模型:majicMIXmajicmixRealistic_v7.safetensors、iclight_sd15_fc.safetensors、BiRefNet-general-epoch_244.pth
  • 核心节点:VAEEncode ×2、CLIPTextEncode ×2、PreviewImage ×2
  • 输出形式:输出图像
  • 规模:20 节点 / 28 连线
  • 建议显存:4GB 起
  • 适用场景:人物换脸、虚拟试衣、商品换装与背景替换,电商模特图的主力玩法。

工作流节点图

带光源的自动换背景iclight流 工作流节点图

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

资源头图

带光源的自动换背景iclight流

使用说明

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

源码预览

{
    "last_node_id": 73,
    "last_link_id": 130,
    "nodes": [
        {
            "id": 8,
            "type": "ICLightConditioning",
            "pos": [
                2400,
                740
            ],
            "size": [
                380,
                140
            ],
            "flags": [],
            "order": 12,
            "mode": 0,
            "inputs": [
                {
                    "name": "positive",
                    "type": "CONDITIONING",
                    "link": 78,
                    "slot_index": 0,
                    "label": "正面条件"
                },
                {
                    "name": "negative",
                    "type": "CONDITIONING",
                    "link": 79,
                    "slot_index": 1,
                    "label": "负面条件"
                },
                {
                    "name": "vae",
                    "type": "VAE",
                    "link": 88,
                    "label": "VAE"
                },
                {
                    "name": "foreground",
                    "type": "LATENT",
                    "link": 20,
                    "slot_index": 3,
                    "label": "前景Latent"
                },
                {
                    "name": "opt_background",
                    "type": "LATENT",
                    "link": null,
                    "label": "背景Latent(可选)"
                }
            ],
            "outputs": [
                {
                    "name": "positive",
                    "type": "CONDITIONING",
                    "links": [
                        122
                    ],
                    "slot_index": 0,
                    "shape": 3,
                    "label": "正面条件"
                },
                {
                    "name": "negative",
                    "type": "CONDITIONING",
                    "links": [
                        123
                    ],
                    "slot_index": 1,
                    "shape": 3,
                    "label": "负面条件"
                },
                {
                    "name": "empty_latent",
                    "type": "LATENT",
                    "links": [],
                    "slot_index": 2,
                    "shape": 3,
                    "label": "空Latent"
                }
            ],
            "properties": {
                "Node name for S&R": "ICLightConditioning"
            },
            "widgets_values": [
                0.28
            ],
            "category": "Custom Nodes"
        },
        {
            "id": 49,
            "type": "CLIPSetLastLayer",
            "pos": [
                1620,
                750
            ],
            "size": [
                320,
                60
            ],
            "flags": [],
            "order": 5,
            "mode": 0,
            "inputs": [
                {
                    "name": "clip",
                    "type": "CLIP",
                    "link": 87,
                    "slot_index": 0,
                    "label": "CLIP"
                }
            ],
            "outputs": [
                {
                    "name": "CLIP",
                    "type": "CLIP",
                    "links": [
                        80,
                        81
                    ],
                    "slot_index": 0,
                    "shape": 3,
                    "label": "CLIP"
                }
            ],
            "properties": {
                "Node name for S&R": "CLIPSetLastLayer"
            },
            "widgets_values": [
                -1
            ],
            "category": "Primitive Nodes"
        },
        {
            "id": 54,
            "type": "VAEDecode",
           
… (完整内容请下载文件查看)

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

发表回复

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

提交评论