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

无损高质量换脸

这是一份开箱即用的换脸换装工作流(SUPIR、SDXL、PuLID),拖入 ComfyUI 即可运行,全图 77 节点 / 117 连线。核心流程 PreviewImage ×7、MaskPreview+ ×4、Bounded Image Crop with Mask ×3,输出图像,参数已调好,替换输入图即可复现效果。主模型 ip-adapter_pulid_sdxl_fp16.safetensors、sam_vit_h_4b8939.pth、SUPIR-v0F_fp16.safetensors。下载后直接导入即可使用,建议显存 8GB 起。

  • 主模型:ip-adapter_pulid_sdxl_fp16.safetensors、sam_vit_h_4b8939.pth、SUPIR-v0F_fp16.safetensors
  • 核心节点:PreviewImage ×7、MaskPreview+ ×4、Bounded Image Crop with Mask ×3
  • 输出形式:输出图像
  • 规模:77 节点 / 117 连线
  • 建议显存:8GB 起
  • 适用场景:人物换脸、虚拟试衣、商品换装与背景替换,电商模特图的主力玩法。

工作流节点图

无损高质量换脸 工作流节点图

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

资源头图

无损高质量换脸

使用说明

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

源码预览

{
    "last_node_id": 104,
    "last_link_id": 181,
    "nodes": [
        {
            "id": 16,
            "type": "ApplyInstantIDAdvanced",
            "pos": [
                -6180,
                6020
            ],
            "size": [
                310,
                340
            ],
            "flags": {
                "collapsed": false
            },
            "order": 44,
            "mode": 0,
            "inputs": [
                {
                    "name": "instantid",
                    "type": "INSTANTID",
                    "link": 22,
                    "label": "InstantID"
                },
                {
                    "name": "insightface",
                    "type": "FACEANALYSIS",
                    "link": 23,
                    "slot_index": 1,
                    "label": "InsightFace"
                },
                {
                    "name": "control_net",
                    "type": "CONTROL_NET",
                    "link": 24,
                    "label": "ControlNet"
                },
                {
                    "name": "image",
                    "type": "IMAGE",
                    "link": 25,
                    "slot_index": 3,
                    "label": "图像"
                },
                {
                    "name": "model",
                    "type": "MODEL",
                    "link": 155,
                    "slot_index": 4,
                    "label": "模型"
                },
                {
                    "name": "positive",
                    "type": "CONDITIONING",
                    "link": 26,
                    "label": "正面条件"
                },
                {
                    "name": "negative",
                    "type": "CONDITIONING",
                    "link": 27,
                    "label": "负面条件"
                },
                {
                    "name": "image_kps",
                    "type": "IMAGE",
                    "link": 28,
                    "slot_index": 7,
                    "label": "图像_kps",
                    "shape": 7
                },
                {
                    "name": "mask",
                    "type": "MASK",
                    "link": null,
                    "label": "遮罩",
                    "shape": 7
                }
            ],
            "outputs": [
                {
                    "name": "MODEL",
                    "type": "MODEL",
                    "links": [
                        71
                    ],
                    "slot_index": 0,
                    "shape": 3,
                    "label": "模型"
                },
                {
                    "name": "positive",
                    "type": "CONDITIONING",
                    "links": [
                        11,
                        64
                    ],
                    "slot_index": 1,
                    "shape": 3,
                    "label": "正面条件"
                },
                {
                    "name": "negative",
                    "type": "CONDITIONING",
                    "links": [
                        12,
                        65
                    ],
                    "slot_index": 2,
                    "shape": 3,
                    "label": "负面条件"
                }
            ],
            "properties": {
                "Node name for S&R": "ApplyInstantIDAdvanced",
                "ttNbgOverride": {
                    "color": "#1f1f48",
                    "groupcolor": "#88A"
                }
            },
            "widgets_values": [
                0.98,
                0.98,
                0,
                1,
                0.30000000000000004,
                "average"
            ],
       
… (完整内容请下载文件查看)

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

发表回复

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

提交评论