- 版本 [version]
- 下载 131
- 文件大小 18848
- 文件计数 1
- 创建日期 2026年2月24日
- 最后更新 2026年9月20日
换脸
换脸:基于 多模型 搭建的换脸换装方案,节点规模 9 个、连线 12 条。工作流主路径为 CLIPTextEncode ×2、LoadImage ×2、UltralyticsDetectorProvider ×1,配合 输出图像;节点已按执行顺序排布,便于二次修改。主模型 inswapper_128.onnx、codeformer.pth。下载后直接导入即可使用,建议显存 8GB 起。
- 主模型:inswapper_128.onnx、codeformer.pth
- 核心节点:CLIPTextEncode ×2、LoadImage ×2、UltralyticsDetectorProvider ×1
- 输出形式:输出图像
- 规模:9 节点 / 12 连线
- 建议显存:8GB 起
- 适用场景:人物换脸、虚拟试衣、商品换装与背景替换,电商模特图的主力玩法。
工作流节点图
图较大可横向滚动;点击图片查看高清矢量原图(浏览器中可自由缩放)。
资源头图

使用说明
下载工作流文件后在 ComfyUI 中直接拖入画布(或菜单 Load 导入)即可运行;缺失的自定义节点用 ComfyUI Manager 一键安装,模型按文件名放入对应的 models 目录。
源码预览
{
"last_node_id": 25,
"last_link_id": 37,
"nodes": [
{
"id": 10,
"type": "UltralyticsDetectorProvider",
"pos": [
2191.920068760128,
576.0482387077619
],
"size": [
315,
78
],
"flags": [],
"order": 0,
"mode": 0,
"outputs": [
{
"name": "BBOX_DETECTOR",
"type": "BBOX_DETECTOR",
"links": [
10
],
"shape": 3,
"label": "BBox检测"
},
{
"name": "SEGM_DETECTOR",
"type": "SEGM_DETECTOR",
"links": null,
"shape": 3,
"label": "SEGM检测"
}
],
"properties": {
"Node name for S&R": "UltralyticsDetectorProvider"
},
"widgets_values": [
"bbox/face_yolov8m"
],
"_widget_cache_map": [],
"category": "Custom Nodes"
},
{
"id": 9,
"type": "CLIPTextEncode",
"pos": [
2075.9200687601274,
289.0482387077617
],
"size": [
400,
200
],
"flags": [],
"order": 5,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 12,
"label": "CLIP"
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
9
],
"shape": 3,
"label": "条件",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"deformity"
],
"_widget_cache_map": [],
"category": "Primitive Nodes"
},
{
"id": 8,
"type": "CLIPTextEncode",
"pos": [
2091,
3
],
"size": [
400,
200
],
"flags": [],
"order": 4,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 11,
"label": "CLIP"
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
8
],
"shape": 3,
"label": "条件",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"A girl, with a pretty face."
],
"_widget_cache_map": [],
"category": "Primitive Nodes"
},
{
"id": 7,
"type": "CheckpointLoaderSimple",
"pos": [
1615,
78
],
"size": [
380.5632019042969,
98.39017486572266
],
"flags": []
… (完整内容请下载文件查看)
代码较长,以上仅前 3800 字符 —— 点击下方按钮下载完整 JSON。



