{ "id": "c6e410bc-5e2c-460b-ae81-c91b6094fbb1", "revision": 0, "last_node_id": 146, "last_link_id": 244, "nodes": [ { "id": 28, "type": "WanVideoDecode", "pos": [ 1994.2247314453125, -394.9518737792969 ], "size": [ 315, 198 ], "flags": {}, "order": 53, "mode": 0, "inputs": [ { "name": "vae", "type": "WANVAE", "link": 197 }, { "name": "samples", "type": "LATENT", "link": 105 } ], "outputs": [ { "name": "images", "type": "IMAGE", "slot_index": 0, "links": [ 77 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "5406a72f62adf4a31a8a0a0e4923cc5288399652", "Node name for S&R": "WanVideoDecode" }, "widgets_values": [ false, 272, 272, 144, 128, "default" ], "color": "#322", "bgcolor": "#533" }, { "id": 35, "type": "WanVideoTorchCompileSettings", "pos": [ -1117.06494140625, -1156.921875 ], "size": [ 390.5999755859375, 202 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "torch_compile_args", "type": "WANCOMPILEARGS", "slot_index": 0, "links": [ 129 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "5406a72f62adf4a31a8a0a0e4923cc5288399652", "Node name for S&R": "WanVideoTorchCompileSettings" }, "widgets_values": [ "inductor", false, "default", false, 64, true, 128 ] }, { "id": 44, "type": "Note", "pos": [ -1106.779052734375, -1309.5294189453125 ], "size": [ 303.0501403808594, 88 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "If you have Triton installed, connect this for ~20-30% speed increase and reduced peak VRAM use" ], "color": "#432", "bgcolor": "#653" }, { "id": 36, "type": "Note", "pos": [ -559.8602294921875, -1394.335205078125 ], "size": [ 374.3061828613281, 171.9547576904297 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "fp_16_fast enables \"Full FP16 Accmumulation in FP16 GEMMs\" feature available in the very latest pytorch nightly, this is around 20% speed boost. \n\nSageattn if you have it installed can be used for almost double inference speed at higher resolutions\n\nRadial attention is even faster but has worst quality, it should be used along with Set Radial Attention node to control which steps/blocks it's applied on to balance quality and speed." ], "color": "#432", "bgcolor": "#653" }, { "id": 22, "type": "WanVideoModelLoader", "pos": [ -593.1958618164062, -1146.4970703125 ], "size": [ 477.4410095214844, 314 ], "flags": {}, "order": 29, "mode": 0, "inputs": [ { "name": "compile_args", "shape": 7, "type": "WANCOMPILEARGS", "link": 129 }, { "name": "block_swap_args", "shape": 7, "type": "BLOCKSWAPARGS", "link": null }, { "name": "lora", "shape": 7, "type": "WANVIDLORA", "link": null }, { "name": "vram_management_args", "shape": 7, "type": "VRAM_MANAGEMENTARGS", "link": null }, { "name": "extra_model", "shape": 7, "type": "VACEPATH", "link": null }, { "name": "fantasytalking_model", "shape": 7, "type": "FANTASYTALKINGMODEL", "link": null }, { "name": "multitalk_model", "shape": 7, "type": "MULTITALKMODEL", "link": null }, { "name": "fantasyportrait_model", "shape": 7, "type": "FANTASYPORTRAITMODEL", "link": null }, { "name": "vace_model", "shape": 7, "type": "VACEPATH", "link": null } ], "outputs": [ { "name": "model", "type": "WANVIDEOMODEL", "slot_index": 0, "links": [ 61 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "5406a72f62adf4a31a8a0a0e4923cc5288399652", "Node name for S&R": "WanVideoModelLoader" }, "widgets_values": [ "WanVideo\\S2V\\Wan2_2-S2V-14B_fp8_e4m3fn_scaled_KJ.safetensors", "fp16_fast", "fp8_e4m3fn_scaled", "offload_device", "sageattn" ], "color": "#223", "bgcolor": "#335" }, { "id": 61, "type": "MarkdownNote", "pos": [ -83.98224639892578, -1481.6065673828125 ], "size": [ 688.705078125, 156.6822052001953 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "Models:\n\n[https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled](https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled)\n\nIf you want to use torch compile on GPUs prior to 4000 series:\n\nLoRA:\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors)" ], "color": "#432", "bgcolor": "#653" }, { "id": 60, "type": "WanVideoLoraSelectMulti", "pos": [ 17.099323272705078, -1224.06787109375 ], "size": [ 617.9208374023438, 342 ], "flags": {}, "order": 4, "mode": 0, "inputs": [ { "name": "prev_lora", "shape": 7, "type": "WANVIDLORA", "link": null }, { "name": "blocks", "shape": 7, "type": "SELECTEDBLOCKS", "link": null } ], "outputs": [ { "name": "lora", "type": "WANVIDLORA", "links": [ 64 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "5406a72f62adf4a31a8a0a0e4923cc5288399652", "Node name for S&R": "WanVideoLoraSelectMulti" }, "widgets_values": [ "WanVideo\\Lightx2v\\lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16_.safetensors", 1.2, "none", 1, "none", 1, "none", 1, "none", 1, false, false ], "color": "#223", "bgcolor": "#335" }, { "id": 58, "type": "WanVideoSetLoRAs", "pos": [ 36.42268371582031, -805.3877563476562 ], "size": [ 174.53378295898438, 46 ], "flags": {}, "order": 36, "mode": 0, "inputs": [ { "name": "model", "type": "WANVIDEOMODEL", "link": 61 }, { "name": "lora", "shape": 7, "type": "WANVIDLORA", "link": 64 } ], "outputs": [ { "name": "model", "type": "WANVIDEOMODEL", "links": [ 62 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "5406a72f62adf4a31a8a0a0e4923cc5288399652", "Node name for S&R": "WanVideoSetLoRAs" }, "widgets_values": [], "color": "#223", "bgcolor": "#335" }, { "id": 39, "type": "WanVideoBlockSwap", "pos": [ -434.31292724609375, -777.4451293945312 ], "size": [ 315, 202 ], "flags": {}, "order": 5, "mode": 0, "inputs": [], "outputs": [ { "name": "block_swap_args", "type": "BLOCKSWAPARGS", "slot_index": 0, "links": [ 58 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "5406a72f62adf4a31a8a0a0e4923cc5288399652", "Node name for S&R": "WanVideoBlockSwap" }, "widgets_values": [ 32, false, false, true, 0, 1, false ], "color": "#223", "bgcolor": "#335" }, { "id": 42, "type": "Note", "pos": [ -765.3607788085938, -775.6983032226562 ], "size": [ 312.98052978515625, 92.32489013671875 ], "flags": {}, "order": 6, "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." ], "color": "#432", "bgcolor": "#653" }, { "id": 56, "type": "WanVideoSetBlockSwap", "pos": [ 250.55487060546875, -803.0498657226562 ], "size": [ 201.76815795898438, 46 ], "flags": {}, "order": 42, "mode": 0, "inputs": [ { "name": "model", "type": "WANVIDEOMODEL", "link": 62 }, { "name": "block_swap_args", "shape": 7, "type": "BLOCKSWAPARGS", "link": 58 } ], "outputs": [ { "name": "model", "type": "WANVIDEOMODEL", "links": [ 60 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "5406a72f62adf4a31a8a0a0e4923cc5288399652", "Node name for S&R": "WanVideoSetBlockSwap" }, "widgets_values": [], "color": "#223", "bgcolor": "#335" }, { "id": 38, "type": "WanVideoVAELoader", "pos": [ 20.023881912231445, -646.4891357421875 ], "size": [ 315, 82 ], "flags": {}, "order": 7, "mode": 0, "inputs": [ { "name": "compile_args", "shape": 7, "type": "WANCOMPILEARGS", "link": null } ], "outputs": [ { "name": "vae", "type": "WANVAE", "slot_index": 0, "links": [ 196 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "5406a72f62adf4a31a8a0a0e4923cc5288399652", "Node name for S&R": "WanVideoVAELoader" }, "widgets_values": [ "wanvideo\\Wan2_1_VAE_bf16.safetensors", "bf16" ], "color": "#322", "bgcolor": "#533" }, { "id": 119, "type": "SetNode", "pos": [ 391.3757019042969, -615.3194580078125 ], "size": [ 210, 60 ], "flags": { "collapsed": true }, "order": 30, "mode": 0, "inputs": [ { "name": "WANVAE", "type": "WANVAE", "link": 196 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_VAE", "properties": { "previousName": "VAE" }, "widgets_values": [ "VAE" ], "color": "#322", "bgcolor": "#533" }, { "id": 120, "type": "GetNode", "pos": [ 2002.47412109375, -472.52252197265625 ], "size": [ 210, 60 ], "flags": { "collapsed": true }, "order": 8, "mode": 0, "inputs": [], "outputs": [ { "name": "WANVAE", "type": "WANVAE", "links": [ 197 ] } ], "title": "Get_VAE", "properties": {}, "widgets_values": [ "VAE" ], "color": "#322", "bgcolor": "#533" }, { "id": 109, "type": "WanVideoEncode", "pos": [ 226.22377014160156, 1413.26171875 ], "size": [ 270, 242 ], "flags": {}, "order": 48, "mode": 0, "inputs": [ { "name": "vae", "type": "WANVAE", "link": 199 }, { "name": "image", "type": "IMAGE", "link": 174 }, { "name": "mask", "shape": 7, "type": "MASK", "link": null } ], "outputs": [ { "name": "samples", "type": "LATENT", "links": [ 192 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "63d4b6aadaae543f96d101788122563f3e2ba0c8", "Node name for S&R": "WanVideoEncode" }, "widgets_values": [ false, 272, 272, 144, 128, 0, 0.5 ], "color": "#322", "bgcolor": "#533" }, { "id": 123, "type": "Note", "pos": [ 2024.4696044921875, -677.442626953125 ], "size": [ 239.09585571289062, 94.3968734741211 ], "flags": {}, "order": 9, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "The sampling windows are constant size, rounded up and padded with empty if there isn't enough audio" ], "color": "#432", "bgcolor": "#653" }, { "id": 37, "type": "WanVideoEmptyEmbeds", "pos": [ 403.56707763671875, -283.66357421875 ], "size": [ 315, 126 ], "flags": {}, "order": 38, "mode": 0, "inputs": [ { "name": "control_embeds", "shape": 7, "type": "WANVIDIMAGE_EMBEDS", "link": null }, { "name": "extra_latents", "shape": 7, "type": "LATENT", "link": null }, { "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 85 }, { "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 86 }, { "name": "num_frames", "type": "INT", "widget": { "name": "num_frames" }, "link": 79 } ], "outputs": [ { "name": "image_embeds", "type": "WANVIDIMAGE_EMBEDS", "links": [ 190 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "5406a72f62adf4a31a8a0a0e4923cc5288399652", "Node name for S&R": "WanVideoEmptyEmbeds" }, "widgets_values": [ 832, 480, 501 ] }, { "id": 72, "type": "WanVideoEncode", "pos": [ 432.53973388671875, -18.44605827331543 ], "size": [ 270, 242 ], "flags": {}, "order": 43, "mode": 0, "inputs": [ { "name": "vae", "type": "WANVAE", "link": 198 }, { "name": "image", "type": "IMAGE", "link": 202 }, { "name": "mask", "shape": 7, "type": "MASK", "link": null } ], "outputs": [ { "name": "samples", "type": "LATENT", "links": [ 191 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "63d4b6aadaae543f96d101788122563f3e2ba0c8", "Node name for S&R": "WanVideoEncode" }, "widgets_values": [ false, 272, 272, 144, 128, 0, 1 ], "color": "#322", "bgcolor": "#533" }, { "id": 121, "type": "GetNode", "pos": [ 422.7891845703125, -93.28303527832031 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 10, "mode": 0, "inputs": [], "outputs": [ { "name": "WANVAE", "type": "WANVAE", "links": [ 198, 200 ] } ], "title": "Get_VAE", "properties": {}, "widgets_values": [ "VAE" ], "color": "#322", "bgcolor": "#533" }, { "id": 94, "type": "VHS_LoadAudio", "pos": [ -1128.97119140625, 360.84234619140625 ], "size": [ 415.6340026855469, 126 ], "flags": {}, "order": 11, "mode": 0, "inputs": [], "outputs": [ { "name": "audio", "type": "AUDIO", "links": [] }, { "name": "duration", "type": "FLOAT", "links": null } ], "properties": { "cnr_id": "comfyui-videohelpersuite", "ver": "8e4d79471bf1952154768e8435a9300077b534fa", "Node name for S&R": "VHS_LoadAudio" }, "widgets_values": { "audio_file": "input/weightoftheworld2.mp4", "seek_seconds": 0, "duration": 0 } }, { "id": 66, "type": "LoadAudio", "pos": [ -1127.343505859375, 149.00762939453125 ], "size": [ 361.2844543457031, 155.81912231445312 ], "flags": {}, "order": 12, "mode": 0, "inputs": [], "outputs": [ { "name": "AUDIO", "type": "AUDIO", "links": [] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.52", "Node name for S&R": "LoadAudio" }, "widgets_values": [ "0321. Alphaville - Big In Japan.mp3", null, null ] }, { "id": 82, "type": "MelBandRoFormerSampler", "pos": [ -442.4711608886719, 323.1734619140625 ], "size": [ 222.73397827148438, 46 ], "flags": {}, "order": 39, "mode": 0, "inputs": [ { "name": "model", "type": "MELROFORMERMODEL", "link": 106 }, { "name": "audio", "type": "AUDIO", "link": 225 } ], "outputs": [ { "name": "vocals", "type": "AUDIO", "links": [ 149 ] }, { "name": "instruments", "type": "AUDIO", "links": null } ], "properties": { "cnr_id": "ComfyUI-MelBandRoFormer", "ver": "b40e263224778ec417114d91d8b3b39934e30de5", "Node name for S&R": "MelBandRoFormerSampler" }, "widgets_values": [] }, { "id": 98, "type": "NormalizeAudioLoudness", "pos": [ -434.1120300292969, 442.410400390625 ], "size": [ 270, 58 ], "flags": {}, "order": 44, "mode": 0, "inputs": [ { "name": "audio", "type": "AUDIO", "link": 149 } ], "outputs": [ { "name": "audio", "type": "AUDIO", "links": [ 150 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "90c3bbb6c2e4ff5e05305e765d007d5e58428ce4", "Node name for S&R": "NormalizeAudioLoudness" }, "widgets_values": [ -23 ] }, { "id": 64, "type": "AudioEncoderEncode", "pos": [ -73.06085205078125, 415.04669189453125 ], "size": [ 285.087890625, 46 ], "flags": {}, "order": 46, "mode": 0, "inputs": [ { "name": "audio_encoder", "type": "AUDIO_ENCODER", "link": 69 }, { "name": "audio", "type": "AUDIO", "link": 150 } ], "outputs": [ { "name": "AUDIO_ENCODER_OUTPUT", "type": "AUDIO_ENCODER_OUTPUT", "links": [ 189 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.52", "Node name for S&R": "AudioEncoderEncode" }, "widgets_values": [] }, { "id": 65, "type": "AudioEncoderLoader", "pos": [ -97.48931884765625, 258.31158447265625 ], "size": [ 346.756103515625, 58 ], "flags": {}, "order": 13, "mode": 0, "inputs": [], "outputs": [ { "name": "AUDIO_ENCODER", "type": "AUDIO_ENCODER", "links": [ 69 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.52", "Node name for S&R": "AudioEncoderLoader" }, "widgets_values": [ "wav2vec_xlsr_53_english_fp32.safetensors" ] }, { "id": 124, "type": "MarkdownNote", "pos": [ -97.37991333007812, 112.38502502441406 ], "size": [ 399.6143798828125, 90.30195617675781 ], "flags": {}, "order": 14, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "[https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/blob/main/split_files/audio_encoders/wav2vec2_large_english_fp16.safetensors](https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/blob/main/split_files/audio_encoders/wav2vec2_large_english_fp16.safetensors)" ], "color": "#432", "bgcolor": "#653" }, { "id": 81, "type": "MelBandRoFormerModelLoader", "pos": [ -483.87762451171875, 185.78466796875 ], "size": [ 316.2164001464844, 58 ], "flags": {}, "order": 15, "mode": 0, "inputs": [], "outputs": [ { "name": "model", "type": "MELROFORMERMODEL", "links": [ 106 ] } ], "properties": { "cnr_id": "ComfyUI-MelBandRoFormer", "ver": "b40e263224778ec417114d91d8b3b39934e30de5", "Node name for S&R": "MelBandRoFormerModelLoader" }, "widgets_values": [ "MelBandRoFormer\\MelBandRoformer_fp16.safetensors" ] }, { "id": 74, "type": "ImageResizeKJv2", "pos": [ -209.49288940429688, -372.07373046875 ], "size": [ 270, 336 ], "flags": {}, "order": 32, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 83 }, { "name": "mask", "shape": 7, "type": "MASK", "link": null }, { "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 219 }, { "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 220 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 201 ] }, { "name": "width", "type": "INT", "links": [ 85 ] }, { "name": "height", "type": "INT", "links": [ 86 ] }, { "name": "mask", "type": "MASK", "links": null } ], "properties": { "cnr_id": "comfyui-kjnodes", "ver": "ba9153cb06fc77bfd86c36835f1817482e8328a0", "Node name for S&R": "ImageResizeKJv2" }, "widgets_values": [ 640, 640, "lanczos", "crop", "0, 0, 0", "center", 16, "cpu", "