ComfyPilotComfyPilot
工作流 / 图像 / Kling:虚拟试穿
Kling:虚拟试穿

Kling:虚拟试穿

Kling: Virtual Try On

将服装图像与人物照片相结合,为虚拟模型穿上任意服装,生成逼真的试穿效果以及并排对比视图。它支持平铺、人台或模特穿着服装的照片,同时保留模型的面部和姿态。非常适合时尚电商预览、造型样机和虚拟试穿体验。

图像 6 个节点 2 个输入 28 次使用 ComfyUI ≥ 0.39.2 ComfyUI 7 KB

下载工作流 JSON 查看官方来源

下载后把文件拖进 ComfyUI 窗口即可打开。

节点构成

LoadImage × 2
KlingTryOnNode × 1
SaveImageAdvanced × 1
ImageCompare × 1
MarkdownNote × 1

官方标注的模型

Kling

工作流 JSON

和上面「下载工作流 JSON」是同一份文件。

1{
2 "id": "bec86b34-0ec0-4377-9d9b-dee8e7ee09b3",
3 "revision": 0,
4 "last_node_id": 7,
5 "last_link_id": 5,
6 "nodes": [
7 {
8 "id": 1,
9 "type": "KlingTryOnNode",
10 "pos": [
11 -2180,
12 -3080
13 ],
14 "size": [
15 270,
16 130
17 ],
18 "flags": [],
19 "order": 3,
20 "mode": 0,
21 "showAdvanced": true,
22 "inputs": [
23 {
24 "name": "person_image",
25 "type": "IMAGE",
26 "link": 1
27 },
28 {
29 "name": "garment_image",
30 "type": "IMAGE",
31 "link": 2
32 }
33 ],
34 "outputs": [
35 {
36 "name": "IMAGE",
37 "type": "IMAGE",
38 "links": [
39 3
40 ]
41 }
42 ],
43 "properties": {
44 "Node name for S&R": "KlingTryOnNode"
45 },
46 "widgets_values": [
47 true,
48 982174420,
49 "randomize"
50 ],
51 "widgets_values_named": {
52 "keep_pose": true,
53 "seed": 982174420,
54 "control_after_generate": "randomize"
55 },
56 "color": "#432",
57 "bgcolor": "#653"
58 },
59 {
60 "id": 2,
61 "type": "LoadImage",
62 "pos": [
63 -2520,
64 -3080
65 ],
66 "size": [
67 290,
68 110
69 ],
70 "flags": [],
71 "order": 0,
72 "mode": 0,
73 "inputs": [],
74 "outputs": [
75 {
76 "name": "IMAGE",
77 "type": "IMAGE",
78 "links": [
79 1,
80 4
81 ]
82 },
83 {
84 "name": "MASK",
85 "type": "MASK",
86 "links": null
87 }
88 ],
89 "properties": {
90 "Node name for S&R": "LoadImage"
91 },
92 "widgets_values": [
93 "model_colorful_outfit.png",
94 "image"
95 ],
96 "widgets_values_named": {
97 "image": "model_colorful_outfit.png",
98 "upload": "image"
99 }
100 },
101 {
102 "id": 3,
103 "type": "LoadImage",
104 "pos": [
105 -2520,
106 -2670
107 ],
108 "size": [
109 290,
110 110
111 ],
112 "flags": [],
113 "order": 1,
114 "mode": 0,
115 "inputs": [],
116 "outputs": [
117 {
118 "name": "IMAGE",
119 "type": "IMAGE",
120 "links": [
121 2
122 ]
123 },
124 {
125 "name": "MASK",
126 "type": "MASK",
127 "links": []
128 }
129 ],
130 "properties": {
131 "Node name for S&R": "LoadImage"
132 },
133 "widgets_values": [
134 "green_floral_dress.png",
135 "image"
136 ],
137 "widgets_values_named": {
138 "image": "green_floral_dress.png",
139 "upload": "image"
140 }
141 },
142 {
143 "id": 4,
144 "type": "SaveImageAdvanced",
145 "pos": [
146 -1870,
147 -3080
148 ],
149 "size": [
150 460,
151 590
152 ],
153 "flags": [],
154 "order": 4,
155 "mode": 0,
156 "showAdvanced": true,
157 "inputs": [
158 {
159 "name": "images",
160 "type": "IMAGE",
161 "link": 3
162 }
163 ],
164 "outputs": [
165 {
166 "name": "images",
167 "type": "IMAGE",
168 "links": [
169 5
170 ]
171 }
172 ],
173 "properties": [],
174 "widgets_values": [
175 "Kling_VTO",
176 "png",
177 "8-bit",
178 "sRGB"
179 ],
180 "widgets_values_named": {
181 "filename_prefix": "Kling_VTO",
182 "format": "png",
183 "format.bit_depth": "8-bit",
184 "format.input_color_space": "sRGB"
185 }
186 },
187 {
188 "id": 5,
189 "type": "ImageCompare",
190 "pos": [
191 -1350,
192 -3080
193 ],
194 "size": [
195 480,
196 600
197 ],
198 "flags": [],
199 "order": 5,
200 "mode": 0,
201 "inputs": [
202 {
203 "name": "image_a",
204 "shape": 7,
205 "type": "IMAGE",
206 "link": 4
207 },
208 {
209 "name": "image_b",
210 "shape": 7,
211 "type": "IMAGE",
212 "link": 5
213 }
214 ],
215 "outputs": [],
216 "properties": {
217 "Node name for S&R": "ImageCompare"
218 },
219 "widgets_values": [],
220 "widgets_values_named": []
221 },
222 {
223 "id": 6,
224 "type": "MarkdownNote",
225 "pos": [
226 -2880,
227 -3080
228 ],
229 "size": [
230 310,
231 400
232 ],
233 "flags": [],
234 "order": 2,
235 "mode": 0,
236 "inputs": [],
237 "outputs": [],
238 "properties": [],
239 "widgets_values": [
240 "## Input Assets\n\n- [model_colorful_outfit.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/model_colorful_outfit.png)\n- [green_floral_dress.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/green_floral_dress.png)\n\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
241 ],
242 "widgets_values_named": {
243 "text": "## Input Assets\n\n- [model_colorful_outfit.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/model_colorful_outfit.png)\n- [green_floral_dress.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/green_floral_dress.png)\n\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
244 },
245 "color": "#222",
246 "bgcolor": "#000"
247 }
248 ],
249 "links": [
250 [
251 1,
252 2,
253 0,
254 1,
255 0,
256 "IMAGE"
257 ],
258 [
259 2,
260 3,
261 0,
262 1,
263 1,
264 "IMAGE"
265 ],
266 [
267 4,
268 2,
269 0,
270 5,
271 0,
272 "IMAGE"
273 ],
274 [
275 5,
276 4,
277 0,
278 5,
279 1,
280 "IMAGE"
281 ],
282 [
283 3,
284 1,
285 0,
286 4,
287 0,
288 "IMAGE"
289 ]
290 ],
291 "groups": [],
292 "config": [],
293 "extra": {
294 "ds": {
295 "scale": 0.7934037027201579,
296 "offset": [
297 3227.887357502187,
298 3531.034402775917
299 ]
300 },
301 "frontendVersion": "1.57.0"
302 },
303 "version": 0.4
304}