- 版本 [version]
- 下载 51
- 文件大小 22121
- 文件计数 1
- 创建日期 2025年11月23日
- 最后更新 2026年9月20日
换产品图背景2.0
这是一份开箱即用的换脸换装工作流(ControlNet),拖入 ComfyUI 即可运行,全图 20 节点 / 21 连线。核心流程 PreviewImage ×2、CLIPTextEncode ×2、MiDaS-DepthMapPreprocessor ×1,输出图像,参数已调好,替换输入图即可复现效果。主模型 sam_vit_h_4b8939.pth。下载后直接导入即可使用,建议显存 8GB 起。
- 主模型:sam_vit_h_4b8939.pth
- 核心节点:PreviewImage ×2、CLIPTextEncode ×2、MiDaS-DepthMapPreprocessor ×1
- 输出形式:输出图像
- 规模:20 节点 / 21 连线
- 建议显存:8GB 起
- 适用场景:人物换脸、虚拟试衣、商品换装与背景替换,电商模特图的主力玩法。
工作流节点图
图较大可横向滚动;点击图片查看高清矢量原图(浏览器中可自由缩放)。
资源头图

使用说明
下载工作流文件后在 ComfyUI 中直接拖入画布(或菜单 Load 导入)即可运行;缺失的自定义节点用 ComfyUI Manager 一键安装,模型按文件名放入对应的 models 目录。
源码预览
{
"last_node_id": 80,
"last_link_id": 107,
"nodes": [
{
"id": 41,
"type": "MiDaS-DepthMapPreprocessor",
"pos": [
87.80698491210624,
422.1360444861185
],
"size": [
315,
106
],
"flags": [],
"order": 10,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 69,
"label": "图像",
"slot_index": 0
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
54,
64
],
"shape": 3,
"label": "图像",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MiDaS-DepthMapPreprocessor"
},
"widgets_values": [
6.28,
0.1,
512
],
"_widget_cache_map": [],
"category": "Custom Nodes"
},
{
"id": 43,
"type": "Anything Everywhere3",
"pos": [
-323.86948091290594,
267.34378112608795
],
"size": [
210,
66
],
"flags": {
"collapsed": true
},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "MODEL",
"type": "*",
"link": 55,
"label": "输入",
"color_on": "#B39DDB"
},
{
"name": "CLIP",
"type": "*",
"link": 56,
"label": "输入2",
"color_on": "#FFD500"
},
{
"name": "VAE",
"type": "*",
"link": 57,
"label": "输入3",
"color_on": "#FF6E6E"
}
],
"properties": {
"Node name for S&R": "Anything Everywhere3",
"group_restricted": false,
"color_restricted": false
},
"widgets_values": [],
"_widget_cache_map": [],
"category": "Custom Nodes"
},
{
"id": 45,
"type": "ControlNetApplyAdvanced",
"pos": [
86.80698491210624,
96.13604448611856
],
"size": [
315,
166
],
"flags": [],
"order": 14,
"mode": 0,
"inputs": [
{
"name": "positive",
"type": "CONDITIONING",
"link": 61,
"label": "正面条件"
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 62,
"label": "负面条件"
},
{
"name": "control_net",
"type": "CONTROL_NET",
"link": 63,
"label": "ControlNet",
"slot_index": 2
},
{
"name": "image",
"type": "IMAGE",
"link": 64,
… (完整内容请下载文件查看)
代码较长,以上仅前 3800 字符 —— 点击下方按钮下载完整 JSON。



