{"last_node_id":68,"last_link_id":63,"nodes":[{"id":11,"type":"LoadWanVideoT5TextEncoder","pos":[-153.7793426513672,-1077.2337646484375],"size":[377.1661376953125,130],"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"wan_t5_model","localized_name":"wan_t5_model","type":"WANTEXTENCODER","links":[15],"slot_index":0}],"properties":{"cnr_id":"ComfyUI-WanVideoWrapper","ver":"ff4bb8085e92d68b018e363f6e54e2e7729e6114","Node name for S&R":"LoadWanVideoT5TextEncoder"},"widgets_values":["umt5-xxl-enc-bf16.safetensors","bf16","offload_device","disabled"],"color":"#223","bgcolor":"#335"},{"id":57,"type":"FILM VFI","pos":[1460.27099609375,-658.9306640625],"size":[373.1408996582031,126],"flags":{"collapsed":false},"order":24,"mode":0,"inputs":[{"name":"frames","localized_name":"frames","type":"IMAGE","link":59},{"name":"optional_interpolation_states","localized_name":"optional_interpolation_states","type":"INTERPOLATION_STATES","shape":7,"link":null}],"outputs":[{"name":"IMAGE","localized_name":"IMAGE","type":"IMAGE","shape":3,"links":[58],"slot_index":0}],"properties":{"cnr_id":"comfyui-frame-interpolation","ver":"1.0.6","Node name for S&R":"FILM VFI"},"widgets_values":["film_net_fp32.pt",20,2],"color":"#222","bgcolor":"#000"},{"id":62,"type":"Note","pos":[732.2708129882812,-494.8070983886719],"size":[302.62200927734375,215.67115783691406],"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["TeaCache Settings for t2v 480p. If you hover over the node, it gives the values as high, medium and low. This doesn't equate to quality, but rather the strength of the setting. The higher you set it, the faster you gen, at the expense of visual quality and coherence.\n\nCoefficients on, 1 start step.\nLower speed, higher quality - 0.14 \nMedium speed, medium quality - 0.15 \nHigh speed, lowest quality - 0.20\n\nCoeffs on has been fixed compared to the previous iteration, so there's no reason to turn them off anymore.\n"],"color":"#432","bgcolor":"#653"},{"id":28,"type":"WanVideoDecode","pos":[1488.5496826171875,-890.7498779296875],"size":[315,174],"flags":{},"order":23,"mode":0,"inputs":[{"name":"vae","localized_name":"vae","type":"WANVAE","link":43},{"name":"samples","localized_name":"samples","type":"LATENT","link":33}],"outputs":[{"name":"images","localized_name":"images","type":"IMAGE","links":[59,60],"slot_index":0}],"properties":{"cnr_id":"ComfyUI-WanVideoWrapper","ver":"ff4bb8085e92d68b018e363f6e54e2e7729e6114","Node name for S&R":"WanVideoDecode"},"widgets_values":[true,272,272,144,128],"color":"#222","bgcolor":"#000"},{"id":38,"type":"WanVideoVAELoader","pos":[1488.370361328125,-1036.9464111328125],"size":[315,82],"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[{"name":"vae","localized_name":"vae","type":"WANVAE","links":[43],"slot_index":0}],"properties":{"cnr_id":"ComfyUI-WanVideoWrapper","ver":"ff4bb8085e92d68b018e363f6e54e2e7729e6114","Node name for S&R":"WanVideoVAELoader"},"widgets_values":["wanvideo\\Wan2_1_VAE_bf16.safetensors","bf16"],"color":"#2a363b","bgcolor":"#3f5159"},{"id":45,"type":"WanVideoVRAMManagement","pos":[-117.3587417602539,-484.922607421875],"size":[315,58],"flags":{},"order":3,"mode":0,"inputs":[],"outputs":[{"name":"vram_management_args","localized_name":"vram_management_args","type":"VRAM_MANAGEMENTARGS","links":[]}],"properties":{"cnr_id":"ComfyUI-WanVideoWrapper","ver":"ff4bb8085e92d68b018e363f6e54e2e7729e6114","Node name for S&R":"WanVideoVRAMManagement"},"widgets_values":[1],"color":"#223","bgcolor":"#335"},{"id":42,"type":"Note","pos":[-483.51361083984375,-595.90234375],"size":[314.96246337890625,152.77333068847656],"flags":{"pinned":true},"order":4,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["Adjust the blocks to swap based on your VRAM, this is a tradeoff between speed and memory usage.\n\nAlternatively there's option to use VRAM management introduced in DiffSynt-Studios. This is usually slower, but saves even more VRAM compared to BlockSwap"],"color":"#432","bgcolor":"#653"},{"id":63,"type":"Note","pos":[713.5015258789062,-1471.240478515625],"size":[328.437255859375,314.9066467285156],"flags":{"pinned":true},"order":5,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":[">Supported t2i Resolutions\n\n>1.3B\n480*832\n832*480\n624*624\n704*544\n544*704\n\n>14B\n720*1280\n1280*720\n960*960\n1088*832\n832*1088\n480*832\n832*480\n624*624\n704*544\n544*704\n\nLike i2v, you can use \"unsupported\" resolutions, but your results will be worse than if you used one that was supported."],"color":"#432","bgcolor":"#653"},{"id":66,"type":"Note","pos":[1096.3917236328125,-1391.0072021484375],"size":[327.250244140625,245.26773071289062],"flags":{"pinned":true},"order":6,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["The official Wan script sets cfg and shift to 5 for both t2v and i2v, so consider that baseline. Kijai sets his cfg to 6 by default.\n\ncfg controls how closely the generated video aligns with the text or image prompt. Setting cfg higher than 6 or so can introduce abrupt brightness and color changes.\n\nShift apparently influences the motion or temporal dynamics in the video, ie how smooth or pronounced the movement is between frames. Not much testing has been done on it.\n\nHigher steps give you better quality outputs at the expense of time. The official scripts use 50 steps for t2v and 40 steps for i2v. Kijai sets it to 25 for both, a compromise between speed and quality. Use 50/40 if you want maximum quality."],"color":"#432","bgcolor":"#653"},{"id":52,"type":"WanVideoTeaCache","pos":[725.5872802734375,-690.8179931640625],"size":[315,154],"flags":{},"order":7,"mode":0,"inputs":[],"outputs":[{"name":"teacache_args","localized_name":"teacache_args","type":"TEACACHEARGS","links":[56]}],"properties":{"cnr_id":"ComfyUI-WanVideoWrapper","ver":"ff4bb8085e92d68b018e363f6e54e2e7729e6114","Node name for S&R":"WanVideoTeaCache"},"widgets_values":[0.15,1,-1,"offload_device","true"],"color":"#332922","bgcolor":"#593930"},{"id":39,"type":"WanVideoBlockSwap","pos":[-110.16680145263672,-652.5992431640625],"size":[315,106],"flags":{},"order":8,"mode":0,"inputs":[],"outputs":[{"name":"block_swap_args","localized_name":"block_swap_args","type":"BLOCKSWAPARGS","links":[50],"slot_index":0}],"properties":{"cnr_id":"ComfyUI-WanVideoWrapper","ver":"ff4bb8085e92d68b018e363f6e54e2e7729e6114","Node name for S&R":"WanVideoBlockSwap"},"widgets_values":[0,false,false],"color":"#223","bgcolor":"#335"},{"id":56,"type":"WanVideoLoraSelect","pos":[-129.94754028320312,-337.3797912597656],"size":[315,126],"flags":{},"order":9,"mode":4,"inputs":[{"name":"prev_lora","localized_name":"prev_lora","type":"WANVIDLORA","shape":7,"link":null},{"name":"blocks","localized_name":"blocks","type":"SELECTEDBLOCKS","shape":7,"link":null}],"outputs":[{"name":"lora","localized_name":"lora","type":"WANVIDLORA","links":[62],"slot_index":0}],"properties":{"cnr_id":"ComfyUI-WanVideoWrapper","ver":"ff4bb8085e92d68b018e363f6e54e2e7729e6114","Node name for S&R":"WanVideoLoraSelect"},"widgets_values":[null,1,false],"color":"#233","bgcolor":"#355"},{"id":36,"type":"Note","pos":[274.7418212890625,-288.7722473144531],"size":[374.3061828613281,171.9547576904297],"flags":{"pinned":true},"order":10,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["fp8_fast seems to cause huge quality degradation\n\nfp_16_fast enables \"Full FP16 Accmumulation in FP16 GEMMs\" feature available in the very latest pytorch nightly, this is around 20% speed boost at the expense of a slight quality drop.\n\nSageattn if you have it installed can be used for almost double inference speed"],"color":"#432","bgcolor":"#653"},{"id":37,"type":"WanVideoEmptyEmbeds","pos":[718.6113891601562,-1033.035400390625],"size":[315,106],"flags":{},"order":11,"mode":0,"inputs":[],"outputs":[{"name":"image_embeds","localized_name":"image_embeds","type":"WANVIDIMAGE_EMBEDS","links":[42]}],"properties":{"cnr_id":"ComfyUI-WanVideoWrapper","ver":"ff4bb8085e92d68b018e363f6e54e2e7729e6114","Node name for S&R":"WanVideoEmptyEmbeds"},"widgets_values":[480,832,81],"color":"#332922","bgcolor":"#593930"},{"id":16,"type":"WanVideoTextEncode","pos":[268.888916015625,-1039.8033447265625],"size":[409.997802734375,407.55023193359375],"flags":{},"order":20,"mode":0,"inputs":[{"name":"t5","localized_name":"t5","type":"WANTEXTENCODER","link":15},{"name":"model_to_offload","localized_name":"model_to_offload","type":"WANVIDEOMODEL","shape":7,"link":null}],"outputs":[{"name":"text_embeds","localized_name":"text_embeds","type":"WANVIDEOTEXTEMBEDS","links":[30],"slot_index":0}],"properties":{"cnr_id":"ComfyUI-WanVideoWrapper","ver":"ff4bb8085e92d68b018e363f6e54e2e7729e6114","Node name for S&R":"WanVideoTextEncode"},"widgets_values":["Insert Prompt","色调艳丽，过曝，静态，细节模糊不清，字幕，风格，作品，画作，画面，静止，整体发灰，最差质量，低质量，JPEG压缩残留，丑陋的，残缺的，多余的手指，画得不好的手部，画得不好的脸部，畸形的，毁容的，形态畸形的肢体，手指融合，静止不动的画面，杂乱的背景，三条腿，背景人很多，倒着走",true],"color":"#232","bgcolor":"#353"},{"id":27,"type":"WanVideoSampler","pos":[1080.74951171875,-1037.9547119140625],"size":[315,959.3333129882812],"flags":{},"order":22,"mode":0,"inputs":[{"name":"model","localized_name":"model","type":"WANVIDEOMODEL","link":29},{"name":"text_embeds","localized_name":"text_embeds","type":"WANVIDEOTEXTEMBEDS","link":30},{"name":"image_embeds","localized_name":"image_embeds","type":"WANVIDIMAGE_EMBEDS","link":42},{"name":"samples","localized_name":"samples","type":"LATENT","shape":7,"link":null},{"name":"feta_args","localized_name":"feta_args","type":"FETAARGS","shape":7,"link":57},{"name":"context_options","localized_name":"context_options","type":"WANVIDCONTEXT","shape":7,"link":null},{"name":"teacache_args","localized_name":"teacache_args","type":"TEACACHEARGS","shape":7,"link":56},{"name":"flowedit_args","localized_name":"flowedit_args","type":"FLOWEDITARGS","shape":7,"link":null},{"name":"slg_args","localized_name":"slg_args","type":"SLGARGS","shape":7,"link":61}],"outputs":[{"name":"samples","localized_name":"samples","type":"LATENT","links":[33],"slot_index":0}],"properties":{"cnr_id":"ComfyUI-WanVideoWrapper","ver":"ff4bb8085e92d68b018e363f6e54e2e7729e6114","Node name for S&R":"WanVideoSampler"},"widgets_values":[25,5,5,778447446851660,"randomize",true,"unipc",0,1,false,"default"],"color":"#332922","bgcolor":"#593930"},{"id":64,"type":"Note","pos":[-520.6582641601562,-864.1463623046875],"size":[306.444091796875,139.39393615722656],"flags":{"pinned":true},"order":12,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["If you have Triton installed, connect Torch Compile for ~30% speed increase. Only works with 40XX and 50XX series GPU's using e4m3fn quantized models.\n\nIt does work on 30XX series using e5m2 quantizations, which were recently added here :\n\nhttps://huggingface.co/Kijai/WanVideo_comfy/tree/main"],"color":"#432","bgcolor":"#653"},{"id":68,"type":"Note","pos":[1471.786865234375,-1248.2537841796875],"size":[311.7878723144531,88.39466857910156],"flags":{"pinned":true},"order":13,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["You can get a low quality preview of your videos during generation. Open ComfyUI's settings and enable \"Display animated previews when sampling\". Then open Comfy Manager and change \"Preview method\" to \"TAESD\"."],"color":"#432","bgcolor":"#653"},{"id":35,"type":"WanVideoTorchCompileSettings","pos":[-177.3040771484375,-884.482421875],"size":[390.5999755859375,178],"flags":{},"order":14,"mode":0,"inputs":[],"outputs":[{"name":"torch_compile_args","localized_name":"torch_compile_args","type":"WANCOMPILEARGS","links":[],"slot_index":0}],"properties":{"cnr_id":"ComfyUI-WanVideoWrapper","ver":"ff4bb8085e92d68b018e363f6e54e2e7729e6114","Node name for S&R":"WanVideoTorchCompileSettings"},"widgets_values":["inductor",false,"default",false,64,true],"color":"#223","bgcolor":"#335"},{"id":22,"type":"WanVideoModelLoader","pos":[226.14222717285156,-570.8593139648438],"size":[477.4410095214844,226.43276977539062],"flags":{},"order":21,"mode":0,"inputs":[{"name":"compile_args","localized_name":"compile_args","type":"WANCOMPILEARGS","shape":7,"link":null},{"name":"block_swap_args","localized_name":"block_swap_args","type":"BLOCKSWAPARGS","shape":7,"link":50},{"name":"lora","localized_name":"lora","type":"WANVIDLORA","shape":7,"link":62},{"name":"vram_management_args","localized_name":"vram_management_args","type":"VRAM_MANAGEMENTARGS","shape":7,"link":null}],"outputs":[{"name":"model","localized_name":"model","type":"WANVIDEOMODEL","links":[29],"slot_index":0}],"properties":{"cnr_id":"ComfyUI-WanVideoWrapper","ver":"ff4bb8085e92d68b018e363f6e54e2e7729e6114","Node name for S&R":"WanVideoModelLoader"},"widgets_values":["WanVideo\\Wan2_1-T2V-14B_fp8_e4m3fn.safetensors","fp16_fast","fp8_e4m3fn","offload_device","sageattn"],"color":"#2a363b","bgcolor":"#3f5159"},{"id":55,"type":"WanVideoEnhanceAVideo","pos":[721.1669311523438,-863.4080200195312],"size":[315,106],"flags":{},"order":15,"mode":4,"inputs":[],"outputs":[{"name":"feta_args","localized_name":"feta_args","type":"FETAARGS","links":[57]}],"properties":{"cnr_id":"ComfyUI-WanVideoWrapper","ver":"ff4bb8085e92d68b018e363f6e54e2e7729e6114","Node name for S&R":"WanVideoEnhanceAVideo"},"widgets_values":[2,0,1],"color":"#233","bgcolor":"#355"},{"id":65,"type":"Note","pos":[-432.4221496582031,-332.3853454589844],"size":[266.4982604980469,126.37255096435547],"flags":{"pinned":true},"order":16,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["If you want to use a LoRA, unbypass the node. You can also chain Lora Select nodes together."],"color":"#432","bgcolor":"#653"},{"id":67,"type":"Note","pos":[267.11651611328125,-1266.34423828125],"size":[389.1632080078125,116.0794448852539],"flags":{"pinned":true},"order":17,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["Enhance-a-Video can drastically change the appearance of a gen on t2v, especially for human faces and skin. I've turned it off for t2v, but I recommended you do a few side by side tests on the same seed to see just how drastic the changes are and if you want the effect."],"color":"#432","bgcolor":"#653"},{"id":61,"type":"Note","pos":[760.7635498046875,-80.19843292236328],"size":[245.8346710205078,99.36532592773438],"flags":{"pinned":true},"order":18,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["Experimental Skip Layer Guidance support. This seems to increase output quality, but extensive testing has yet to be done, especially with a LoRA loaded. Settings taking from an /ldg/ anon who showed promising results."],"color":"#432","bgcolor":"#653"},{"id":60,"type":"WanVideoSLG","pos":[725.29296875,-234.23439025878906],"size":[315,106],"flags":{},"order":19,"mode":0,"inputs":[],"outputs":[{"name":"slg_args","localized_name":"slg_args","type":"SLGARGS","links":[61],"slot_index":0}],"properties":{"cnr_id":"ComfyUI-WanVideoWrapper","ver":"ff4bb8085e92d68b018e363f6e54e2e7729e6114","Node name for S&R":"WanVideoSLG"},"widgets_values":["9",0.2,1],"color":"#332922","bgcolor":"#593930"},{"id":58,"type":"VHS_VideoCombine","pos":[1428.0665283203125,-464.9507141113281],"size":[214.03125,684.3208618164062],"flags":{},"order":25,"mode":0,"inputs":[{"name":"images","localized_name":"images","type":"IMAGE","link":60},{"name":"audio","localized_name":"audio","type":"AUDIO","shape":7,"link":null},{"name":"meta_batch","localized_name":"meta_batch","type":"VHS_BatchManager","shape":7,"link":null},{"name":"vae","localized_name":"vae","type":"VAE","shape":7,"link":null}],"outputs":[{"name":"Filenames","localized_name":"Filenames","type":"VHS_FILENAMES","links":null}],"properties":{"cnr_id":"comfyui-videohelpersuite","ver":"1.5.8","Node name for S&R":"VHS_VideoCombine"},"widgets_values":{"frame_rate":16,"loop_count":0,"filename_prefix":"T2V/RAW/WVT2V_KJ_RAW_%date:dd-MM-yy-hh-mm%","format":"video/h264-mp4","pix_fmt":"yuv420p","crf":19,"save_metadata":true,"trim_to_audio":false,"pingpong":false,"save_output":true,"videopreview":{"hidden":false,"paused":false,"params":{"filename":"WVI2V_KJ_RAW_15-03-25-05-36_00002.mp4","subfolder":"I2V\\RAW","type":"output","format":"video/h264-mp4","frame_rate":16,"workflow":"WVI2V_KJ_RAW_15-03-25-05-36_00002.png","fullpath":"D:\\AI\\ComfyUI_windows_portable\\ComfyUI\\output\\I2V\\RAW\\WVI2V_KJ_RAW_15-03-25-05-36_00002.mp4"}}},"color":"#222","bgcolor":"#000"},{"id":59,"type":"VHS_VideoCombine","pos":[1653.3936767578125,-463.7724609375],"size":[214.03125,684.3208618164062],"flags":{},"order":26,"mode":0,"inputs":[{"name":"images","localized_name":"images","type":"IMAGE","link":58},{"name":"audio","localized_name":"audio","type":"AUDIO","shape":7,"link":null},{"name":"meta_batch","localized_name":"meta_batch","type":"VHS_BatchManager","shape":7,"link":null},{"name":"vae","localized_name":"vae","type":"VAE","shape":7,"link":null}],"outputs":[{"name":"Filenames","localized_name":"Filenames","type":"VHS_FILENAMES","links":[]}],"properties":{"cnr_id":"comfyui-videohelpersuite","ver":"1.5.8","Node name for S&R":"VHS_VideoCombine"},"widgets_values":{"frame_rate":32,"loop_count":0,"filename_prefix":"T2V/INT/WVT2V_KJ_INT_%date:dd-MM-yy-hh-mm%","format":"video/h264-mp4","pix_fmt":"yuv420p","crf":19,"save_metadata":true,"trim_to_audio":false,"pingpong":false,"save_output":true,"videopreview":{"hidden":false,"paused":false,"params":{"filename":"WVI2V_KJ_INT_15-03-25-05-36_00002.mp4","subfolder":"I2V\\INT","type":"output","format":"video/h264-mp4","frame_rate":32,"workflow":"WVI2V_KJ_INT_15-03-25-05-36_00002.png","fullpath":"D:\\AI\\ComfyUI_windows_portable\\ComfyUI\\output\\I2V\\INT\\WVI2V_KJ_INT_15-03-25-05-36_00002.mp4"}}},"color":"#222","bgcolor":"#000"}],"links":[[15,11,0,16,0,"WANTEXTENCODER"],[29,22,0,27,0,"WANVIDEOMODEL"],[30,16,0,27,1,"WANVIDEOTEXTEMBEDS"],[33,27,0,28,1,"LATENT"],[42,37,0,27,2,"WANVIDIMAGE_EMBEDS"],[43,38,0,28,0,"VAE"],[50,39,0,22,1,"BLOCKSWAPARGS"],[56,52,0,27,6,"TEACACHEARGS"],[57,55,0,27,4,"FETAARGS"],[58,57,0,59,0,"IMAGE"],[59,28,0,57,0,"IMAGE"],[60,28,0,58,0,"IMAGE"],[61,60,0,27,8,"SLGARGS"],[62,56,0,22,2,"WANVIDLORA"]],"groups":[],"config":{},"extra":{"ds":{"scale":0.9090909090909095,"offset":[-600.6364124227003,809.370258902744]},"node_versions":{"ComfyUI-WanVideoWrapper":"bc11af31e4e720e6926a0612e88b65c3d1c49fc7","comfy-core":"0.3.23","ComfyUI-VideoHelperSuite":"2c25b8b53835aaeb63f831b3137c705cf9f85dce"},"VHS_latentpreview":true,"VHS_latentpreviewrate":0,"VHS_MetadataImage":true,"VHS_KeepIntermediate":true,"ue_links":[]},"version":0.4}