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

多人换脸

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

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

工作流节点图

多人换脸 工作流节点图

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

资源头图

多人换脸

使用说明

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

源码预览

{
    "id": "435ed21d-93cf-4ab5-8f28-a8c5d21a9f58",
    "revision": 0,
    "last_node_id": 225,
    "last_link_id": 427,
    "nodes": [
        {
            "id": 204,
            "type": "DetectFaces",
            "pos": [
                714.0669555664062,
                -493.6099853515625
            ],
            "size": [
                268.51910400390625,
                126
            ],
            "flags": [],
            "order": 27,
            "mode": 0,
            "inputs": [
                {
                    "label": "image",
                    "name": "image",
                    "type": "IMAGE",
                    "link": 380
                },
                {
                    "label": "mask",
                    "name": "mask",
                    "shape": 7,
                    "type": "MASK",
                    "link": 385
                }
            ],
            "outputs": [
                {
                    "label": "faces",
                    "name": "faces",
                    "type": "FACE",
                    "slot_index": 0,
                    "links": [
                        382,
                        386
                    ]
                }
            ],
            "properties": {
                "Node name for S&R": "DetectFaces",
                "cnr_id": "facetools",
                "ver": "0a35fc2104281d0eb6ec1850737b115f64f150f4",
                "widget_ue_connectable": []
            },
            "widgets_values": [
                0.5,
                64,
                1024
            ]
        },
        {
            "id": 86,
            "type": "LoadImage",
            "pos": [
                -468.2763977050781,
                1284.1552734375
            ],
            "size": [
                315,
                314
            ],
            "flags": [],
            "order": 0,
            "mode": 0,
            "inputs": [],
            "outputs": [
                {
                    "label": "图像",
                    "name": "IMAGE",
                    "type": "IMAGE",
                    "slot_index": 0,
                    "links": [
                        368
                    ]
                },
                {
                    "label": "遮罩",
                    "name": "MASK",
                    "type": "MASK"
                }
            ],
            "properties": {
                "Node name for S&R": "LoadImage",
                "cnr_id": "comfy-core",
                "ver": "0.3.30",
                "widget_ue_connectable": []
            },
            "widgets_values": [
                "0 (3).jpg",
                "image",
                ""
            ],
            "_widget_cache_map": {
                "0 (3).jpg": {
                    "value": "img/5c9f1753439746439994a8f1189fc6d4/a36720d4d2590647623c1375f83cf96029e861f3f9434f907a40c94c48619a45.jpg",
                    "name": "0 (3).jpg",
                    "url": "https://liblibai-tmp-image.liblib.cloud/img/5c9f1753439746439994a8f1189fc6d4/a36720d4d2590647623c1375f83cf96029e861f3f9434f907a40c94c48619a45.jpg",
                    "width": 890,
                    "height": 1185
                }
            }
        },
        {
            "id": 27,
            "type": "SEGSPreview",
            "pos": [
                -466.3675842285156,
                777.3317260742188
            ],
            "size": [
                2013.6964111328125,
                426.3652648925781
            ],
            "flags": [],
            "order": 20,
            "mode": 0,
            "inputs": [
                {
                    "label": "Seg",
                    "name": "segs",
                    "type": "SEGS",
                    "link": 22
         
… (完整内容请下载文件查看)

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

发表回复

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

提交评论