{ "id": "c6e410bc-5e2c-460b-ae81-c91b6094fbb1", "revision": 0, "last_node_id": 61, "last_link_id": 64, "nodes": [ { "id": 11, "type": "LoadWanVideoT5TextEncoder", "pos": [ -390, -70 ], "size": [ 377.1661376953125, 130 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "wan_t5_model", "type": "WANTEXTENCODER", "slot_index": 0, "links": [ 15 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "5406a72f62adf4a31a8a0a0e4923cc5288399652", "Node name for S&R": "LoadWanVideoT5TextEncoder" }, "widgets_values": [ "umt5-xxl-enc-bf16.safetensors", "bf16", "offload_device", "disabled" ], "color": "#332922", "bgcolor": "#593930" }, { "id": 37, "type": "WanVideoEmptyEmbeds", "pos": [ 1305.26708984375, -571.7843627929688 ], "size": [ 315, 126 ], "flags": {}, "order": 1, "mode": 0, "inputs": [ { "name": "control_embeds", "shape": 7, "type": "WANVIDIMAGE_EMBEDS", "link": null }, { "name": "extra_latents", "shape": 7, "type": "LATENT", "link": null } ], "outputs": [ { "name": "image_embeds", "type": "WANVIDIMAGE_EMBEDS", "links": [ 42 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "5406a72f62adf4a31a8a0a0e4923cc5288399652", "Node name for S&R": "WanVideoEmptyEmbeds" }, "widgets_values": [ 832, 480, 81 ] }, { "id": 50, "type": "CLIPTextEncode", "pos": [ 450.84735107421875, 852.1167602539062 ], "size": [ 400, 200 ], "flags": {}, "order": 18, "mode": 2, "inputs": [ { "name": "clip", "type": "CLIP", "link": 53 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 55 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.47", "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" ], "color": "#432", "bgcolor": "#653" }, { "id": 48, "type": "CLIPLoader", "pos": [ 90.8473129272461, 602.1166381835938 ], "size": [ 315, 106 ], "flags": {}, "order": 2, "mode": 2, "inputs": [], "outputs": [ { "name": "CLIP", "type": "CLIP", "slot_index": 0, "links": [ 52, 53 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.47", "Node name for S&R": "CLIPLoader" }, "widgets_values": [ "umt5_xxl_fp16.safetensors", "wan", "default" ], "color": "#432", "bgcolor": "#653" }, { "id": 51, "type": "Note", "pos": [ 120.8473129272461, 432.1158752441406 ], "size": [ 253.16725158691406, 88 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "You can also use native ComfyUI text encoding with these nodes instead of the original, the models are node specific and can't otherwise be mixed." ], "color": "#432", "bgcolor": "#653" }, { "id": 49, "type": "CLIPTextEncode", "pos": [ 450.84735107421875, 602.1166381835938 ], "size": [ 400, 200 ], "flags": {}, "order": 17, "mode": 2, "inputs": [ { "name": "clip", "type": "CLIP", "link": 52 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 54 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.47", "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "high quality nature video featuring a red panda balancing on a bamboo stem while a bird lands on it's head, on the background there is a waterfall" ], "color": "#432", "bgcolor": "#653" }, { "id": 33, "type": "Note", "pos": [ -760, -50 ], "size": [ 359.0753479003906, 88 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "Models:\nhttps://huggingface.co/Kijai/WanVideo_comfy/tree/main" ], "color": "#432", "bgcolor": "#653" }, { "id": 35, "type": "WanVideoTorchCompileSettings", "pos": [ -390, -710 ], "size": [ 390.5999755859375, 202 ], "flags": {}, "order": 5, "mode": 0, "inputs": [], "outputs": [ { "name": "torch_compile_args", "type": "WANCOMPILEARGS", "slot_index": 0, "links": [] } ], "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": [ -710, -710 ], "size": [ 303.0501403808594, 88 ], "flags": {}, "order": 6, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "If you have Triton installed, connect this for ~30% speed increase" ], "color": "#432", "bgcolor": "#653" }, { "id": 30, "type": "VHS_VideoCombine", "pos": [ 2068.651611328125, -582.5413818359375 ], "size": [ 1245.8460693359375, 1055.2188720703125 ], "flags": {}, "order": 24, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 36 }, { "name": "audio", "shape": 7, "type": "AUDIO", "link": null }, { "name": "meta_batch", "shape": 7, "type": "VHS_BatchManager", "link": null }, { "name": "vae", "shape": 7, "type": "VAE", "link": null } ], "outputs": [ { "name": "Filenames", "type": "VHS_FILENAMES", "links": null } ], "properties": { "cnr_id": "comfyui-videohelpersuite", "ver": "330bce6c3c0d47ebdedcc0348d9ab355707b7523", "Node name for S&R": "VHS_VideoCombine" }, "widgets_values": { "frame_rate": 16, "loop_count": 0, "filename_prefix": "WanVideo2_1_T2V", "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": "WanVideo2_1_T2V_00724.mp4", "subfolder": "", "type": "output", "format": "video/h264-mp4", "frame_rate": 16, "workflow": "WanVideo2_1_T2V_00724.png", "fullpath": "N:\\AI\\ComfyUI\\output\\WanVideo2_1_T2V_00724.mp4" } } } }, { "id": 16, "type": "WanVideoTextEncode", "pos": [ 70, -70 ], "size": [ 420.30511474609375, 261.5306701660156 ], "flags": {}, "order": 16, "mode": 0, "inputs": [ { "name": "t5", "shape": 7, "type": "WANTEXTENCODER", "link": 15 }, { "name": "model_to_offload", "shape": 7, "type": "WANVIDEOMODEL", "link": null } ], "outputs": [ { "name": "text_embeds", "type": "WANVIDEOTEXTEMBEDS", "slot_index": 0, "links": [ 30 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "5406a72f62adf4a31a8a0a0e4923cc5288399652", "Node name for S&R": "WanVideoTextEncode" }, "widgets_values": [ "high quality nature video featuring a red panda balancing on a bamboo stem while a bird lands on it's head, on the background there is a waterfall", "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走", true, false, "gpu" ], "color": "#332922", "bgcolor": "#593930" }, { "id": 38, "type": "WanVideoVAELoader", "pos": [ 1687.4093017578125, -582.2750854492188 ], "size": [ 315, 82 ], "flags": {}, "order": 7, "mode": 0, "inputs": [], "outputs": [ { "name": "vae", "type": "WANVAE", "slot_index": 0, "links": [ 43 ] } ], "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": 46, "type": "WanVideoTextEmbedBridge", "pos": [ 900.8475341796875, 592.1166381835938 ], "size": [ 315, 46 ], "flags": {}, "order": 20, "mode": 2, "inputs": [ { "name": "positive", "type": "CONDITIONING", "link": 54 }, { "name": "negative", "shape": 7, "type": "CONDITIONING", "link": 55 } ], "outputs": [ { "name": "text_embeds", "type": "WANVIDEOTEXTEMBEDS", "links": null } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "5406a72f62adf4a31a8a0a0e4923cc5288399652", "Node name for S&R": "WanVideoTextEmbedBridge" }, "widgets_values": [] }, { "id": 28, "type": "WanVideoDecode", "pos": [ 1692.973876953125, -404.8614501953125 ], "size": [ 315, 198 ], "flags": {}, "order": 23, "mode": 0, "inputs": [ { "name": "vae", "type": "WANVAE", "link": 43 }, { "name": "samples", "type": "LATENT", "link": 33 } ], "outputs": [ { "name": "images", "type": "IMAGE", "slot_index": 0, "links": [ 36 ] } ], "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": 56, "type": "WanVideoSetBlockSwap", "pos": [ 882.7855834960938, -362.668701171875 ], "size": [ 201.76815795898438, 46 ], "flags": {}, "order": 21, "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" }, "color": "#223", "bgcolor": "#335" }, { "id": 58, "type": "WanVideoSetLoRAs", "pos": [ 630.5015869140625, -367.1865234375 ], "size": [ 174.53378295898438, 46 ], "flags": {}, "order": 19, "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" }, "color": "#223", "bgcolor": "#335" }, { "id": 60, "type": "WanVideoLoraSelectMulti", "pos": [ 573.026123046875, -824.0180053710938 ], "size": [ 332.3269348144531, 342 ], "flags": {}, "order": 8, "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, "none", 1, "none", 1, "none", 1, "none", 1, false, false ], "color": "#223", "bgcolor": "#335" }, { "id": 27, "type": "WanVideoSampler", "pos": [ 1315.2401123046875, -401.48028564453125 ], "size": [ 315, 873.39453125 ], "flags": {}, "order": 22, "mode": 0, "inputs": [ { "name": "model", "type": "WANVIDEOMODEL", "link": 60 }, { "name": "image_embeds", "type": "WANVIDIMAGE_EMBEDS", "link": 42 }, { "name": "text_embeds", "shape": 7, "type": "WANVIDEOTEXTEMBEDS", "link": 30 }, { "name": "samples", "shape": 7, "type": "LATENT", "link": null }, { "name": "feta_args", "shape": 7, "type": "FETAARGS", "link": 57 }, { "name": "context_options", "shape": 7, "type": "WANVIDCONTEXT", "link": null }, { "name": "cache_args", "shape": 7, "type": "CACHEARGS", "link": null }, { "name": "flowedit_args", "shape": 7, "type": "FLOWEDITARGS", "link": null }, { "name": "slg_args", "shape": 7, "type": "SLGARGS", "link": null }, { "name": "loop_args", "shape": 7, "type": "LOOPARGS", "link": null }, { "name": "experimental_args", "shape": 7, "type": "EXPERIMENTALARGS", "link": null }, { "name": "sigmas", "shape": 7, "type": "SIGMAS", "link": null }, { "name": "unianimate_poses", "shape": 7, "type": "UNIANIMATE_POSE", "link": null }, { "name": "fantasytalking_embeds", "shape": 7, "type": "FANTASYTALKING_EMBEDS", "link": null }, { "name": "uni3c_embeds", "shape": 7, "type": "UNI3C_EMBEDS", "link": null }, { "name": "multitalk_embeds", "shape": 7, "type": "MULTITALK_EMBEDS", "link": null }, { "name": "freeinit_args", "shape": 7, "type": "FREEINITARGS", "link": null } ], "outputs": [ { "name": "samples", "type": "LATENT", "slot_index": 0, "links": [ 33 ] }, { "name": "denoised_samples", "type": "LATENT", "links": null } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "5406a72f62adf4a31a8a0a0e4923cc5288399652", "Node name for S&R": "WanVideoSampler" }, "widgets_values": [ 6, 1, 5, 42, "fixed", true, "dpm++_sde", 0, 1, false, "comfy", 0, -1, false, "" ] }, { "id": 39, "type": "WanVideoBlockSwap", "pos": [ 775.6461791992188, -256.3999328613281 ], "size": [ 315, 154 ], "flags": {}, "order": 9, "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": [ 20, false, false, false, 0 ], "color": "#223", "bgcolor": "#335" }, { "id": 55, "type": "WanVideoEnhanceAVideo", "pos": [ 1292.82177734375, -760.1163330078125 ], "size": [ 315, 106 ], "flags": {}, "order": 10, "mode": 0, "inputs": [], "outputs": [ { "name": "feta_args", "type": "FETAARGS", "links": [ 57 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "5406a72f62adf4a31a8a0a0e4923cc5288399652", "Node name for S&R": "WanVideoEnhanceAVideo" }, "widgets_values": [ 2, 0, 1 ] }, { "id": 54, "type": "Note", "pos": [ 1279.785888671875, -927.4588012695312 ], "size": [ 327.61932373046875, 88 ], "flags": {}, "order": 11, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "Enhance-a-video can increase the fidelity of the results, too high values lead to noisy results." ], "color": "#432", "bgcolor": "#653" }, { "id": 22, "type": "WanVideoModelLoader", "pos": [ 10, -390 ], "size": [ 477.4410095214844, 274 ], "flags": {}, "order": 12, "mode": 0, "inputs": [ { "name": "compile_args", "shape": 7, "type": "WANCOMPILEARGS", "link": null }, { "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": "vace_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 } ], "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\\fp8_scaled_kj\\T2V\\Wan2_1-T2V-14B_fp8_e4m3fn_scaled_KJ.safetensors", "fp16", "fp8_e4m3fn_scaled", "offload_device", "sdpa" ], "color": "#223", "bgcolor": "#335" }, { "id": 42, "type": "Note", "pos": [ -340.0147399902344, -394.8644104003906 ], "size": [ 312.98052978515625, 92.32489013671875 ], "flags": {}, "order": 13, "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": 61, "type": "MarkdownNote", "pos": [ 30.22911262512207, -955.12451171875 ], "size": [ 510.2661437988281, 245.62203979492188 ], "flags": {}, "order": 14, "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": 36, "type": "Note", "pos": [ 110, -630 ], "size": [ 374.3061828613281, 171.9547576904297 ], "flags": {}, "order": 15, "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" } ], "links": [ [ 15, 11, 0, 16, 0, "WANTEXTENCODER" ], [ 30, 16, 0, 27, 2, "WANVIDEOTEXTEMBEDS" ], [ 33, 27, 0, 28, 1, "LATENT" ], [ 36, 28, 0, 30, 0, "IMAGE" ], [ 42, 37, 0, 27, 1, "WANVIDIMAGE_EMBEDS" ], [ 43, 38, 0, 28, 0, "VAE" ], [ 52, 48, 0, 49, 0, "CLIP" ], [ 53, 48, 0, 50, 0, "CLIP" ], [ 54, 49, 0, 46, 0, "CONDITIONING" ], [ 55, 50, 0, 46, 1, "CONDITIONING" ], [ 57, 55, 0, 27, 4, "FETAARGS" ], [ 58, 39, 0, 56, 1, "BLOCKSWAPARGS" ], [ 60, 56, 0, 27, 0, "WANVIDEOMODEL" ], [ 61, 22, 0, 58, 0, "WANVIDEOMODEL" ], [ 62, 58, 0, 56, 0, "WANVIDEOMODEL" ], [ 64, 60, 0, 58, 1, "WANVIDLORA" ] ], "groups": [ { "id": 1, "title": "ComfyUI text encoding alternative", "bounding": [ 28.03142547607422, 288.1825866699219, 1210.621337890625, 805.9080810546875 ], "color": "#3f789e", "font_size": 24, "flags": {} } ], "config": {}, "extra": { "ds": { "scale": 0.6115909044841823, "offset": [ 1181.2082796810923, 1044.6186273284543 ] }, "node_versions": { "ComfyUI-WanVideoWrapper": "5a2383621a05825d0d0437781afcb8552d9590fd", "comfy-core": "0.3.26", "ComfyUI-VideoHelperSuite": "0a75c7958fe320efcb052f1d9f8451fd20c730a8" }, "VHS_latentpreview": true, "VHS_latentpreviewrate": 0, "VHS_MetadataImage": true, "VHS_KeepIntermediate": true, "frontendVersion": "1.25.1" }, "version": 0.4 }