工作流 /
视频 /
混元视频文生视频

混元视频文生视频
Hunyuan Video Text to Video
使用Hunyuan模型从文本提示生成视频。
视频
19 个节点 10 次使用 ComfyUI ≥ 0.3.31 ComfyUI 16 KB
需要的权重
这个工作流引用了 4 个权重文件,其中 4 个能在本站模型库里找到。
clip_l.safetensors
在模型库查看
hunyuan_video_t2v_720p_bf16.safetensors
在模型库查看
hunyuan_video_vae_bf16.safetensors
在模型库查看
llava_llama3_fp8_scaled.safetensors
在模型库查看
节点构成
Note
× 2
DualCLIPLoader
× 1
UNETLoader
× 1
VAELoader
× 1
CLIPTextEncode
× 1
EmptyHunyuanLatentVideo
× 1
KSamplerSelect
× 1
BasicScheduler
× 1
BasicGuider
× 1
ModelSamplingSD3
× 1
RandomNoise
× 1
SamplerCustomAdvanced
× 1
FluxGuidance
× 1
VAEDecodeTiled
× 1
VAEDecode
× 1
CreateVideo
× 1
官方标注的模型
Hunyuan VideoTencent
工作流 JSON
和上面「下载工作流 JSON」是同一份文件。
1{
2 "id": "b07dba9f-f409-47a6-84bb-a6639b2a70da",
3 "revision": 0,
4 "last_node_id": 80,
5 "last_link_id": 217,
6 "nodes": [
7 {
8 "id": 11,
9 "type": "DualCLIPLoader",
10 "pos": [
11 -40,
12 250
13 ],
14 "size": [
15 350,
16 130
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 205
29 ]
30 }
31 ],
32 "properties": {
33 "Node name for S&R": "DualCLIPLoader",
34 "models": [
35 {
36 "name": "clip_l.safetensors",
37 "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors?download=true",
38 "directory": "text_encoders"
39 },
40 {
41 "name": "llava_llama3_fp8_scaled.safetensors",
42 "url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/text_encoders/llava_llama3_fp8_scaled.safetensors?download=true",
43 "directory": "text_encoders"
44 }
45 ]
46 },
47 "widgets_values": [
48 "clip_l.safetensors",
49 "llava_llama3_fp8_scaled.safetensors",
50 "hunyuan_video",
51 "default"
52 ]
53 },
54 {
55 "id": 12,
56 "type": "UNETLoader",
57 "pos": [
58 -40,
59 130
60 ],
61 "size": [
62 350,
63 82
64 ],
65 "flags": [],
66 "order": 1,
67 "mode": 0,
68 "inputs": [],
69 "outputs": [
70 {
71 "name": "MODEL",
72 "type": "MODEL",
73 "slot_index": 0,
74 "links": [
75 190,
76 209
77 ]
78 }
79 ],
80 "properties": {
81 "Node name for S&R": "UNETLoader",
82 "models": [
83 {
84 "name": "hunyuan_video_t2v_720p_bf16.safetensors",
85 "url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/diffusion_models/hunyuan_video_t2v_720p_bf16.safetensors?download=true",
86 "directory": "diffusion_models"
87 }
88 ]
89 },
90 "widgets_values": [
91 "hunyuan_video_t2v_720p_bf16.safetensors",
92 "default"
93 ],
94 "color": "#223",
95 "bgcolor": "#335"
96 },
97 {
98 "id": 77,
99 "type": "Note",
100 "pos": [
101 -40,
102 0
103 ],
104 "size": [
105 350,
106 88
107 ],
108 "flags": [],
109 "order": 2,
110 "mode": 0,
111 "inputs": [],
112 "outputs": [],
113 "properties": [],
114 "widgets_values": [
115 "Select a fp8 weight_dtype if you are running out of memory."
116 ],
117 "color": "#222",
118 "bgcolor": "#000"
119 },
120 {
121 "id": 10,
122 "type": "VAELoader",
123 "pos": [
124 -40,
125 430
126 ],
127 "size": [
128 350,
129 60
130 ],
131 "flags": [],
132 "order": 3,
133 "mode": 0,
134 "inputs": [],
135 "outputs": [
136 {
137 "name": "VAE",
138 "type": "VAE",
139 "slot_index": 0,
140 "links": [
141 206,
142 211
143 ]
144 }
145 ],
146 "properties": {
147 "Node name for S&R": "VAELoader",
148 "models": [
149 {
150 "name": "hunyuan_video_vae_bf16.safetensors",
151 "url": "https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged/resolve/main/split_files/vae/hunyuan_video_vae_bf16.safetensors?download=true",
152 "directory": "vae"
153 }
154 ]
155 },
156 "widgets_values": [
157 "hunyuan_video_vae_bf16.safetensors"
158 ]
159 },
160 {
161 "id": 44,
162 "type": "CLIPTextEncode",
163 "pos": [
164 360,
165 0
166 ],
167 "size": [
168 422.8500061035156,
169 164.30999755859375
170 ],
171 "flags": [],
172 "order": 9,
173 "mode": 0,
174 "inputs": [
175 {
176 "name": "clip",
177 "type": "CLIP",
178 "link": 205
179 }
180 ],
181 "outputs": [
182 {
183 "name": "CONDITIONING",
184 "type": "CONDITIONING",
185 "slot_index": 0,
186 "links": [
187 175
188 ]
189 }
190 ],
191 "title": "CLIP Text Encode (Positive Prompt)",
192 "properties": {
193 "Node name for S&R": "CLIPTextEncode"
194 },
195 "widgets_values": [
196 "anime style anime girl with massive fennec ears and one big fluffy tail, she has blonde hair long hair blue eyes wearing a pink sweater and a long blue skirt walking in a beautiful outdoor scenery with snow mountains in the background"
197 ],
198 "color": "#232",
199 "bgcolor": "#353"
200 },
201 {
202 "id": 45,
203 "type": "EmptyHunyuanLatentVideo",
204 "pos": [
205 -30,
206 600
207 ],
208 "size": [
209 315,
210 130
211 ],
212 "flags": {
213 "collapsed": false
214 },
215 "order": 4,
216 "mode": 0,
217 "inputs": [],
218 "outputs": [
219 {
220 "name": "LATENT",
221 "type": "LATENT",
222 "slot_index": 0,
223 "links": [
224 180
225 ]
226 }
227 ],
228 "properties": {
229 "Node name for S&R": "EmptyHunyuanLatentVideo"
230 },
231 "widgets_values": [
232 848,
233 480,
234 73,
235 1
236 ]
237 },
238 {
239 "id": 16,
240 "type": "KSamplerSelect",
241 "pos": [
242 820,
243 320
244 ],
245 "size": [
246 250,
247 58
248 ],
249 "flags": [],
250 "order": 5,
251 "mode": 0,
252 "inputs": [],
253 "outputs": [
254 {
255 "name": "SAMPLER",
256 "type": "SAMPLER",
257 "links": [
258 19
259 ]
260 }
261 ],
262 "properties": {
263 "Node name for S&R": "KSamplerSelect"
264 },
265 "widgets_values": [
266 "euler"
267 ]
268 },
269 {
270 "id": 17,
271 "type": "BasicScheduler",
272 "pos": [
273 820,
274 420
275 ],
276 "size": [
277 250,
278 106
279 ],
280 "flags": [],
281 "order": 10,
282 "mode": 0,
283 "inputs": [
284 {
285 "name": "model",
286 "type": "MODEL",
287 "link": 190
288 }
289 ],
290 "outputs": [
291 {
292 "name": "SIGMAS",
293 "type": "SIGMAS",
294 "links": [
295 20
296 ]
297 }
298 ],
299 "properties": {
300 "Node name for S&R": "BasicScheduler"
301 },
302 "widgets_values": [
303 "simple",
304 20,
305 1
306 ]
307 },
308 {
309 "id": 22,
310 "type": "BasicGuider",
311 "pos": [
312 820,
313 230
314 ],
315 "size": [
316 250,
317 50
318 ],
319 "flags": [],
320 "order": 13,
321 "mode": 0,
322 "inputs": [
323 {
324 "name": "model",
325 "type": "MODEL",
326 "link": 195
327 },
328 {
329 "name": "conditioning",
330 "type": "CONDITIONING",
331 "link": 129
332 }
333 ],
334 "outputs": [
335 {
336 "name": "GUIDER",
337 "type": "GUIDER",
338 "slot_index": 0,
339 "links": [
340 30
341 ]
342 }
343 ],
344 "properties": {
345 "Node name for S&R": "BasicGuider"
346 },
347 "widgets_values": []
348 },
349 {
350 "id": 67,
351 "type": "ModelSamplingSD3",
352 "pos": [
353 820,
354 130
355 ],
356 "size": [
357 260,
358 60
359 ],
360 "flags": [],
361 "order": 11,
362 "mode": 0,
363 "inputs": [
364 {
365 "name": "model",
366 "type": "MODEL",
367 "link": 209
368 }
369 ],
370 "outputs": [
371 {
372 "name": "MODEL",
373 "type": "MODEL",
374 "slot_index": 0,
375 "links": [
376 195
377 ]
378 }
379 ],
380 "properties": {
381 "Node name for S&R": "ModelSamplingSD3"
382 },
383 "widgets_values": [
384 7
385 ]
386 },
387 {
388 "id": 25,
389 "type": "RandomNoise",
390 "pos": [
391 820,
392 0
393 ],
394 "size": [
395 260,
396 82
397 ],
398 "flags": [],
399 "order": 6,
400 "mode": 0,
401 "inputs": [],
402 "outputs": [
403 {
404 "name": "NOISE",
405 "type": "NOISE",
406 "links": [
407 37
408 ]
409 }
410 ],
411 "properties": {
412 "Node name for S&R": "RandomNoise"
413 },
414 "widgets_values": [
415 1,
416 "randomize"
417 ],
418 "color": "#2a363b",
419 "bgcolor": "#3f5159"
420 },
421 {
422 "id": 13,
423 "type": "SamplerCustomAdvanced",
424 "pos": [
425 1110,
426 10
427 ],
428 "size": [
429 272.3599853515625,
430 124.54000091552734
431 ],
432 "flags": [],
433 "order": 14,
434 "mode": 0,
435 "inputs": [
436 {
437 "name": "noise",
438 "type": "NOISE",
439 "link": 37
440 },
441 {
442 "name": "guider",
443 "type": "GUIDER",
444 "link": 30
445 },
446 {
447 "name": "sampler",
448 "type": "SAMPLER",
449 "link": 19
450 },
451 {
452 "name": "sigmas",
453 "type": "SIGMAS",
454 "link": 20
455 },
456 {
457 "name": "latent_image",
458 "type": "LATENT",
459 "link": 180
460 }
461 ],
462 "outputs": [
463 {
464 "name": "output",
465 "type": "LATENT",
466 "slot_index": 0,
467 "links": [
468 181,
469 210
470 ]
471 },
472 {
473 "name": "denoised_output",
474 "type": "LATENT",
475 "links": null
476 }
477 ],
478 "properties": {
479 "Node name for S&R": "SamplerCustomAdvanced"
480 },
481 "widgets_values": []
482 },
483 {
484 "id": 26,
485 "type": "FluxGuidance",
486 "pos": [
487 470,
488 230
489 ],
490 "size": [
491 317.3999938964844,
492 58
493 ],
494 "flags": [],
495 "order": 12,
496 "mode": 0,
497 "inputs": [
498 {
499 "name": "conditioning",
500 "type": "CONDITIONING",
501 "link": 175
502 }
503 ],
504 "outputs": [
505 {
506 "name": "CONDITIONING",
507 "type": "CONDITIONING",
508 "slot_index": 0,
509 "links": [
510 129
511 ]
512 }
513 ],
514 "properties": {
515 "Node name for S&R": "FluxGuidance"
516 },
517 "widgets_values": [
518 6
519 ],
520 "color": "#233",
521 "bgcolor": "#355"
522 },
523 {
524 "id": 73,
525 "type": "VAEDecodeTiled",
526 "pos": [
527 1420,
528 -40
529 ],
530 "size": [
531 210,
532 150
533 ],
534 "flags": [],
535 "order": 16,
536 "mode": 0,
537 "inputs": [
538 {
539 "name": "samples",
540 "type": "LATENT",
541 "link": 210
542 },
543 {
544 "name": "vae",
545 "type": "VAE",
546 "link": 211
547 }
548 ],
549 "outputs": [
550 {
551 "name": "IMAGE",
552 "type": "IMAGE",
553 "slot_index": 0,
554 "links": [
555 216
556 ]
557 }
558 ],
559 "properties": {
560 "Node name for S&R": "VAEDecodeTiled"
561 },
562 "widgets_values": [
563 256,
564 64,
565 64,
566 8
567 ]
568 },
569 {
570 "id": 74,
571 "type": "Note",
572 "pos": [
573 1670,
574 -50
575 ],
576 "size": [
577 210,
578 170
579 ],
580 "flags": [],
581 "order": 7,
582 "mode": 0,
583 "inputs": [],
584 "outputs": [],
585 "properties": [],
586 "widgets_values": [
587 "Use the tiled decode node by default because most people will need it.\n\nLower the tile_size and overlap if you run out of memory."
588 ],
589 "color": "#222",
590 "bgcolor": "#000"
591 },
592 {
593 "id": 8,
594 "type": "VAEDecode",
595 "pos": [
596 1420,
597 -140
598 ],
599 "size": [
600 210,
601 46
602 ],
603 "flags": [],
604 "order": 15,
605 "mode": 2,
606 "inputs": [
607 {
608 "name": "samples",
609 "type": "LATENT",
610 "link": 181
611 },
612 {
613 "name": "vae",
614 "type": "VAE",
615 "link": 206
616 }
617 ],
618 "outputs": [
619 {
620 "name": "IMAGE",
621 "type": "IMAGE",
622 "slot_index": 0,
623 "links": []
624 }
625 ],
626 "properties": {
627 "Node name for S&R": "VAEDecode"
628 },
629 "widgets_values": []
630 },
631 {
632 "id": 79,
633 "type": "CreateVideo",
634 "pos": [
635 1420,
636 160
637 ],
638 "size": [
639 220,
640 80
641 ],
642 "flags": [],
643 "order": 17,
644 "mode": 0,
645 "inputs": [
646 {
647 "name": "images",
648 "type": "IMAGE",
649 "link": 216
650 },
651 {
652 "name": "audio",
653 "shape": 7,
654 "type": "AUDIO",
655 "link": null
656 }
657 ],
658 "outputs": [
659 {
660 "name": "VIDEO",
661 "type": "VIDEO",
662 "links": [
663 217
664 ]
665 }
666 ],
667 "properties": {
668 "Node name for S&R": "CreateVideo"
669 },
670 "widgets_values": [
671 24
672 ]
673 },
674 {
675 "id": 80,
676 "type": "SaveVideo",
677 "pos": [
678 1420,
679 290
680 ],
681 "size": [
682 690,
683 470
684 ],
685 "flags": [],
686 "order": 18,
687 "mode": 0,
688 "inputs": [
689 {
690 "name": "video",
691 "type": "VIDEO",
692 "link": 217
693 }
694 ],
695 "outputs": [],
696 "properties": {
697 "Node name for S&R": "SaveVideo"
698 },
699 "widgets_values": [
700 "video/ComfyUI",
701 "auto",
702 "auto"
703 ]
704 },
705 {
706 "id": 78,
707 "type": "MarkdownNote",
708 "pos": [
709 -300,
710 -40
711 ],
712 "size": [
713 225,
714 88
715 ],
716 "flags": [],
717 "order": 8,
718 "mode": 0,
719 "inputs": [],
720 "outputs": [],
721 "properties": [],
722 "widgets_values": [
723 "🛈 [Learn more about this workflow](https://comfyanonymous.github.io/ComfyUI_examples/hunyuan_video/)"
724 ],
725 "color": "#222",
726 "bgcolor": "#000"
727 }
728 ],
729 "links": [
730 [
731 19,
732 16,
733 0,
734 13,
735 2,
736 "SAMPLER"
737 ],
738 [
739 20,
740 17,
741 0,
742 13,
743 3,
744 "SIGMAS"
745 ],
746 [
747 30,
748 22,
749 0,
750 13,
751 1,
752 "GUIDER"
753 ],
754 [
755 37,
756 25,
757 0,
758 13,
759 0,
760 "NOISE"
761 ],
762 [
763 129,
764 26,
765 0,
766 22,
767 1,
768 "CONDITIONING"
769 ],
770 [
771 175,
772 44,
773 0,
774 26,
775 0,
776 "CONDITIONING"
777 ],
778 [
779 180,
780 45,
781 0,
782 13,
783 4,
784 "LATENT"
785 ],
786 [
787 181,
788 13,
789 0,
790 8,
791 0,
792 "LATENT"
793 ],
794 [
795 190,
796 12,
797 0,
798 17,
799 0,
800 "MODEL"
801 ],
802 [
803 195,
804 67,
805 0,
806 22,
807 0,
808 "MODEL"
809 ],
810 [
811 205,
812 11,
813 0,
814 44,
815 0,
816 "CLIP"
817 ],
818 [
819 206,
820 10,
821 0,
822 8,
823 1,
824 "VAE"
825 ],
826 [
827 209,
828 12,
829 0,
830 67,
831 0,
832 "MODEL"
833 ],
834 [
835 210,
836 13,
837 0,
838 73,
839 0,
840 "LATENT"
841 ],
842 [
843 211,
844 10,
845 0,
846 73,
847 1,
848 "VAE"
849 ],
850 [
851 216,
852 73,
853 0,
854 79,
855 0,
856 "IMAGE"
857 ],
858 [
859 217,
860 79,
861 0,
862 80,
863 0,
864 "VIDEO"
865 ]
866 ],
867 "groups": [
868 {
869 "id": 1,
870 "title": "Step1 - Load models",
871 "bounding": [
872 -50,
873 -70,
874 370,
875 573.5999755859375
876 ],
877 "color": "#3f789e",
878 "font_size": 24,
879 "flags": []
880 },
881 {
882 "id": 2,
883 "title": "Step3 - Prompt",
884 "bounding": [
885 350,
886 -70,
887 442.8499755859375,
888 247.91000366210938
889 ],
890 "color": "#3f789e",
891 "font_size": 24,
892 "flags": []
893 },
894 {
895 "id": 3,
896 "title": "Step2 - Video size",
897 "bounding": [
898 -50,
899 520,
900 370,
901 220
902 ],
903 "color": "#3f789e",
904 "font_size": 24,
905 "flags": []
906 },
907 {
908 "id": 4,
909 "title": "Custom sampler",
910 "bounding": [
911 810,
912 -70,
913 582.3599853515625,
914 609.5999755859375
915 ],
916 "color": "#3f789e",
917 "font_size": 24,
918 "flags": []
919 }
920 ],
921 "config": [],
922 "extra": {
923 "ds": {
924 "scale": 0.7818181818181826,
925 "offset": [
926 759.4032257844112,
927 52.65515011834005
928 ]
929 },
930 "groupNodes": [],
931 "frontendVersion": "1.25.3"
932 },
933 "version": 0.4
934}