{ "id": "c6e410bc-5e2c-460b-ae81-c91b6094fbb1", "revision": 0, "last_node_id": 86, "last_link_id": 157, "nodes": [ { "id": 11, "type": "LoadWanVideoT5TextEncoder", "pos": [ 224.15325927734375, -34.481563568115234 ], "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": "6099ad393b071728032fd481e96d77d2900eee2c", "Node name for S&R": "LoadWanVideoT5TextEncoder" }, "widgets_values": [ "umt5-xxl-enc-bf16.safetensors", "bf16", "offload_device", "disabled" ], "color": "#332922", "bgcolor": "#593930" }, { "id": 50, "type": "CLIPTextEncode", "pos": [ -78.64810180664062, 1769.301513671875 ], "size": [ 400, 200 ], "flags": {}, "order": 20, "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.29", "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" ], "color": "#432", "bgcolor": "#653" }, { "id": 48, "type": "CLIPLoader", "pos": [ -438.6482238769531, 1519.30126953125 ], "size": [ 315, 106 ], "flags": {}, "order": 1, "mode": 2, "inputs": [], "outputs": [ { "name": "CLIP", "type": "CLIP", "slot_index": 0, "links": [ 52, 53 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.29", "Node name for S&R": "CLIPLoader" }, "widgets_values": [ "umt5_xxl_fp16.safetensors", "wan", "default" ], "color": "#432", "bgcolor": "#653" }, { "id": 51, "type": "Note", "pos": [ -408.648193359375, 1349.3011474609375 ], "size": [ 253.16725158691406, 88 ], "flags": {}, "order": 2, "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": [ -78.64810180664062, 1519.30126953125 ], "size": [ 400, 200 ], "flags": {}, "order": 19, "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.29", "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": [ -153.7365264892578, -16.124788284301758 ], "size": [ 359.0753479003906, 88 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "Models:\nhttps://huggingface.co/Kijai/WanVideo_comfy/tree/main" ], "color": "#432", "bgcolor": "#653" }, { "id": 38, "type": "WanVideoVAELoader", "pos": [ 2340.400390625, -578.1526489257812 ], "size": [ 315, 82 ], "flags": {}, "order": 4, "mode": 0, "inputs": [ { "name": "compile_args", "shape": 7, "type": "WANCOMPILEARGS", "link": null } ], "outputs": [ { "name": "vae", "type": "WANVAE", "slot_index": 0, "links": [ 43, 59, 110 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "6099ad393b071728032fd481e96d77d2900eee2c", "Node name for S&R": "WanVideoVAELoader" }, "widgets_values": [ "wanvideo\\Wan2_1_VAE_bf16.safetensors", "bf16" ], "color": "#322", "bgcolor": "#533" }, { "id": 46, "type": "WanVideoTextEmbedBridge", "pos": [ 371.3523254394531, 1509.30126953125 ], "size": [ 315, 46 ], "flags": {}, "order": 23, "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": "6099ad393b071728032fd481e96d77d2900eee2c", "Node name for S&R": "WanVideoTextEmbedBridge" }, "widgets_values": [] }, { "id": 16, "type": "WanVideoTextEncode", "pos": [ 675.8850708007812, -36.032100677490234 ], "size": [ 420.30511474609375, 261.5306701660156 ], "flags": {}, "order": 18, "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": "6099ad393b071728032fd481e96d77d2900eee2c", "Node name for S&R": "WanVideoTextEncode" }, "widgets_values": [ "an old man is playing with a chibi anime figurine", "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走", true, false, "gpu" ], "color": "#332922", "bgcolor": "#593930" }, { "id": 77, "type": "Note", "pos": [ -532.9983520507812, -216.64346313476562 ], "size": [ 274.3274841308594, 121.00284576416016 ], "flags": {}, "order": 5, "mode": 0, "inputs": [], "outputs": [], "title": "Note: Resolution", "properties": {}, "widgets_values": [ "Phantom is trained at 480p but can also work at 720p" ], "color": "#432", "bgcolor": "#653" }, { "id": 28, "type": "WanVideoDecode", "pos": [ 2345.96484375, -400.7390441894531 ], "size": [ 315, 198 ], "flags": {}, "order": 34, "mode": 0, "inputs": [ { "name": "vae", "type": "WANVAE", "link": 43 }, { "name": "samples", "type": "LATENT", "link": 33 } ], "outputs": [ { "name": "images", "type": "IMAGE", "slot_index": 0, "links": [ 126 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "6099ad393b071728032fd481e96d77d2900eee2c", "Node name for S&R": "WanVideoDecode" }, "widgets_values": [ false, 272, 272, 144, 128, "default" ], "color": "#322", "bgcolor": "#533" }, { "id": 61, "type": "INTConstant", "pos": [ -507.47119140625, -30.832414627075195 ], "size": [ 210, 58 ], "flags": {}, "order": 6, "mode": 0, "inputs": [], "outputs": [ { "name": "value", "type": "INT", "links": [ 139 ] } ], "title": "Width", "properties": { "cnr_id": "comfyui-kjnodes", "ver": "3e3a1a8aac61dc4515f6a7da74e026f05a80299f", "Node name for S&R": "INTConstant" }, "widgets_values": [ 832 ], "color": "#1b4669", "bgcolor": "#29699c" }, { "id": 62, "type": "INTConstant", "pos": [ -501.34527587890625, 83.66830444335938 ], "size": [ 210, 58 ], "flags": {}, "order": 7, "mode": 0, "inputs": [], "outputs": [ { "name": "value", "type": "INT", "links": [ 140 ] } ], "title": "Height", "properties": { "cnr_id": "comfyui-kjnodes", "ver": "3e3a1a8aac61dc4515f6a7da74e026f05a80299f", "Node name for S&R": "INTConstant" }, "widgets_values": [ 480 ], "color": "#1b4669", "bgcolor": "#29699c" }, { "id": 82, "type": "PreviewImage", "pos": [ 231.0643768310547, 345.1055908203125 ], "size": [ 400.632568359375, 258 ], "flags": {}, "order": 25, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 145 } ], "outputs": [], "properties": { "cnr_id": "comfy-core", "ver": "0.3.29", "Node name for S&R": "PreviewImage" }, "widgets_values": [] }, { "id": 63, "type": "PreviewImage", "pos": [ 246.37728881835938, 749.4605712890625 ], "size": [ 400.632568359375, 258 ], "flags": {}, "order": 28, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 130 } ], "outputs": [], "properties": { "cnr_id": "comfy-core", "ver": "0.3.29", "Node name for S&R": "PreviewImage" }, "widgets_values": [] }, { "id": 56, "type": "WanVideoEncode", "pos": [ 727.0906982421875, 297.24334716796875 ], "size": [ 330, 242 ], "flags": {}, "order": 24, "mode": 0, "inputs": [ { "name": "vae", "type": "WANVAE", "link": 59 }, { "name": "image", "type": "IMAGE", "link": 137 }, { "name": "mask", "shape": 7, "type": "MASK", "link": null } ], "outputs": [ { "name": "samples", "type": "LATENT", "links": [ 143 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "a623f87dcad9cff5a690559fe559566be4045a9a", "Node name for S&R": "WanVideoEncode" }, "widgets_values": [ false, 272, 272, 144, 128, 0, 1 ] }, { "id": 44, "type": "Note", "pos": [ -231.55201721191406, -847.9478759765625 ], "size": [ 303.0501403808594, 88 ], "flags": {}, "order": 8, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "If you have Triton installed, connect this for ~30% speed increase" ], "color": "#432", "bgcolor": "#653" }, { "id": 36, "type": "Note", "pos": [ 714.1553955078125, -685.7478637695312 ], "size": [ 374.3061828613281, 171.9547576904297 ], "flags": {}, "order": 9, "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. \n\nSageattn if you have it installed can be used for almost double inference speed" ], "color": "#432", "bgcolor": "#653" }, { "id": 84, "type": "WanVideoSetBlockSwap", "pos": [ 1203.40625, -451.20733642578125 ], "size": [ 201.76815795898438, 46 ], "flags": {}, "order": 27, "mode": 0, "inputs": [ { "name": "model", "type": "WANVIDEOMODEL", "link": 149 }, { "name": "block_swap_args", "shape": 7, "type": "BLOCKSWAPARGS", "link": 151 } ], "outputs": [ { "name": "model", "type": "WANVIDEOMODEL", "links": [ 150 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "cc3b79ab180e8c81e6125d539662935cf171c87b", "Node name for S&R": "WanVideoSetBlockSwap" }, "color": "#223", "bgcolor": "#335" }, { "id": 83, "type": "WanVideoSetLoRAs", "pos": [ 1471.3389892578125, -454.92852783203125 ], "size": [ 174.53378295898438, 46 ], "flags": {}, "order": 31, "mode": 0, "inputs": [ { "name": "model", "type": "WANVIDEOMODEL", "link": 150 }, { "name": "lora", "shape": 7, "type": "WANVIDLORA", "link": 147 } ], "outputs": [ { "name": "model", "type": "WANVIDEOMODEL", "links": [ 148 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "cc3b79ab180e8c81e6125d539662935cf171c87b", "Node name for S&R": "WanVideoSetLoRAs" }, "color": "#223", "bgcolor": "#335" }, { "id": 75, "type": "MarkdownNote", "pos": [ 703.451416015625, -986.7158203125 ], "size": [ 369.9837341308594, 207.7837371826172 ], "flags": {}, "order": 10, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "Model links:\n\n1.3B:\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Phantom-Wan-1_3B_fp16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Phantom-Wan-1_3B_fp16.safetensors)\n\n14B:\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Phantom-Wan-14B_fp16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Phantom-Wan-14B_fp16.safetensors)\n\n[https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/blob/main/T2V/Wan2_1-T2V-14B-Phantom_fp8_e4m3fn_scaled_KJ.safetensors](https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/blob/main/T2V/Wan2_1-T2V-14B-Phantom_fp8_e4m3fn_scaled_KJ.safetensors)" ], "color": "#432", "bgcolor": "#653" }, { "id": 22, "type": "WanVideoModelLoader", "pos": [ 617.1249389648438, -441.7767028808594 ], "size": [ 530.5924072265625, 314 ], "flags": {}, "order": 22, "mode": 0, "inputs": [ { "name": "compile_args", "shape": 7, "type": "WANCOMPILEARGS", "link": 122 }, { "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": [ 149 ] } ], "properties": { "cnr_id": "ComfyUI-WanVideoWrapper", "ver": "6099ad393b071728032fd481e96d77d2900eee2c", "Node name for S&R": "WanVideoModelLoader" }, "widgets_values": [ "WanVideo\\Wan2_1-T2V-14B-Phantom_fp8_e4m3fn_scaled_KJ.safetensors", "fp16_fast", "disabled", "offload_device", "sageattn" ], "color": "#223", "bgcolor": "#335" }, { "id": 81, "type": "ImageResizeKJv2", "pos": [ -78.1143798828125, 250.96481323242188 ], "size": [ 270, 336 ], "flags": {}, "order": 21, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 152 }, { "name": "mask", "shape": 7, "type": "MASK", "link": null }, { "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 139 }, { "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 140 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 137, 145, 155 ] }, { "name": "width", "type": "INT", "links": [ 141 ] }, { "name": "height", "type": "INT", "links": [ 142 ] }, { "name": "mask", "type": "MASK", "links": null } ], "properties": { "cnr_id": "comfyui-kjnodes", "ver": "0adab07d1ad3d0780afc97319eaf37c3681af37d", "Node name for S&R": "ImageResizeKJv2" }, "widgets_values": [ 512, 512, "lanczos", "pad", "255,255,255", "center", 16, "cpu", "