ComfyPilotComfyPilot
工作流 / 视频 / Wan万相 2.1 文生视频
Wan万相 2.1 文生视频

Wan万相 2.1 文生视频

Wan 2.1 Text to Video

使用Wan 2.1从文本提示生成视频。

视频 11 个节点 64 次使用 ComfyUI ≥ 0.3.31 ComfyUI 11 KB

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

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

需要的权重

这个工作流引用了 3 个权重文件,其中 3 个能在本站模型库里找到。

umt5_xxl_fp8_e4m3fn_scaled.safetensors 在模型库查看
wan2.1_t2v_1.3B_fp16.safetensors 在模型库查看
wan_2.1_vae.safetensors 在模型库查看

节点构成

CLIPTextEncode × 2
CLIPLoader × 1
VAELoader × 1
UNETLoader × 1
EmptyHunyuanLatentVideo × 1
VAEDecode × 1
CreateVideo × 1
KSampler × 1
SaveVideo × 1
ModelSamplingSD3 × 1

官方标注的模型

Wan2.1Wan

工作流 JSON

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

1{
2 "id": "21720dda-bf84-4f0a-8469-a681c80e302e",
3 "revision": 0,
4 "last_node_id": 50,
5 "last_link_id": 97,
6 "nodes": [
7 {
8 "id": 38,
9 "type": "CLIPLoader",
10 "pos": [
11 -120,
12 170
13 ],
14 "size": [
15 390,
16 106
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [],
22 "outputs": [
23 {
24 "name": "CLIP",
25 "type": "CLIP",
26 "slot_index": 0,
27 "links": [
28 74,
29 75
30 ]
31 }
32 ],
33 "properties": {
34 "Node name for S&R": "CLIPLoader",
35 "models": [
36 {
37 "name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
38 "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors?download=true",
39 "directory": "text_encoders"
40 }
41 ]
42 },
43 "widgets_values": [
44 "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
45 "wan",
46 "default"
47 ]
48 },
49 {
50 "id": 39,
51 "type": "VAELoader",
52 "pos": [
53 -120,
54 320
55 ],
56 "size": [
57 390,
58 60
59 ],
60 "flags": [],
61 "order": 1,
62 "mode": 0,
63 "inputs": [],
64 "outputs": [
65 {
66 "name": "VAE",
67 "type": "VAE",
68 "slot_index": 0,
69 "links": [
70 76
71 ]
72 }
73 ],
74 "properties": {
75 "Node name for S&R": "VAELoader",
76 "models": [
77 {
78 "name": "wan_2.1_vae.safetensors",
79 "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors?download=true",
80 "directory": "vae"
81 }
82 ]
83 },
84 "widgets_values": [
85 "wan_2.1_vae.safetensors"
86 ]
87 },
88 {
89 "id": 7,
90 "type": "CLIPTextEncode",
91 "pos": [
92 310,
93 250
94 ],
95 "size": [
96 425.27801513671875,
97 180.6060791015625
98 ],
99 "flags": [],
100 "order": 5,
101 "mode": 0,
102 "inputs": [
103 {
104 "name": "clip",
105 "type": "CLIP",
106 "link": 75
107 }
108 ],
109 "outputs": [
110 {
111 "name": "CONDITIONING",
112 "type": "CONDITIONING",
113 "slot_index": 0,
114 "links": [
115 52
116 ]
117 }
118 ],
119 "title": "CLIP Text Encode (Negative Prompt)",
120 "properties": {
121 "Node name for S&R": "CLIPTextEncode"
122 },
123 "widgets_values": [
124 "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走"
125 ],
126 "color": "#322",
127 "bgcolor": "#533"
128 },
129 {
130 "id": 6,
131 "type": "CLIPTextEncode",
132 "pos": [
133 310,
134 40
135 ],
136 "size": [
137 422.84503173828125,
138 164.31304931640625
139 ],
140 "flags": [],
141 "order": 4,
142 "mode": 0,
143 "inputs": [
144 {
145 "name": "clip",
146 "type": "CLIP",
147 "link": 74
148 }
149 ],
150 "outputs": [
151 {
152 "name": "CONDITIONING",
153 "type": "CONDITIONING",
154 "slot_index": 0,
155 "links": [
156 46
157 ]
158 }
159 ],
160 "title": "CLIP Text Encode (Positive Prompt)",
161 "properties": {
162 "Node name for S&R": "CLIPTextEncode"
163 },
164 "widgets_values": [
165 "a fox moving quickly in a beautiful winter scenery nature trees mountains daytime tracking camera"
166 ],
167 "color": "#232",
168 "bgcolor": "#353"
169 },
170 {
171 "id": 37,
172 "type": "UNETLoader",
173 "pos": [
174 -120,
175 40
176 ],
177 "size": [
178 390,
179 82
180 ],
181 "flags": [],
182 "order": 2,
183 "mode": 0,
184 "inputs": [],
185 "outputs": [
186 {
187 "name": "MODEL",
188 "type": "MODEL",
189 "slot_index": 0,
190 "links": [
191 94
192 ]
193 }
194 ],
195 "properties": {
196 "Node name for S&R": "UNETLoader",
197 "models": [
198 {
199 "name": "wan2.1_t2v_1.3B_fp16.safetensors",
200 "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_t2v_1.3B_fp16.safetensors?download=true",
201 "directory": "diffusion_models"
202 }
203 ]
204 },
205 "widgets_values": [
206 "wan2.1_t2v_1.3B_fp16.safetensors",
207 "default"
208 ]
209 },
210 {
211 "id": 40,
212 "type": "EmptyHunyuanLatentVideo",
213 "pos": [
214 -80,
215 490
216 ],
217 "size": [
218 315,
219 130
220 ],
221 "flags": [],
222 "order": 3,
223 "mode": 0,
224 "inputs": [],
225 "outputs": [
226 {
227 "name": "LATENT",
228 "type": "LATENT",
229 "slot_index": 0,
230 "links": [
231 91
232 ]
233 }
234 ],
235 "properties": {
236 "Node name for S&R": "EmptyHunyuanLatentVideo"
237 },
238 "widgets_values": [
239 832,
240 480,
241 33,
242 1
243 ]
244 },
245 {
246 "id": 8,
247 "type": "VAEDecode",
248 "pos": [
249 1100,
250 40
251 ],
252 "size": [
253 210,
254 46
255 ],
256 "flags": [],
257 "order": 8,
258 "mode": 0,
259 "inputs": [
260 {
261 "name": "samples",
262 "type": "LATENT",
263 "link": 35
264 },
265 {
266 "name": "vae",
267 "type": "VAE",
268 "link": 76
269 }
270 ],
271 "outputs": [
272 {
273 "name": "IMAGE",
274 "type": "IMAGE",
275 "slot_index": 0,
276 "links": [
277 96
278 ]
279 }
280 ],
281 "properties": {
282 "Node name for S&R": "VAEDecode"
283 },
284 "widgets_values": []
285 },
286 {
287 "id": 49,
288 "type": "CreateVideo",
289 "pos": [
290 1110,
291 140
292 ],
293 "size": [
294 270,
295 78
296 ],
297 "flags": [],
298 "order": 9,
299 "mode": 0,
300 "inputs": [
301 {
302 "name": "images",
303 "type": "IMAGE",
304 "link": 96
305 },
306 {
307 "name": "audio",
308 "shape": 7,
309 "type": "AUDIO",
310 "link": null
311 }
312 ],
313 "outputs": [
314 {
315 "name": "VIDEO",
316 "type": "VIDEO",
317 "links": [
318 97
319 ]
320 }
321 ],
322 "properties": {
323 "Node name for S&R": "CreateVideo"
324 },
325 "widgets_values": [
326 16
327 ]
328 },
329 {
330 "id": 3,
331 "type": "KSampler",
332 "pos": [
333 770,
334 160
335 ],
336 "size": [
337 315,
338 262
339 ],
340 "flags": [],
341 "order": 7,
342 "mode": 0,
343 "inputs": [
344 {
345 "name": "model",
346 "type": "MODEL",
347 "link": 95
348 },
349 {
350 "name": "positive",
351 "type": "CONDITIONING",
352 "link": 46
353 },
354 {
355 "name": "negative",
356 "type": "CONDITIONING",
357 "link": 52
358 },
359 {
360 "name": "latent_image",
361 "type": "LATENT",
362 "link": 91
363 }
364 ],
365 "outputs": [
366 {
367 "name": "LATENT",
368 "type": "LATENT",
369 "slot_index": 0,
370 "links": [
371 35
372 ]
373 }
374 ],
375 "properties": {
376 "Node name for S&R": "KSampler"
377 },
378 "widgets_values": [
379 82628696717253,
380 "randomize",
381 30,
382 6,
383 "uni_pc",
384 "simple",
385 1
386 ]
387 },
388 {
389 "id": 50,
390 "type": "SaveVideo",
391 "pos": [
392 1110,
393 270
394 ],
395 "size": [
396 480,
397 440
398 ],
399 "flags": [],
400 "order": 10,
401 "mode": 0,
402 "inputs": [
403 {
404 "name": "video",
405 "type": "VIDEO",
406 "link": 97
407 }
408 ],
409 "outputs": [],
410 "properties": {
411 "Node name for S&R": "SaveVideo"
412 },
413 "widgets_values": [
414 "video/ComfyUI",
415 "auto",
416 "auto"
417 ]
418 },
419 {
420 "id": 48,
421 "type": "ModelSamplingSD3",
422 "pos": [
423 770,
424 40
425 ],
426 "size": [
427 210,
428 58
429 ],
430 "flags": [],
431 "order": 6,
432 "mode": 0,
433 "inputs": [
434 {
435 "name": "model",
436 "type": "MODEL",
437 "link": 94
438 }
439 ],
440 "outputs": [
441 {
442 "name": "MODEL",
443 "type": "MODEL",
444 "slot_index": 0,
445 "links": [
446 95
447 ]
448 }
449 ],
450 "properties": {
451 "Node name for S&R": "ModelSamplingSD3"
452 },
453 "widgets_values": [
454 8
455 ]
456 }
457 ],
458 "links": [
459 [
460 35,
461 3,
462 0,
463 8,
464 0,
465 "LATENT"
466 ],
467 [
468 46,
469 6,
470 0,
471 3,
472 1,
473 "CONDITIONING"
474 ],
475 [
476 52,
477 7,
478 0,
479 3,
480 2,
481 "CONDITIONING"
482 ],
483 [
484 74,
485 38,
486 0,
487 6,
488 0,
489 "CLIP"
490 ],
491 [
492 75,
493 38,
494 0,
495 7,
496 0,
497 "CLIP"
498 ],
499 [
500 76,
501 39,
502 0,
503 8,
504 1,
505 "VAE"
506 ],
507 [
508 91,
509 40,
510 0,
511 3,
512 3,
513 "LATENT"
514 ],
515 [
516 94,
517 37,
518 0,
519 48,
520 0,
521 "MODEL"
522 ],
523 [
524 95,
525 48,
526 0,
527 3,
528 0,
529 "MODEL"
530 ],
531 [
532 96,
533 8,
534 0,
535 49,
536 0,
537 "IMAGE"
538 ],
539 [
540 97,
541 49,
542 0,
543 50,
544 0,
545 "VIDEO"
546 ]
547 ],
548 "groups": [
549 {
550 "id": 1,
551 "title": "Step 3 - Prompt",
552 "bounding": [
553 300,
554 -30,
555 445.27801513671875,
556 474.2060852050781
557 ],
558 "color": "#3f789e",
559 "font_size": 24,
560 "flags": []
561 },
562 {
563 "id": 2,
564 "title": "Step1 - Load models",
565 "bounding": [
566 -130,
567 -30,
568 410,
569 423.6000061035156
570 ],
571 "color": "#3f789e",
572 "font_size": 24,
573 "flags": []
574 },
575 {
576 "id": 3,
577 "title": "Step2 - Video size",
578 "bounding": [
579 -130,
580 410,
581 410,
582 220
583 ],
584 "color": "#3f789e",
585 "font_size": 24,
586 "flags": []
587 }
588 ],
589 "config": [],
590 "extra": {
591 "ds": {
592 "scale": 0.5730855330117052,
593 "offset": [
594 463.72322466466267,
595 287.3842608756025
596 ]
597 },
598 "frontendVersion": "1.25.3"
599 },
600 "version": 0.4
601}