stablediffusiontutorials/wan-workflows
WAN 2.2 Installation + Workflow tutorial(Native/GGUF): ๐ https://www.stablediffusiontutorials.com/2025/08/wan-2.2-video-generation.html WAN 2.1 Installation + Workflow tutorial(Native/GGUF): ๐ https://www.stablediffusiontutorials.com/2025/02/wan-video-generation.html Train your WAN2.1 LoRA model (TXT2Vid/Img2Vid) on Windows/Linux:๐ https://www.stablediffusiontutorials.com/2025/03/wan-lora-train.html
3956
1{2 "id": "3a0c4220-e5be-4ed4-be19-5b76abd37310",3 "revision": 0,4 "last_node_id": 619,5 "last_link_id": 1053,6 "nodes": [7 {8 "id": 181,9 "type": "VHS_VideoCombine",10 "pos": [11 3820,12 423013 ],14 "size": [15 450,16 33417 ],18 "flags": {19 "pinned": true20 },21 "order": 21,22 "mode": 4,23 "inputs": [24 {25 "name": "images",26 "type": "IMAGE",27 "link": 74828 },29 {30 "name": "audio",31 "shape": 7,32 "type": "AUDIO",33 "link": 75034 },35 {36 "name": "meta_batch",37 "shape": 7,38 "type": "VHS_BatchManager",39 "link": null40 },41 {42 "name": "vae",43 "shape": 7,44 "type": "VAE",45 "link": null46 }47 ],48 "outputs": [49 {50 "name": "Filenames",51 "type": "VHS_FILENAMES",52 "links": null53 }54 ],55 "properties": {56 "cnr_id": "comfyui-videohelpersuite",57 "ver": "1.7.9",58 "Node name for S&R": "VHS_VideoCombine",59 "ue_properties": {60 "widget_ue_connectable": {},61 "version": "7.8",62 "input_ue_unconnectable": {}63 }64 },65 "widgets_values": {66 "frame_rate": 16,67 "loop_count": 0,68 "filename_prefix": "Wan21_SCAIL2",69 "format": "video/h264-mp4",70 "pix_fmt": "yuv420p",71 "crf": 19,72 "save_metadata": false,73 "trim_to_audio": false,74 "pingpong": false,75 "save_output": true,76 "videopreview": {77 "hidden": false,78 "paused": false,79 "params": {80 "filename": "Wan21_SCAIL2_00032-audio.mp4",81 "subfolder": "",82 "type": "output",83 "format": "video/h264-mp4",84 "frame_rate": 16,85 "workflow": "Wan21_SCAIL2_00032.png",86 "fullpath": "/mnt/c0650926-65e3-43e6-a7c4-094f858b2de4/Stable-Diffusion/ComfyUI/output/Wan21_SCAIL2_00032-audio.mp4"87 }88 }89 },90 "color": "#222",91 "bgcolor": "#000"92 },93 {94 "id": 427,95 "type": "Mute / Bypass Repeater (rgthree)",96 "pos": [97 3820,98 402099 ],100 "size": [101 274.4,102 46103 ],104 "flags": {105 "collapsed": true,106 "pinned": true107 },108 "order": 0,109 "mode": 4,110 "inputs": [111 {112 "dir": 3,113 "label": "",114 "name": "",115 "type": "*",116 "link": null117 }118 ],119 "outputs": [120 {121 "color_off": "#a80",122 "color_on": "#Fc0",123 "dir": 4,124 "label": "oc",125 "name": "OPT_CONNECTION",126 "type": "*",127 "slot_index": 0,128 "links": [129 737130 ]131 }132 ],133 "title": "Video Comparison",134 "properties": {135 "ue_properties": {136 "version": "7.0.1",137 "widget_ue_connectable": {},138 "input_ue_unconnectable": {}139 }140 },141 "shape": 1142 },143 {144 "id": 416,145 "type": "Mute / Bypass Repeater (rgthree)",146 "pos": [147 1480,148 3430149 ],150 "size": [151 212,152 46153 ],154 "flags": {155 "collapsed": true,156 "pinned": true157 },158 "order": 1,159 "mode": 4,160 "inputs": [161 {162 "dir": 3,163 "label": "",164 "name": "",165 "type": "*",166 "link": null167 }168 ],169 "outputs": [170 {171 "color_off": "#a80",172 "color_on": "#Fc0",173 "dir": 4,174 "label": "oc",175 "name": "OPT_CONNECTION",176 "type": "*",177 "slot_index": 0,178 "links": [179 724180 ]181 }182 ],183 "title": "Image Analyzer",184 "properties": {185 "ue_properties": {186 "version": "7.0.1",187 "widget_ue_connectable": {},188 "input_ue_unconnectable": {}189 }190 },191 "shape": 1192 },193 {194 "id": 418,195 "type": "Florence2Run",196 "pos": [197 1480,198 3430199 ],200 "size": [201 300,202 470203 ],204 "flags": {205 "collapsed": false,206 "pinned": true207 },208 "order": 15,209 "mode": 4,210 "inputs": [211 {212 "name": "image",213 "type": "IMAGE",214 "link": 821215 },216 {217 "name": "florence2_model",218 "type": "FL2MODEL",219 "link": 720220 }221 ],222 "outputs": [223 {224 "name": "image",225 "type": "IMAGE",226 "slot_index": 0,227 "links": null228 },229 {230 "name": "mask",231 "type": "MASK",232 "links": null233 },234 {235 "name": "caption",236 "type": "STRING",237 "slot_index": 2,238 "links": [239 721240 ]241 },242 {243 "name": "data",244 "type": "JSON",245 "links": null246 }247 ],248 "properties": {249 "cnr_id": "comfyui-florence2",250 "ver": "1.0.3",251 "Node name for S&R": "Florence2Run",252 "ue_properties": {253 "version": "7.0.1",254 "widget_ue_connectable": {},255 "input_ue_unconnectable": {}256 },257 "aux_id": "kijai/ComfyUI-Florence2"258 },259 "widgets_values": [260 "",261 "detailed_caption",262 false,263 false,264 256,265 3,266 false,267 "",268 123,269 "fixed"270 ],271 "shape": 1272 },273 {274 "id": 417,275 "type": "DownloadAndLoadFlorence2Model",276 "pos": [277 1800,278 3430279 ],280 "size": [281 400,282 140283 ],284 "flags": {285 "pinned": true286 },287 "order": 2,288 "mode": 4,289 "inputs": [290 {291 "name": "lora",292 "shape": 7,293 "type": "PEFTLORA",294 "link": null295 }296 ],297 "outputs": [298 {299 "name": "florence2_model",300 "type": "FL2MODEL",301 "links": [302 720303 ]304 }305 ],306 "title": "Load Florence2Model",307 "properties": {308 "cnr_id": "comfyui-florence2",309 "ver": "1.0.3",310 "Node name for S&R": "DownloadAndLoadFlorence2Model",311 "ue_properties": {312 "version": "7.0.1",313 "widget_ue_connectable": {},314 "input_ue_unconnectable": {}315 },316 "aux_id": "kijai/ComfyUI-Florence2"317 },318 "widgets_values": [319 "MiaoshouAI/Florence-2-base-PromptGen-v2.0",320 "fp16",321 "flash_attention_2"322 ],323 "shape": 1324 },325 {326 "id": 430,327 "type": "easy cleanGpuUsed",328 "pos": [329 4330,330 4210331 ],332 "size": [333 200,334 30335 ],336 "flags": {337 "collapsed": true,338 "pinned": true339 },340 "order": 28,341 "mode": 0,342 "inputs": [343 {344 "name": "anything",345 "type": "*",346 "link": 743347 }348 ],349 "outputs": [350 {351 "name": "output",352 "type": "*",353 "links": [354 863355 ]356 }357 ],358 "properties": {359 "cnr_id": "comfyui-easy-use",360 "ver": "8ba21d0b442002e66389d6e87faf828bfe05b2ad",361 "Node name for S&R": "easy cleanGpuUsed",362 "ue_properties": {363 "widget_ue_connectable": {},364 "input_ue_unconnectable": {},365 "version": "7.8"366 }367 },368 "widgets_values": [],369 "color": "#222",370 "bgcolor": "#000"371 },372 {373 "id": 526,374 "type": "ModelPatchTorchSettings",375 "pos": [376 3170,377 3570378 ],379 "size": [380 270,381 60382 ],383 "flags": {384 "pinned": true385 },386 "order": 35,387 "mode": 4,388 "inputs": [389 {390 "name": "model",391 "type": "MODEL",392 "link": 878393 }394 ],395 "outputs": [396 {397 "name": "MODEL",398 "type": "MODEL",399 "links": [400 880401 ]402 }403 ],404 "properties": {405 "cnr_id": "comfyui-kjnodes",406 "ver": "1.4.7",407 "Node name for S&R": "ModelPatchTorchSettings",408 "ue_properties": {409 "widget_ue_connectable": {},410 "version": "7.8",411 "input_ue_unconnectable": {}412 }413 },414 "widgets_values": [415 true416 ],417 "color": "#222",418 "bgcolor": "#000"419 },420 {421 "id": 527,422 "type": "Mute / Bypass Repeater (rgthree)",423 "pos": [424 3170,425 3430426 ],427 "size": [428 274.4,429 46430 ],431 "flags": {432 "collapsed": true,433 "pinned": true434 },435 "order": 3,436 "mode": 4,437 "inputs": [438 {439 "dir": 3,440 "label": "",441 "name": "",442 "type": "*",443 "link": null444 }445 ],446 "outputs": [447 {448 "color_off": "#a80",449 "color_on": "#Fc0",450 "dir": 4,451 "label": "oc",452 "name": "OPT_CONNECTION",453 "type": "*",454 "slot_index": 0,455 "links": [456 883457 ]458 }459 ],460 "title": "Sage Attention",461 "properties": {462 "ue_properties": {463 "version": "7.0.1",464 "widget_ue_connectable": {},465 "input_ue_unconnectable": {}466 }467 },468 "shape": 1469 },470 {471 "id": 525,472 "type": "PathchSageAttentionKJ",473 "pos": [474 3170,475 3430476 ],477 "size": [478 270,479 90480 ],481 "flags": {482 "pinned": true483 },484 "order": 34,485 "mode": 4,486 "inputs": [487 {488 "name": "model",489 "type": "MODEL",490 "link": 879491 }492 ],493 "outputs": [494 {495 "name": "MODEL",496 "type": "MODEL",497 "links": [498 878499 ]500 }501 ],502 "properties": {503 "cnr_id": "comfyui-kjnodes",504 "ver": "1.4.7",505 "Node name for S&R": "PathchSageAttentionKJ",506 "ue_properties": {507 "widget_ue_connectable": {},508 "version": "7.8",509 "input_ue_unconnectable": {}510 }511 },512 "widgets_values": [513 "auto",514 true515 ],516 "color": "#222",517 "bgcolor": "#000"518 },519 {520 "id": 421,521 "type": "Mute / Bypass Repeater (rgthree)",522 "pos": [523 1860,524 4020525 ],526 "size": [527 274.4,528 46529 ],530 "flags": {531 "collapsed": true,532 "pinned": true533 },534 "order": 4,535 "mode": 0,536 "inputs": [537 {538 "dir": 3,539 "label": "",540 "name": "",541 "type": "*",542 "link": null543 }544 ],545 "outputs": [546 {547 "color_off": "#a80",548 "color_on": "#Fc0",549 "dir": 4,550 "label": "oc",551 "name": "OPT_CONNECTION",552 "type": "*",553 "slot_index": 0,554 "links": [555 726556 ]557 }558 ],559 "title": "Wan SCAIL-2 Segmentation Control",560 "properties": {561 "ue_properties": {562 "version": "7.0.1",563 "widget_ue_connectable": {},564 "input_ue_unconnectable": {}565 }566 },567 "shape": 1568 },569 {570 "id": 207,571 "type": "VHS_LoadVideo",572 "pos": [573 1460,574 4170575 ],576 "size": [577 360,578 928.4444444444445579 ],580 "flags": {581 "pinned": true582 },583 "order": 5,584 "mode": 0,585 "inputs": [586 {587 "name": "meta_batch",588 "shape": 7,589 "type": "VHS_BatchManager",590 "link": null591 },592 {593 "name": "vae",594 "shape": 7,595 "type": "VAE",596 "link": null597 }598 ],599 "outputs": [600 {601 "name": "IMAGE",602 "type": "IMAGE",603 "links": [604 515,605 746606 ]607 },608 {609 "name": "frame_count",610 "type": "INT",611 "links": []612 },613 {614 "name": "audio",615 "type": "AUDIO",616 "links": [617 717618 ]619 },620 {621 "name": "video_info",622 "type": "VHS_VIDEOINFO",623 "links": null624 }625 ],626 "title": "Load Input Video ๐ฅ๐
ฅ๐
๐
ข",627 "properties": {628 "cnr_id": "comfyui-videohelpersuite",629 "ver": "8550981384301e9bc5bfea83e5c2c75258102593",630 "Node name for S&R": "VHS_LoadVideo",631 "ue_properties": {632 "widget_ue_connectable": {},633 "version": "7.5.2",634 "input_ue_unconnectable": {}635 }636 },637 "widgets_values": {638 "video": "5aca266d881e5ba27efb7fe7d2be40dc.mp4",639 "force_rate": 24,640 "custom_width": 0,641 "custom_height": 0,642 "frame_load_cap": 169,643 "skip_first_frames": 0,644 "select_every_nth": 1,645 "format": "Wan",646 "videopreview": {647 "hidden": false,648 "paused": false,649 "params": {650 "filename": "5aca266d881e5ba27efb7fe7d2be40dc.mp4",651 "type": "input",652 "format": "video/mp4",653 "force_rate": 24,654 "custom_width": 0,655 "custom_height": 0,656 "frame_load_cap": 169,657 "skip_first_frames": 0,658 "select_every_nth": 1659 }660 }661 },662 "color": "#222",663 "bgcolor": "#000"664 },665 {666 "id": 412,667 "type": "ImageConcatMulti",668 "pos": [669 3820,670 4020671 ],672 "size": [673 280,674 160675 ],676 "flags": {677 "pinned": true678 },679 "order": 25,680 "mode": 4,681 "inputs": [682 {683 "name": "image_1",684 "type": "IMAGE,MASK",685 "link": 719686 },687 {688 "name": "image_2",689 "shape": 7,690 "type": "IMAGE,MASK",691 "link": 954692 }693 ],694 "outputs": [695 {696 "name": "output",697 "type": "IMAGE",698 "links": [699 748700 ]701 }702 ],703 "properties": {704 "cnr_id": "comfyui-kjnodes",705 "ver": "1.4.4",706 "ue_properties": {707 "widget_ue_connectable": {},708 "version": "7.8",709 "input_ue_unconnectable": {}710 },711 "Node name for S&R": "ImageConcatMulti"712 },713 "widgets_values": [714 2,715 "right",716 true,717 null718 ],719 "color": "#222",720 "bgcolor": "#000"721 },722 {723 "id": 424,724 "type": "MarkdownNote",725 "pos": [726 1080,727 3380.721897946375728 ],729 "size": [730 360,731 130732 ],733 "flags": {734 "pinned": true735 },736 "order": 6,737 "mode": 0,738 "inputs": [],739 "outputs": [],740 "title": "โ ๏ธ Information",741 "properties": {742 "ue_properties": {743 "widget_ue_connectable": {},744 "version": "7.5.2",745 "input_ue_unconnectable": {}746 }747 },748 "widgets_values": [749 "# Image Analyzer\n### It analyzes the image. It may make the task of creating the prompt easier. It is not intended for copying it 1:1. To use it, enable the image analyzer disable all other non-essential options.\n\n"750 ],751 "color": "#781414",752 "bgcolor": "#640000",753 "shape": 2754 },755 {756 "id": 599,757 "type": "RIFE VFI",758 "pos": [759 4330,760 4630761 ],762 "size": [763 340,764 270765 ],766 "flags": {767 "pinned": true768 },769 "order": 36,770 "mode": 0,771 "inputs": [772 {773 "name": "frames",774 "type": "IMAGE",775 "link": 1052776 },777 {778 "name": "optional_interpolation_states",779 "shape": 7,780 "type": "INTERPOLATION_STATES",781 "link": null782 }783 ],784 "outputs": [785 {786 "name": "IMAGE",787 "type": "IMAGE",788 "links": [789 1018790 ]791 }792 ],793 "properties": {794 "cnr_id": "comfyui-frame-interpolation",795 "ver": "1.0.11",796 "Node name for S&R": "RIFE VFI",797 "ue_properties": {798 "widget_ue_connectable": {},799 "version": "7.8",800 "input_ue_unconnectable": {}801 }802 },803 "widgets_values": [804 "rife49.pth",805 250,806 2,807 true,808 true,809 1,810 "float32",811 false,812 10813 ],814 "color": "#222",815 "bgcolor": "#000"816 },817 {818 "id": 196,819 "type": "RTXVideoSuperResolution",820 "pos": [821 4330,822 4960823 ],824 "size": [825 340,826 106827 ],828 "flags": {829 "pinned": true830 },831 "order": 23,832 "mode": 0,833 "inputs": [834 {835 "name": "images",836 "type": "IMAGE",837 "link": 1018838 }839 ],840 "outputs": [841 {842 "name": "upscaled_images",843 "type": "IMAGE",844 "links": [845 1034846 ]847 }848 ],849 "title": "RTX Upscale",850 "properties": {851 "cnr_id": "comfyui_nvidia_rtx_nodes",852 "ver": "f13f030c3173aeaa9aeb092177716b4300038814",853 "Node name for S&R": "RTXVideoSuperResolution",854 "ue_properties": {855 "widget_ue_connectable": {},856 "version": "7.6.2",857 "input_ue_unconnectable": {}858 },859 "aux_id": "Comfy-Org/Nvidia_RTX_Nodes_ComfyUI"860 },861 "widgets_values": [862 "scale by multiplier",863 1.3,864 "HIGH"865 ],866 "color": "#222",867 "bgcolor": "#000"868 },869 {870 "id": 603,871 "type": "easy imageColorMatch",872 "pos": [873 4330,874 4460875 ],876 "size": [877 340,878 110879 ],880 "flags": {881 "pinned": true882 },883 "order": 38,884 "mode": 0,885 "inputs": [886 {887 "name": "image_ref",888 "type": "IMAGE",889 "link": 1030890 },891 {892 "name": "image_target",893 "type": "IMAGE",894 "link": 1024895 }896 ],897 "outputs": [898 {899 "name": "image",900 "type": "IMAGE",901 "links": [902 1027903 ]904 }905 ],906 "properties": {907 "cnr_id": "comfyui-easy-use",908 "ver": "8ba21d0b442002e66389d6e87faf828bfe05b2ad",909 "Node name for S&R": "easy imageColorMatch",910 "ue_properties": {911 "widget_ue_connectable": {},912 "input_ue_unconnectable": {},913 "version": "7.8"914 }915 },916 "widgets_values": [917 "reinhard",918 "Hide",919 "ComfyUI"920 ],921 "color": "#222",922 "bgcolor": "#000"923 },924 {925 "id": 420,926 "type": "Fast Bypasser (rgthree)",927 "pos": [928 1080,929 3570930 ],931 "size": [932 360,933 430934 ],935 "flags": {936 "collapsed": false,937 "pinned": true938 },939 "order": 26,940 "mode": 0,941 "inputs": [942 {943 "dir": 3,944 "name": "Image Analyzer",945 "type": "*",946 "link": 724947 },948 {949 "dir": 3,950 "name": "Wan SCAIL-2 Segmentation Control",951 "type": "*",952 "link": 726953 },954 {955 "dir": 3,956 "name": "Video Comparison",957 "type": "*",958 "link": 737959 },960 {961 "dir": 3,962 "name": "Interpolate | Upscale | Color Match",963 "type": "*",964 "link": 738965 },966 {967 "dir": 3,968 "name": "Remove Background (RMBG)",969 "type": "*",970 "link": 868971 },972 {973 "dir": 3,974 "name": "Wan Chunk FeedForward",975 "type": "*",976 "link": 882977 },978 {979 "dir": 3,980 "name": "Sage Attention",981 "type": "*",982 "link": 883983 },984 {985 "dir": 3,986 "name": "Color Correction",987 "type": "*",988 "link": 1011989 },990 {991 "dir": 3,992 "name": "Image Sharpen",993 "type": "*",994 "link": 1053995 },996 {997 "dir": 3,998 "name": "",999 "type": "*",1000 "link": null1001 }1002 ],1003 "outputs": [1004 {1005 "dir": 4,1006 "name": "OPT_CONNECTION",1007 "type": "*",1008 "links": []1009 }1010 ],1011 "title": "Select Options",1012 "properties": {1013 "toggleRestriction": "default",1014 "ue_properties": {1015 "version": "7.0.1",1016 "widget_ue_connectable": {},1017 "input_ue_unconnectable": {}1018 }1019 },1020 "color": "#222",1021 "bgcolor": "#000",1022 "shape": 11023 },1024 {1025 "id": 519,1026 "type": "MarkdownNote",1027 "pos": [1028 2240,1029 35401030 ],1031 "size": [1032 250,1033 1001034 ],1035 "flags": {1036 "pinned": true1037 },1038 "order": 7,1039 "mode": 0,1040 "inputs": [],1041 "outputs": [],1042 "title": "โ ๏ธ Information",1043 "properties": {1044 "ue_properties": {1045 "widget_ue_connectable": {},1046 "version": "7.5.2",1047 "input_ue_unconnectable": {}1048 }1049 },1050 "widgets_values": [1051 "# LoRA Loader\n### You can also use your own LoRA loader here, if this one doesn't suit you.\n"1052 ],1053 "color": "#781414",1054 "bgcolor": "#640000",1055 "shape": 21056 },1057 {1058 "id": 516,1059 "type": "WanChunkFeedForward",1060 "pos": [1061 2240,1062 33801063 ],1064 "size": [1065 250,1066 901067 ],1068 "flags": {1069 "collapsed": false,1070 "pinned": true1071 },1072 "order": 32,1073 "mode": 4,1074 "inputs": [1075 {1076 "name": "model",1077 "type": "MODEL",1078 "link": 9261079 }1080 ],1081 "outputs": [1082 {1083 "name": "model",1084 "type": "MODEL",1085 "links": [1086 861,1087 8821088 ]1089 }1090 ],1091 "properties": {1092 "cnr_id": "comfyui-kjnodes",1093 "ver": "1.4.4",1094 "Node name for S&R": "WanChunkFeedForward",1095 "ue_properties": {1096 "widget_ue_connectable": {},1097 "version": "7.8",1098 "input_ue_unconnectable": {}1099 }1100 },1101 "widgets_values": [1102 2,1103 40961104 ]1105 },1106 {1107 "id": 520,1108 "type": "easy clearCacheAll",1109 "pos": [1110 4520,1111 42101112 ],1113 "size": [1114 200,1115 301116 ],1117 "flags": {1118 "collapsed": true,1119 "pinned": true1120 },1121 "order": 33,1122 "mode": 0,1123 "inputs": [1124 {1125 "name": "anything",1126 "type": "*",1127 "link": 8631128 }1129 ],1130 "outputs": [1131 {1132 "name": "output",1133 "type": "*",1134 "links": [1135 1024,1136 10281137 ]1138 }1139 ],1140 "properties": {1141 "cnr_id": "comfyui-easy-use",1142 "ver": "1.3.6",1143 "Node name for S&R": "easy clearCacheAll",1144 "ue_properties": {1145 "widget_ue_connectable": {},1146 "version": "7.8",1147 "input_ue_unconnectable": {}1148 }1149 },1150 "widgets_values": [],1151 "color": "#222",1152 "bgcolor": "#000"1153 },1154 {1155 "id": 602,1156 "type": "ImpactSwitch",1157 "pos": [1158 4330,1159 42701160 ],1161 "size": [1162 340,1163 1301164 ],1165 "flags": {1166 "pinned": true1167 },1168 "order": 37,1169 "mode": 0,1170 "inputs": [1171 {1172 "name": "input1",1173 "shape": 7,1174 "type": "*",1175 "link": 10271176 },1177 {1178 "name": "input2",1179 "type": "IMAGE",1180 "link": 10281181 },1182 {1183 "name": "input3",1184 "type": "IMAGE",1185 "link": null1186 }1187 ],1188 "outputs": [1189 {1190 "label": "IMAGE",1191 "name": "selected_value",1192 "type": "*",1193 "links": [1194 10321195 ]1196 },1197 {1198 "name": "selected_label",1199 "type": "STRING",1200 "links": null