{ "id": "c6e410bc-5e2c-460b-ae81-c91b6094fbb1", "revision": 0, "last_node_id": 102, "last_link_id": 164, "nodes": [ { "id": 44, "type": "Note", "pos": [ -710, -710 ], "size": [ 303.0501403808594, 88 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "If you have Triton installed, connect this for ~30% speed increase" ], "color": "#432", "bgcolor": "#653" }, { "id": 38, "type": "WanVideoVAELoader", "pos": [ 1988.66015625, -572.3654174804688 ], "size": [ 315, 82 ], "flags": {}, "order": 1, "mode": 0, "inputs": [ { "name": "compile_args", "shape": 7, "type": "WANCOMPILEARGS", "link": null } ], "outputs": [ { "name": "vae", "type": "WANVAE", "slot_index": 0, "links": [ 43, 81 ] } ], "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": 56, "type": "WanVideoSetBlockSwap", "pos": [ 882.7855834960938, -362.668701171875 ], "size": [ 201.76815795898438, 46 ], "flags": {}, "order": 25, "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": 42, "type": "Note", "pos": [ -340.0147399902344, -394.8644104003906 ], "size": [ 312.98052978515625, 92.32489013671875 ], "flags": {}, "order": 2, "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": 36, "type": "Note", "pos": [ 110, -630 ], "size": [ 374.3061828613281, 171.9547576904297 ], "flags": {}, "order": 3, "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": 62, "type": "PreviewAny", "pos": [ 546.9254150390625, -252.02532958984375 ], "size": [ 210, 88 ], "flags": {}, "order": 23, "mode": 0, "inputs": [ { "name": "source", "type": "*", "link": 65 } ], "outputs": [], "properties": { "cnr_id": "comfy-core", "ver": "0.3.52", "Node name for S&R": "PreviewAny" }, "widgets_values": [] }, { "id": 28, "type": "WanVideoDecode", "pos": [ 1994.2247314453125, -394.9518737792969 ], "size": [ 315, 198 ], "flags": {}, "order": 31, "mode": 0, "inputs": [ { "name": "vae", "type": "WANVAE", "link": 43 }, { "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": 73, "type": "LoadImage", "pos": [ 609.2274169921875, 131.5489044189453 ], "size": [ 274.080078125, 314 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 83 ] }, { "name": "MASK", "type": "MASK", "links": null } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.52", "Node name for S&R": "LoadImage" }, "widgets_values": [ "2b.jpg", "image" ] }, { "id": 67, "type": "WanVideoTextEncodeCached", "pos": [ 46.950748443603516, -20.68189239501953 ], "size": [ 459.45745849609375, 393.8887939453125 ], "flags": {}, "order": 5, "mode": 0, "inputs": [ { "name": "extender_args", "shape": 7, "type": "WANVIDEOPROMPTEXTENDER_ARGS", "link": null } ], "outputs": [ { "name": "text_embeds", "type": "WANVIDEOTEXTEMBEDS", "links": [ 71 ] }, { "name": "negative_text_embeds", "type": "WANVIDEOTEXTEMBEDS", "links": null }, { "name": "positive_prompt", "type": "STRING", "links": null } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "a1ca0985ec120ff97e34676a64de19c99767bbd4", "Node name for S&R": "WanVideoTextEncodeCached" }, "widgets_values": [ "umt5-xxl-enc-bf16.safetensors", "bf16", "a woman is singing passionately", "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走", "disabled", true, "gpu" ], "color": "#432", "bgcolor": "#653" }, { "id": 61, "type": "MarkdownNote", "pos": [ -128.9186248779297, -1117.54248046875 ], "size": [ 510.2661437988281, 245.62203979492188 ], "flags": {}, "order": 6, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "Models:\n\n[https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/blob/main/T2V/Wan2_1-T2V-14B_fp8_e4m3fn_scaled_KJ.safetensors](https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/blob/main/T2V/Wan2_1-T2V-14B_fp8_e4m3fn_scaled_KJ.safetensors)\n\nIf you want to use torch compile on GPUs prior to 4000 series:\n\n[https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/blob/main/T2V/Wan2_1-T2V-14B_fp8_e5m2_scaled_KJ.safetensors](https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/blob/main/T2V/Wan2_1-T2V-14B_fp8_e5m2_scaled_KJ.safetensors)\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": 72, "type": "WanVideoEncode", "pos": [ 1256.0252685546875, -81.86726379394531 ], "size": [ 270, 242 ], "flags": {}, "order": 20, "mode": 0, "inputs": [ { "name": "vae", "type": "WANVAE", "link": 81 }, { "name": "image", "type": "IMAGE", "link": 84 }, { "name": "mask", "shape": 7, "type": "MASK", "link": null } ], "outputs": [ { "name": "samples", "type": "LATENT", "links": [ 92, 157 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "63d4b6aadaae543f96d101788122563f3e2ba0c8", "Node name for S&R": "WanVideoEncode" }, "widgets_values": [ false, 272, 272, 144, 128, 0, 1 ] }, { "id": 22, "type": "WanVideoModelLoader", "pos": [ 10, -390 ], "size": [ 477.4410095214844, 314 ], "flags": {}, "order": 18, "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, 65 ] } ], "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": 35, "type": "WanVideoTorchCompileSettings", "pos": [ -390, -710 ], "size": [ 390.5999755859375, 202 ], "flags": {}, "order": 7, "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": 58, "type": "WanVideoSetLoRAs", "pos": [ 630.5015869140625, -367.1865234375 ], "size": [ 174.53378295898438, 46 ], "flags": {}, "order": 22, "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": 77, "type": "InsertLatentToIndexed", "pos": [ 2088.097412109375, -69.78427124023438 ], "size": [ 270, 78 ], "flags": {}, "order": 30, "mode": 0, "inputs": [ { "name": "source", "type": "LATENT", "link": 92 }, { "name": "destination", "type": "LATENT", "link": 93 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [] } ], "properties": { "cnr_id": "comfyui-kjnodes", "ver": "ba9153cb06fc77bfd86c36835f1817482e8328a0", "Node name for S&R": "InsertLatentToIndexed" }, "widgets_values": [ 0 ] }, { "id": 74, "type": "ImageResizeKJv2", "pos": [ 1009.1867065429688, 210.0146942138672 ], "size": [ 270, 336 ], "flags": {}, "order": 17, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 83 }, { "name": "mask", "shape": 7, "type": "MASK", "link": null } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 84 ] }, { "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": [ 960, 640, "lanczos", "crop", "0, 0, 0", "center", 2, "cpu", "