{ "id": "ba1df054-50a8-4da2-b45a-25b4dde3cc2f", "revision": 0, "last_node_id": 231, "last_link_id": 445, "nodes": [ { "id": 4, "type": "CLIPVisionLoader", "pos": [ -1410, -50 ], "size": [ 306.36004638671875, 58 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "CLIP_VISION", "type": "CLIP_VISION", "slot_index": 0, "links": [ 4 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "CLIPVisionLoader", "models": [ { "name": "clip_vision_h.safetensors", "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/clip_vision/clip_vision_h.safetensors", "directory": "clip_vision" } ] }, "widgets_values": [ "clip_vision_h.safetensors" ] }, { "id": 18, "type": "LoraLoaderModelOnly", "pos": [ -1770, -110 ], "size": [ 306.36004638671875, 82 ], "flags": {}, "order": 54, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 16 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 226 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "LoraLoaderModelOnly", "models": [ { "name": "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors", "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Lightx2v/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors", "directory": "loras" } ] }, "widgets_values": [ "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors", 1 ] }, { "id": 99, "type": "LoraLoaderModelOnly", "pos": [ -1770, 30 ], "size": [ 306.36004638671875, 82 ], "flags": {}, "order": 64, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 226 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 227 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "LoraLoaderModelOnly", "models": [ { "name": "WanAnimate_relight_lora_fp16.safetensors", "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/WanAnimate_relight_lora_fp16.safetensors", "directory": "loras" } ] }, "widgets_values": [ "WanAnimate_relight_lora_fp16.safetensors", 1 ] }, { "id": 2, "type": "CLIPLoader", "pos": [ -1410, -210 ], "size": [ 306.36004638671875, 106 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "CLIP", "type": "CLIP", "slot_index": 0, "links": [ 1, 18 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "CLIPLoader", "models": [ { "name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors", "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors", "directory": "text_encoders" } ] }, "widgets_values": [ "umt5_xxl_fp8_e4m3fn_scaled.safetensors", "wan", "default" ] }, { "id": 107, "type": "Sam2Segmentation", "pos": [ 670, -770 ], "size": [ 320, 190 ], "flags": {}, "order": 65, "mode": 0, "inputs": [ { "name": "sam2_model", "type": "SAM2MODEL", "link": 235 }, { "name": "image", "type": "IMAGE", "link": 416 }, { "name": "coordinates_positive", "shape": 7, "type": "STRING", "link": 438 }, { "name": "coordinates_negative", "shape": 7, "type": "STRING", "link": null }, { "name": "bboxes", "shape": 7, "type": "BBOX", "link": null }, { "name": "mask", "shape": 7, "type": "MASK", "link": null } ], "outputs": [ { "name": "mask", "type": "MASK", "links": [ 240 ] } ], "properties": { "cnr_id": "ComfyUI-segment-anything-2", "ver": "c59676b008a76237002926f684d0ca3a9b29ac54", "Node name for S&R": "Sam2Segmentation" }, "widgets_values": [ true, false ] }, { "id": 111, "type": "GrowMask", "pos": [ 690, -480 ], "size": [ 270, 82 ], "flags": { "collapsed": false }, "order": 70, "mode": 0, "inputs": [ { "name": "mask", "type": "MASK", "link": 240 } ], "outputs": [ { "name": "MASK", "type": "MASK", "links": [ 336 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "GrowMask" }, "widgets_values": [ 10, true ] }, { "id": 159, "type": "PrimitiveInt", "pos": [ -2200, -290 ], "size": [ 270, 82 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 356 ] } ], "title": "Width", "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "PrimitiveInt" }, "widgets_values": [ 640, "fixed" ] }, { "id": 168, "type": "SetNode", "pos": [ -630, 710 ], "size": [ 210, 60 ], "flags": { "collapsed": true }, "order": 72, "mode": 0, "inputs": [ { "name": "IMAGE", "type": "IMAGE", "link": 362 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_pose_video", "properties": { "previousName": "pose_video" }, "widgets_values": [ "pose_video" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 173, "type": "GetNode", "pos": [ -420, 1470 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 3, "mode": 4, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 367 ] } ], "title": "Get_pose_video", "properties": {}, "widgets_values": [ "pose_video" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 172, "type": "GetNode", "pos": [ -420, 1430 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 4, "mode": 4, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 366 ] } ], "title": "Get_face_video", "properties": {}, "widgets_values": [ "face_video" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 3, "type": "VAELoader", "pos": [ -1410, 70 ], "size": [ 306.36004638671875, 58 ], "flags": {}, "order": 5, "mode": 0, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "slot_index": 0, "links": [ 385 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "VAELoader", "models": [ { "name": "wan_2.1_vae.safetensors", "url": "https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors", "directory": "vae" } ] }, "widgets_values": [ "wan_2.1_vae.safetensors" ] }, { "id": 188, "type": "SetNode", "pos": [ -1220, 190 ], "size": [ 210, 60 ], "flags": { "collapsed": true }, "order": 50, "mode": 0, "inputs": [ { "name": "VAE", "type": "VAE", "link": 385 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_vae", "properties": { "previousName": "vae" }, "widgets_values": [ "vae" ], "color": "#322", "bgcolor": "#533" }, { "id": 187, "type": "GetNode", "pos": [ -420, 1390 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 6, "mode": 4, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 384 ] } ], "title": "Get_reference_image", "properties": {}, "widgets_values": [ "reference_image" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 194, "type": "GetNode", "pos": [ -400, 480 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 7, "mode": 0, "inputs": [], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 391 ] } ], "title": "Get_negative", "properties": {}, "widgets_values": [ "negative" ], "color": "#332922", "bgcolor": "#593930" }, { "id": 190, "type": "GetNode", "pos": [ -400, 520 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 8, "mode": 0, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "links": [ 387 ] } ], "title": "Get_vae", "properties": {}, "widgets_values": [ "vae" ], "color": "#322", "bgcolor": "#533" }, { "id": 202, "type": "GetNode", "pos": [ -400, 560 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 9, "mode": 0, "inputs": [], "outputs": [ { "name": "CLIP_VISION_OUTPUT", "type": "CLIP_VISION_OUTPUT", "links": [ 398 ] } ], "title": "Get_clip_vision_output", "properties": {}, "widgets_values": [ "clip_vision_output" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 186, "type": "GetNode", "pos": [ -400, 600 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 10, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 383 ] } ], "title": "Get_reference_image", "properties": {}, "widgets_values": [ "reference_image" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 170, "type": "GetNode", "pos": [ -400, 680 ], "size": [ 210, 60 ], "flags": { "collapsed": true }, "order": 11, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 364 ] } ], "title": "Get_pose_video", "properties": {}, "widgets_values": [ "pose_video" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 181, "type": "GetNode", "pos": [ -400, 760 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 12, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 377 ] } ], "title": "Get_height", "properties": {}, "widgets_values": [ "height" ], "color": "#1b4669", "bgcolor": "#29699c" }, { "id": 60, "type": "ModelSamplingSD3", "pos": [ -1770, 160 ], "size": [ 315, 58 ], "flags": {}, "order": 69, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 227 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "slot_index": 0, "links": [ 394 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "ModelSamplingSD3" }, "widgets_values": [ 8 ] }, { "id": 197, "type": "SetNode", "pos": [ -1380, 200 ], "size": [ 210, 60 ], "flags": { "collapsed": true }, "order": 73, "mode": 0, "inputs": [ { "name": "MODEL", "type": "MODEL", "link": 394 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_model", "properties": { "previousName": "model" }, "widgets_values": [ "model" ], "color": "#223", "bgcolor": "#335" }, { "id": 193, "type": "GetNode", "pos": [ -400, 440 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 13, "mode": 0, "inputs": [], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 390 ] } ], "title": "Get_positive", "properties": {}, "widgets_values": [ "positive" ], "color": "#332922", "bgcolor": "#593930" }, { "id": 203, "type": "GetNode", "pos": [ 250, 420 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 14, "mode": 0, "inputs": [], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 399 ] } ], "title": "Get_model", "properties": {}, "widgets_values": [ "model" ], "color": "#223", "bgcolor": "#335" }, { "id": 183, "type": "GetNode", "pos": [ -420, 1580 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 15, "mode": 4, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 401 ] } ], "title": "Get_height", "properties": {}, "widgets_values": [ "height" ], "color": "#1b4669", "bgcolor": "#29699c" }, { "id": 198, "type": "GetNode", "pos": [ 120, 1220 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 16, "mode": 4, "inputs": [], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 395 ] } ], "title": "Get_model", "properties": {}, "widgets_values": [ "model" ], "color": "#223", "bgcolor": "#335" }, { "id": 91, "type": "KSampler", "pos": [ 120, 1270 ], "size": [ 270, 262 ], "flags": {}, "order": 84, "mode": 4, "inputs": [ { "name": "model", "type": "MODEL", "link": 395 }, { "name": "positive", "type": "CONDITIONING", "link": 213 }, { "name": "negative", "type": "CONDITIONING", "link": 214 }, { "name": "latent_image", "type": "LATENT", "link": 215 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 219 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "KSampler" }, "widgets_values": [ 387378783691198, "fixed", 6, 1, "euler", "simple", 1 ] }, { "id": 205, "type": "GetNode", "pos": [ -420, 1350 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 17, "mode": 4, "inputs": [], "outputs": [ { "name": "CLIP_VISION_OUTPUT", "type": "CLIP_VISION_OUTPUT", "links": [ 402 ] } ], "title": "Get_clip_vision_output", "properties": {}, "widgets_values": [ "clip_vision_output" ], "color": "#322", "bgcolor": "#533" }, { "id": 189, "type": "GetNode", "pos": [ -420, 1310 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 18, "mode": 4, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "links": [ 386 ] } ], "title": "Get_vae", "properties": {}, "widgets_values": [ "vae" ], "color": "#322", "bgcolor": "#533" }, { "id": 196, "type": "GetNode", "pos": [ -420, 1270 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 19, "mode": 4, "inputs": [], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 393 ] } ], "title": "Get_negative", "properties": {}, "widgets_values": [ "negative" ], "color": "#332922", "bgcolor": "#593930" }, { "id": 195, "type": "GetNode", "pos": [ -420, 1230 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 20, "mode": 4, "inputs": [], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 392 ] } ], "title": "Get_positive", "properties": {}, "widgets_values": [ "positive" ], "color": "#332922", "bgcolor": "#593930" }, { "id": 10, "type": "LoadImage", "pos": [ -2150, 390 ], "size": [ 340, 440 ], "flags": {}, "order": 21, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 344, 382 ] }, { "name": "MASK", "type": "MASK", "slot_index": 1, "links": null } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "LoadImage" }, "widgets_values": [ "Qwen-Image_00088_.png", "image" ] }, { "id": 185, "type": "SetNode", "pos": [ -1960, 870 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 52, "mode": 0, "inputs": [ { "name": "IMAGE", "type": "IMAGE", "link": 382 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_reference_image", "properties": { "previousName": "reference_image" }, "widgets_values": [ "reference_image" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 9, "type": "CLIPVisionEncode", "pos": [ -2170, 880 ], "size": [ 253.60000610351562, 78 ], "flags": { "collapsed": true }, "order": 51, "mode": 0, "inputs": [ { "name": "clip_vision", "type": "CLIP_VISION", "link": 4 }, { "name": "image", "type": "IMAGE", "link": 344 } ], "outputs": [ { "name": "CLIP_VISION_OUTPUT", "type": "CLIP_VISION_OUTPUT", "slot_index": 0, "links": [ 397 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "CLIPVisionEncode" }, "widgets_values": [ "none" ] }, { "id": 201, "type": "SetNode", "pos": [ -1970, 920 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 59, "mode": 0, "inputs": [ { "name": "CLIP_VISION_OUTPUT", "type": "CLIP_VISION_OUTPUT", "link": 397 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_clip_vision_output", "properties": { "previousName": "clip_vision_output" }, "widgets_values": [ "clip_vision_output" ], "color": "#332922", "bgcolor": "#593930" }, { "id": 89, "type": "SaveVideo", "pos": [ 830, 1210 ], "size": [ 610, 720 ], "flags": {}, "order": 92, "mode": 4, "inputs": [ { "name": "video", "type": "VIDEO", "link": 192 } ], "outputs": [], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "SaveVideo" }, "widgets_values": [ "video/ComfyUI", "auto", "auto" ] }, { "id": 87, "type": "VAEDecode", "pos": [ 120, 1680 ], "size": [ 210, 46 ], "flags": {}, "order": 88, "mode": 4, "inputs": [ { "name": "samples", "type": "LATENT", "link": 220 }, { "name": "vae", "type": "VAE", "link": 396 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 185 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "VAEDecode" }, "widgets_values": [] }, { "id": 158, "type": "PixelPerfectResolution", "pos": [ -1320, 800 ], "size": [ 291.71484375, 106 ], "flags": {}, "order": 60, "mode": 0, "inputs": [ { "name": "original_image", "type": "IMAGE", "link": 347 }, { "name": "image_gen_width", "type": "INT", "widget": { "name": "image_gen_width" }, "link": 358 }, { "name": "image_gen_height", "type": "INT", "widget": { "name": "image_gen_height" }, "link": 359 } ], "outputs": [ { "name": "RESOLUTION (INT)", "type": "INT", "links": [ 360, 361 ] } ], "properties": { "cnr_id": "comfyui_controlnet_aux", "ver": "59b027e088c1c8facf7258f6e392d16d204b4d27", "Node name for S&R": "PixelPerfectResolution" }, "widgets_values": [ 512, 512, "Just Resize" ] }, { "id": 145, "type": "LoadVideo", "pos": [ -1730, 410 ], "size": [ 360, 330 ], "flags": {}, "order": 22, "mode": 0, "inputs": [], "outputs": [ { "name": "VIDEO", "type": "VIDEO", "links": [ 297 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "LoadVideo" }, "widgets_values": [ "7821e0d2-394a-4967-bceb-738d037b7f46.mp4", "image" ] }, { "id": 166, "type": "GetNode", "pos": [ -1490, 840 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 23, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 358 ] } ], "title": "Get_width", "properties": {}, "widgets_values": [ "width" ], "color": "#1b4669", "bgcolor": "#29699c" }, { "id": 167, "type": "GetNode", "pos": [ -1490, 890 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 24, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 359 ] } ], "title": "Get_height", "properties": {}, "widgets_values": [ "height" ], "color": "#1b4669", "bgcolor": "#29699c" }, { "id": 108, "type": "DownloadAndLoadSAM2Model", "pos": [ 670, -970 ], "size": [ 320, 140 ], "flags": {}, "order": 25, "mode": 0, "inputs": [], "outputs": [ { "name": "sam2_model", "type": "SAM2MODEL", "links": [ 235 ] } ], "properties": { "cnr_id": "ComfyUI-segment-anything-2", "ver": "c59676b008a76237002926f684d0ca3a9b29ac54", "Node name for S&R": "DownloadAndLoadSAM2Model" }, "widgets_values": [ "sam2_hiera_base_plus.safetensors", "video", "cuda", "fp16" ] }, { "id": 21, "type": "CLIPTextEncode", "pos": [ -990, -280 ], "size": [ 420, 230 ], "flags": {}, "order": 48, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 18 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 388 ] } ], "title": "CLIP Text Encode (Positive Prompt)", "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "The character is dancing in the room" ], "color": "#232", "bgcolor": "#353" }, { "id": 124, "type": "PreviewImage", "pos": [ 1120, -200 ], "size": [ 250, 270 ], "flags": {}, "order": 77, "mode": 4, "inputs": [ { "name": "images", "type": "IMAGE", "link": 370 } ], "outputs": [], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "PreviewImage" }, "widgets_values": [] }, { "id": 63, "type": "KSampler", "pos": [ 240, 460 ], "size": [ 270, 262 ], "flags": {}, "order": 79, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 399 }, { "name": "positive", "type": "CONDITIONING", "link": 154 }, { "name": "negative", "type": "CONDITIONING", "link": 155 }, { "name": "latent_image", "type": "LATENT", "link": 156 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 157 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "KSampler" }, "widgets_values": [ 217482698449256, "randomize", 6, 1, "euler", "simple", 1 ] }, { "id": 57, "type": "TrimVideoLatent", "pos": [ 240, 770 ], "size": [ 270, 58 ], "flags": {}, "order": 80, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 157 }, { "name": "trim_amount", "type": "INT", "widget": { "name": "trim_amount" }, "link": 152 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 127 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "TrimVideoLatent" }, "widgets_values": [ 0 ] }, { "id": 204, "type": "GetNode", "pos": [ 130, 940 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 26, "mode": 0, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "links": [ 400 ] } ], "title": "Get_vae", "properties": {}, "widgets_values": [ "vae" ], "color": "#322", "bgcolor": "#533" }, { "id": 182, "type": "GetNode", "pos": [ -420, 1540 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 27, "mode": 4, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 378 ] } ], "title": "Get_width", "properties": {}, "widgets_values": [ "width" ], "color": "#1b4669", "bgcolor": "#29699c" }, { "id": 180, "type": "GetNode", "pos": [ -400, 720 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 28, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 376 ] } ], "title": "Get_width", "properties": {}, "widgets_values": [ "width" ], "color": "#1b4669", "bgcolor": "#29699c" }, { "id": 171, "type": "GetNode", "pos": [ -400, 640 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 29, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 365 ] } ], "title": "Get_face_video", "properties": {}, "widgets_values": [ "face_video" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 199, "type": "GetNode", "pos": [ -10, 1720 ], "size": [ 210, 50.000003814697266 ], "flags": { "collapsed": true }, "order": 30, "mode": 4, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "links": [ 396 ] } ], "title": "Get_vae", "properties": {}, "widgets_values": [ "vae" ], "color": "#322", "bgcolor": "#533" }, { "id": 20, "type": "UNETLoader", "pos": [ -1770, -250 ], "size": [ 306.36004638671875, 82 ], "flags": {}, "order": 31, "mode": 0, "inputs": [], "outputs": [ { "name": "MODEL", "type": "MODEL", "slot_index": 0, "links": [ 16 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "UNETLoader", "models": [ { "name": "Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors", "url": "https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/resolve/main/Wan22Animate/Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors", "directory": "diffusion_models" } ] }, "widgets_values": [ "Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors", "default" ] }, { "id": 160, "type": "PrimitiveInt", "pos": [ -2190, -90 ], "size": [ 270, 82 ], "flags": {}, "order": 32, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 380 ] } ], "title": "Height", "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "PrimitiveInt" }, "widgets_values": [ 640, "fixed" ] }, { "id": 163, "type": "SetNode", "pos": [ -2040, 40 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 55, "mode": 0, "inputs": [ { "name": "INT", "type": "INT", "link": 380 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_height", "properties": { "previousName": "height" }, "widgets_values": [ "height" ], "color": "#1b4669", "bgcolor": "#29699c" }, { "id": 162, "type": "SetNode", "pos": [ -2050, -160 ], "size": [ 210, 60 ], "flags": { "collapsed": true }, "order": 49, "mode": 0, "inputs": [ { "name": "INT", "type": "INT", "link": 356 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_width", "properties": { "previousName": "width" }, "widgets_values": [ "width" ], "color": "#1b4669", "bgcolor": "#29699c" }, { "id": 90, "type": "WanAnimateToVideo", "pos": [ -220, 1270 ], "size": [ 324.751953125, 358 ], "flags": {}, "order": 82, "mode": 4, "inputs": [ { "name": "positive", "type": "CONDITIONING", "link": 392 }, { "name": "negative", "type": "CONDITIONING", "link": 393 }, { "name": "vae", "type": "VAE", "link": 386 }, { "name": "clip_vision_output", "shape": 7, "type": "CLIP_VISION_OUTPUT", "link": 402 }, { "name": "reference_image", "shape": 7, "type": "IMAGE", "link": 384 }, { "name": "face_video", "shape": 7, "type": "IMAGE", "link": 366 }, { "name": "pose_video", "shape": 7, "type": "IMAGE", "link": 367 }, { "name": "background_video", "shape": 7, "type": "IMAGE", "link": 420 }, { "name": "character_mask", "shape": 7, "type": "MASK", "link": 421 }, { "name": "continue_motion", "shape": 7, "type": "IMAGE", "link": 208 }, { "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 378 }, { "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 401 }, { "name": "video_frame_offset", "type": "INT", "widget": { "name": "video_frame_offset" }, "link": 439 } ], "outputs": [ { "name": "positive", "type": "CONDITIONING", "links": [ 213 ] }, { "name": "negative", "type": "CONDITIONING", "links": [ 214 ] }, { "name": "latent", "type": "LATENT", "links": [ 215 ] }, { "name": "trim_latent", "type": "INT", "links": [ 218 ] }, { "name": "trim_image", "type": "INT", "links": [ 212 ] }, { "name": "video_frame_offset", "type": "INT", "links": null } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "WanAnimateToVideo" }, "widgets_values": [ 1280, 720, 77, 1, 5, 0 ] }, { "id": 1, "type": "CLIPTextEncode", "pos": [ -990, 50 ], "size": [ 425.27801513671875, 180.6060791015625 ], "flags": {}, "order": 47, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 1 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 389 ] } ], "title": "CLIP Text Encode (Negative Prompt)", "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" ], "color": "#322", "bgcolor": "#533" }, { "id": 191, "type": "SetNode", "pos": [ -700, 0 ], "size": [ 210, 60 ], "flags": { "collapsed": true }, "order": 58, "mode": 0, "inputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "link": 388 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_positive", "properties": { "previousName": "positive" }, "widgets_values": [ "positive" ], "color": "#332922", "bgcolor": "#593930" }, { "id": 192, "type": "SetNode", "pos": [ -700, 270 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 57, "mode": 0, "inputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "link": 389 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_negative", "properties": { "previousName": "negative" }, "widgets_values": [ "negative" ], "color": "#332922", "bgcolor": "#593930" }, { "id": 127, "type": "MaskPreview", "pos": [ 1110, -560 ], "size": [ 260, 260 ], "flags": {}, "order": 76, "mode": 4, "inputs": [ { "name": "mask", "type": "MASK", "link": 371 } ], "outputs": [], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "MaskPreview" }, "widgets_values": [] }, { "id": 169, "type": "SetNode", "pos": [ -630, 390 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 71, "mode": 0, "inputs": [ { "name": "IMAGE", "type": "IMAGE", "link": 363 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_face_video", "properties": { "previousName": "face_video" }, "widgets_values": [ "face_video" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 114, "type": "DrawMaskOnImage", "pos": [ 690, -170 ], "size": [ 270, 78 ], "flags": {}, "order": 75, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 417 }, { "name": "mask", "type": "MASK", "link": 250 } ], "outputs": [ { "name": "images", "type": "IMAGE", "links": [ 370, 419, 420 ] } ], "properties": { "cnr_id": "comfyui-kjnodes", "ver": "623b5913dc7f240fd8b26422e99f8849a21c5473", "Node name for S&R": "DrawMaskOnImage" }, "widgets_values": [ "0, 0, 0" ] }, { "id": 112, "type": "BlockifyMask", "pos": [ 690, -340 ], "size": [ 270, 60 ], "flags": {}, "order": 74, "mode": 0, "inputs": [ { "name": "masks", "type": "MASK", "link": 336 } ], "outputs": [ { "name": "mask", "type": "MASK", "links": [ 250, 371, 418, 421 ] } ], "properties": { "cnr_id": "comfyui-kjnodes", "ver": "00da1910634fbf314d407608efb281ae6f7f1ba2", "Node name for S&R": "BlockifyMask" }, "widgets_values": [ 32 ] }, { "id": 161, "type": "MarkdownNote", "pos": [ -2180, 100 ], "size": [ 370, 150 ], "flags": {}, "order": 33, "mode": 0, "inputs": [], "outputs": [], "title": "Note: about size", "properties": {}, "widgets_values": [ "Due to the **WanAnimateToVideo** node input limit. The width and height must be multiples of 16.\n\nBy default, we set it to a smaller size. This is in case you don't have enough VRAM and input a large size, which may cause an out-of-memory issue." ], "color": "#432", "bgcolor": "#653" }, { "id": 103, "type": "Note", "pos": [ -1300, 660 ], "size": [ 260, 88 ], "flags": {}, "order": 34, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "The Image Scale node is to prevent you from inputting an oversized video. A large size video will take a very long time to preprocess.\n\nPlease update this setting according to the video size you input\n" ], "color": "#432", "bgcolor": "#653" }, { "id": 206, "type": "SetNode", "pos": [ -1090, 430 ], "size": [ 210, 60 ], "flags": { "collapsed": true }, "order": 68, "mode": 0, "inputs": [ { "name": "IMAGE", "type": "IMAGE", "link": 424 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_input_video", "properties": { "previousName": "input_video" }, "widgets_values": [ "input_video" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 23, "type": "GetVideoComponents", "pos": [ -1730, 780 ], "size": [ 190, 70 ], "flags": { "collapsed": false }, "order": 53, "mode": 0, "inputs": [ { "name": "video", "type": "VIDEO", "link": 297 } ], "outputs": [ { "name": "images", "type": "IMAGE", "links": [ 347, 425 ] }, { "name": "audio", "type": "AUDIO", "links": [ 426 ] }, { "name": "fps", "type": "FLOAT", "links": [ 427 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "GetVideoComponents" }, "widgets_values": [] }, { "id": 213, "type": "SetNode", "pos": [ -1720, 890 ], "size": [ 210, 60 ], "flags": { "collapsed": true }, "order": 62, "mode": 0, "inputs": [ { "name": "AUDIO", "type": "AUDIO", "link": 426 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_audio", "properties": { "previousName": "audio" }, "widgets_values": [ "audio" ] }, { "id": 214, "type": "SetNode", "pos": [ -1720, 930 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 63, "mode": 0, "inputs": [ { "name": "FLOAT", "type": "FLOAT", "link": 427 } ], "outputs": [ { "name": "*", "type": "*", "links": null } ], "title": "Set_original_fps", "properties": { "previousName": "original_fps" }, "widgets_values": [ "original_fps" ], "color": "#232", "bgcolor": "#353" }, { "id": 216, "type": "GetNode", "pos": [ -1290, 440 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 35, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 429 ] } ], "title": "Get_height", "properties": {}, "widgets_values": [ "height" ], "color": "#1b4669", "bgcolor": "#29699c" }, { "id": 215, "type": "GetNode", "pos": [ -1290, 400 ], "size": [ 210, 60 ], "flags": { "collapsed": true }, "order": 36, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 428 ] } ], "title": "Get_width", "properties": {}, "widgets_values": [ "width" ], "color": "#1b4669", "bgcolor": "#29699c" }, { "id": 88, "type": "CreateVideo", "pos": [ 610, 1340 ], "size": [ 210, 78 ], "flags": {}, "order": 91, "mode": 4, "inputs": [ { "name": "images", "type": "IMAGE", "link": 191 }, { "name": "audio", "shape": 7, "type": "AUDIO", "link": 431 }, { "name": "fps", "type": "FLOAT", "widget": { "name": "fps" }, "link": 432 } ], "outputs": [ { "name": "VIDEO", "type": "VIDEO", "links": [ 192 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "CreateVideo" }, "widgets_values": [ 16 ] }, { "id": 219, "type": "GetNode", "pos": [ 430, 1370 ], "size": [ 210, 50 ], "flags": { "collapsed": true }, "order": 37, "mode": 4, "inputs": [], "outputs": [ { "name": "AUDIO", "type": "AUDIO", "links": [ 431 ] } ], "title": "Get_audio", "properties": {}, "widgets_values": [ "audio" ] }, { "id": 220, "type": "GetNode", "pos": [ 430, 1410 ], "size": [ 210, 58 ], "flags": { "collapsed": true }, "order": 38, "mode": 4, "inputs": [], "outputs": [ { "name": "FLOAT", "type": "FLOAT", "links": [ 432 ] } ], "title": "Get_original_fps", "properties": {}, "widgets_values": [ "original_fps" ], "color": "#232", "bgcolor": "#353" }, { "id": 100, "type": "DWPreprocessor", "pos": [ -960, 400 ], "size": [ 294.72265625, 222 ], "flags": {}, "order": 66, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 422 }, { "name": "resolution", "shape": 7, "type": "INT", "widget": { "name": "resolution" }, "link": 360 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 363 ] }, { "name": "POSE_KEYPOINT", "type": "POSE_KEYPOINT", "links": null } ], "properties": { "cnr_id": "comfyui_controlnet_aux", "ver": "59b027e088c1c8facf7258f6e392d16d204b4d27", "Node name for S&R": "DWPreprocessor" }, "widgets_values": [ "disable", "disable", "enable", 512, "yolox_l.onnx", "dw-ll_ucoco_384_bs5.torchscript.pt", "disable" ] }, { "id": 101, "type": "DWPreprocessor", "pos": [ -960, 690 ], "size": [ 294.72265625, 222 ], "flags": {}, "order": 67, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 423 }, { "name": "resolution", "shape": 7, "type": "INT", "widget": { "name": "resolution" }, "link": 361 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 362 ] }, { "name": "POSE_KEYPOINT", "type": "POSE_KEYPOINT", "links": null } ], "properties": { "cnr_id": "comfyui_controlnet_aux", "ver": "59b027e088c1c8facf7258f6e392d16d204b4d27", "Node name for S&R": "DWPreprocessor" }, "widgets_values": [ "enable", "enable", "disable", 512, "yolox_l.onnx", "dw-ll_ucoco_384_bs5.torchscript.pt", "disable" ] }, { "id": 212, "type": "ImageScale", "pos": [ -1300, 490 ], "size": [ 270, 130 ], "flags": {}, "order": 61, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 425 }, { "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 428 }, { "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 429 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 422, 423, 424 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "ImageScale" }, "widgets_values": [ "lanczos", 512, 512, "center" ] }, { "id": 44, "type": "MarkdownNote", "pos": [ -2840, -110 ], "size": [ 600, 620 ], "flags": {}, "order": 39, "mode": 0, "inputs": [], "outputs": [], "title": "Note: Model links", "properties": {}, "widgets_values": [ "[Tutorial](https://docs.comfy.org/tutorials/video/wan/wan2-2-animate\n) | [教程](https://docs.comfy.org/zh-CN/tutorials/video/wan/wan2-2-animate)\n\n\n## Model links\n\n**diffusion_models** \n- [Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors](https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/resolve/main/Wan22Animate/Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors)\n- [wan2.2_animate_14B_bf16.safetensors](https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/diffusion_models/wan2.2_animate_14B_bf16.safetensors)\n\n**loras**\n- [lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Lightx2v/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors)\n- [WanAnimate_relight_lora_fp16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/WanAnimate_relight_lora_fp16.safetensors)\n\n**clip_visions**\n- [clip_vision_h.safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/clip_vision/clip_vision_h.safetensors)\n\n**vae**\n- [wan_2.1_vae.safetensors](https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors)\n\n**text_encoders** \n- [umt5_xxl_fp8_e4m3fn_scaled.safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors)\n\n\n```\nComfyUI/\n├───📂 models/\n│ ├───📂 diffusion_models/\n│ │ ├─── Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors\n│ │ └─── wan2.2_animate_14B_bf16.safetensors\n│ ├───📂 loras/\n│ │ ├─── lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors\n│ │ └─── WanAnimate_relight_lora_fp16.safetensors\n│ ├───📂 text_encoders/\n│ │ └─── umt5_xxl_fp8_e4m3fn_scaled.safetensors \n│ ├───📂 clip_visions/ \n│ │ └─── clip_vision_h.safetensors\n│ └───📂 vae/\n│ └── wan_2.1_vae.safetensors\n```\n" ], "color": "#432", "bgcolor": "#653" }, { "id": 226, "type": "MarkdownNote", "pos": [ -2840, -320 ], "size": [ 590, 160 ], "flags": {}, "order": 40, "mode": 0, "inputs": [], "outputs": [], "title": "Note: About Custom nodes", "properties": {}, "widgets_values": [ "In this template, we have used three custom nodes. For users who don't know how to install a custom node, please refer to [How to install custom node](https://docs.comfy.org/installation/install_custom_node).\n\n## Custom nodes\n\n- [comfyui_controlnet_aux](https://github.com/Fannovel16/comfyui_controlnet_aux)\n- [ComfyUI-KJNodes](https://github.com/kijai/ComfyUI-KJNodes/)\n- [ComfyUI-segment-anything-2](https://github.com/kijai/ComfyUI-segment-anything-2)\n" ], "color": "#432", "bgcolor": "#653" }, { "id": 19, "type": "SaveVideo", "pos": [ 840, 370 ], "size": [ 600, 698 ], "flags": {}, "order": 87, "mode": 0, "inputs": [ { "name": "video", "type": "VIDEO", "link": 17 } ], "outputs": [], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "SaveVideo" }, "widgets_values": [ "video/ComfyUI", "auto", "auto" ] }, { "id": 210, "type": "GetNode", "pos": [ -420, -1040 ], "size": [ 210, 60 ], "flags": { "collapsed": true }, "order": 41, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 416, 417, 437 ] } ], "title": "Get_input_video", "properties": {}, "widgets_values": [ "input_video" ], "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 227, "type": "MarkdownNote", "pos": [ 680, 0 ], "size": [ 400, 240 ], "flags": {}, "order": 42, "mode": 0, "inputs": [], "outputs": [], "title": "Note: Switch to Move mode", "properties": {}, "widgets_values": [ "The model has two modes:\n- Mix: character replace\n- Move: Pose transfer\n\nIf you want to switch to **Move** mode, please disconnect **Background_video** and **Character_mask** output from the **WanAnimateToVideo** node.\n\nBypass will still pass the input video to the **WanAnimateToVideo** node, so please disconnect them." ], "color": "#432", "bgcolor": "#653" }, { "id": 217, "type": "GetNode", "pos": [ 290, 980 ], "size": [ 210, 60 ], "flags": { "collapsed": true }, "order": 43, "mode": 0, "inputs": [], "outputs": [ { "name": "AUDIO", "type": "AUDIO", "links": [ 430 ] } ], "title": "Get_audio", "properties": {}, "widgets_values": [ "audio" ] }, { "id": 218, "type": "GetNode", "pos": [ 290, 1030 ], "size": [ 210, 58 ], "flags": { "collapsed": false }, "order": 44, "mode": 0, "inputs": [], "outputs": [ { "name": "FLOAT", "type": "FLOAT", "links": [] } ], "title": "Get_original_fps", "properties": {}, "widgets_values": [ "original_fps" ], "color": "#232", "bgcolor": "#353" }, { "id": 93, "type": "MarkdownNote", "pos": [ -450, 1760 ], "size": [ 420, 88 ], "flags": {}, "order": 45, "mode": 0, "inputs": [], "outputs": [], "title": "Note: Extend video length", "properties": {}, "widgets_values": [ "In order to extend the video length, you need to copy and paste multiple times, and then chain the output with the **batch images** node.\nLink the **video_frame_offset** to next **WanAnimateToVideo** node\n\n" ], "color": "#432", "bgcolor": "#653" }, { "id": 229, "type": "PointsEditor", "pos": [ -400, -980 ], "size": [ 710, 966 ], "flags": {}, "order": 56, "mode": 0, "inputs": [ { "name": "bg_image", "shape": 7, "type": "IMAGE", "link": 437 } ], "outputs": [ { "name": "positive_coords", "type": "STRING", "links": [ 438 ] }, { "name": "negative_coords", "type": "STRING", "links": null }, { "name": "bbox", "type": "BBOX", "links": null }, { "name": "bbox_mask", "type": "MASK", "links": null }, { "name": "cropped_image", "type": "IMAGE", "links": null } ], "properties": { "cnr_id": "comfyui-kjnodes", "ver": "e81f33508b0821ea2f53f4f46a833fa6215626bd", "Node name for S&R": "PointsEditor", "points": "PointsEditor", "neg_points": "PointsEditor" }, "widgets_values": [ "{\"positive\":[{\"x\":256,\"y\":256}],\"negative\":[{\"x\":0,\"y\":0}]}", "[{\"x\":256,\"y\":256}]", "[{\"x\":0,\"y\":0}]", "[{}]", "[{}]", "xyxy", 665, 666, false, "", null ] }, { "id": 126, "type": "MarkdownNote", "pos": [ -400, 30 ], "size": [ 1000, 250 ], "flags": {}, "order": 46, "mode": 0, "inputs": [], "outputs": [], "title": "Note: About Points Editor", "properties": {}, "widgets_values": [ "## How to load image \n\nYou can right-click on the canvas, then choose Load Image. Or you can run the workflow once, and it will automatically get the first frame of the input video.\n\n## Add new green points\n\nGreen points are used to mark the area that you want to detect.\nPress the Shift key, then use the left click to add new green points.\n\n## Add new red points\n\nRed points are used to mark the area you want to exclude.\nPress the Shift key, then use the right click to add new red points.\n\n## Clear all points\n\nClick the **New canvas** to clear all points" ], "color": "#432", "bgcolor": "#653" }, { "id": 15, "type": "CreateVideo", "pos": [ 550, 760 ], "size": [ 270, 78 ], "flags": {}, "order": 85, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 441 }, { "name": "audio", "shape": 7, "type": "AUDIO", "link": 430 } ], "outputs": [ { "name": "VIDEO", "type": "VIDEO", "links": [ 17 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "CreateVideo" }, "widgets_values": [ 16 ] }, { "id": 58, "type": "VAEDecode", "pos": [ 290, 890 ], "size": [ 210, 46 ], "flags": {}, "order": 81, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 127 }, { "name": "vae", "type": "VAE", "link": 400 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 187, 208, 440 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "VAEDecode" }, "widgets_values": [] }, { "id": 62, "type": "WanAnimateToVideo", "pos": [ -150, 460 ], "size": [ 324.751953125, 358 ], "flags": {}, "order": 78, "mode": 0, "inputs": [ { "name": "positive", "type": "CONDITIONING", "link": 390 }, { "name": "negative", "type": "CONDITIONING", "link": 391 }, { "name": "vae", "type": "VAE", "link": 387 }, { "name": "clip_vision_output", "shape": 7, "type": "CLIP_VISION_OUTPUT", "link": 398 }, { "name": "reference_image", "shape": 7, "type": "IMAGE", "link": 383 }, { "name": "face_video", "shape": 7, "type": "IMAGE", "link": 365 }, { "name": "pose_video", "shape": 7, "type": "IMAGE", "link": 364 }, { "name": "background_video", "shape": 7, "type": "IMAGE", "link": 419 }, { "name": "character_mask", "shape": 7, "type": "MASK", "link": 418 }, { "name": "continue_motion", "shape": 7, "type": "IMAGE", "link": null }, { "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 376 }, { "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 377 } ], "outputs": [ { "name": "positive", "type": "CONDITIONING", "links": [ 154 ] }, { "name": "negative", "type": "CONDITIONING", "links": [ 155 ] }, { "name": "latent", "type": "LATENT", "links": [ 156 ] }, { "name": "trim_latent", "type": "INT", "links": [ 152 ] }, { "name": "trim_image", "type": "INT", "links": [ 442 ] }, { "name": "video_frame_offset", "type": "INT", "links": [ 439 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "WanAnimateToVideo" }, "widgets_values": [ 640, 640, 77, 1, 5, 0 ] }, { "id": 230, "type": "ImageFromBatch", "pos": [ 550, 900 ], "size": [ 270, 82 ], "flags": {}, "order": 83, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 440 }, { "name": "batch_index", "type": "INT", "widget": { "name": "batch_index" }, "link": 442 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 441 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "ImageFromBatch" }, "widgets_values": [ 0, 4096 ] }, { "id": 85, "type": "ImageFromBatch", "pos": [ 120, 1760 ], "size": [ 270, 82 ], "flags": {}, "order": 89, "mode": 4, "inputs": [ { "name": "image", "type": "IMAGE", "link": 185 }, { "name": "batch_index", "type": "INT", "widget": { "name": "batch_index" }, "link": 212 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 445 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "ImageFromBatch" }, "widgets_values": [ 0, 4096 ] }, { "id": 86, "type": "ImageBatch", "pos": [ 650, 1240 ], "size": [ 140, 46 ], "flags": {}, "order": 90, "mode": 4, "inputs": [ { "name": "image1", "type": "IMAGE", "link": 187 }, { "name": "image2", "type": "IMAGE", "link": 445 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 191 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "ImageBatch" }, "widgets_values": [] }, { "id": 92, "type": "TrimVideoLatent", "pos": [ 120, 1580 ], "size": [ 270, 58 ], "flags": {}, "order": 86, "mode": 4, "inputs": [ { "name": "samples", "type": "LATENT", "link": 219 }, { "name": "trim_amount", "type": "INT", "widget": { "name": "trim_amount" }, "link": 218 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 220 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.59", "Node name for S&R": "TrimVideoLatent" }, "widgets_values": [ 0 ] } ], "links": [ [ 1, 2, 0, 1, 0, "CLIP" ], [ 4, 4, 0, 9, 0, "CLIP_VISION" ], [ 16, 20, 0, 18, 0, "MODEL" ], [ 17, 15, 0, 19, 0, "VIDEO" ], [ 18, 2, 0, 21, 0, "CLIP" ], [ 127, 57, 0, 58, 0, "LATENT" ], [ 152, 62, 3, 57, 1, "INT" ], [ 154, 62, 0, 63, 1, "CONDITIONING" ], [ 155, 62, 1, 63, 2, "CONDITIONING" ], [ 156, 62, 2, 63, 3, "LATENT" ], [ 157, 63, 0, 57, 0, "LATENT" ], [ 185, 87, 0, 85, 0, "IMAGE" ], [ 187, 58, 0, 86, 0, "IMAGE" ], [ 191, 86, 0, 88, 0, "IMAGE" ], [ 192, 88, 0, 89, 0, "VIDEO" ], [ 208, 58, 0, 90, 9, "IMAGE" ], [ 212, 90, 4, 85, 1, "INT" ], [ 213, 90, 0, 91, 1, "CONDITIONING" ], [ 214, 90, 1, 91, 2, "CONDITIONING" ], [ 215, 90, 2, 91, 3, "LATENT" ], [ 218, 90, 3, 92, 1, "INT" ], [ 219, 91, 0, 92, 0, "LATENT" ], [ 220, 92, 0, 87, 0, "LATENT" ], [ 226, 18, 0, 99, 0, "MODEL" ], [ 227, 99, 0, 60, 0, "MODEL" ], [ 235, 108, 0, 107, 0, "SAM2MODEL" ], [ 240, 107, 0, 111, 0, "MASK" ], [ 250, 112, 0, 114, 1, "MASK" ], [ 297, 145, 0, 23, 0, "VIDEO" ], [ 336, 111, 0, 112, 0, "MASK" ], [ 344, 10, 0, 9, 1, "IMAGE" ], [ 347, 23, 0, 158, 0, "IMAGE" ], [ 356, 159, 0, 162, 0, "*" ], [ 358, 166, 0, 158, 1, "INT" ], [ 359, 167, 0, 158, 2, "INT" ], [ 360, 158, 0, 100, 1, "INT" ], [ 361, 158, 0, 101, 1, "INT" ], [ 362, 101, 0, 168, 0, "*" ], [ 363, 100, 0, 169, 0, "*" ], [ 364, 170, 0, 62, 6, "IMAGE" ], [ 365, 171, 0, 62, 5, "IMAGE" ], [ 366, 172, 0, 90, 5, "IMAGE" ], [ 367, 173, 0, 90, 6, "IMAGE" ], [ 370, 114, 0, 124, 0, "IMAGE" ], [ 371, 112, 0, 127, 0, "MASK" ], [ 376, 180, 0, 62, 10, "INT" ], [ 377, 181, 0, 62, 11, "INT" ], [ 378, 182, 0, 90, 10, "INT" ], [ 380, 160, 0, 163, 0, "*" ], [ 382, 10, 0, 185, 0, "*" ], [ 383, 186, 0, 62, 4, "IMAGE" ], [ 384, 187, 0, 90, 4, "IMAGE" ], [ 385, 3, 0, 188, 0, "*" ], [ 386, 189, 0, 90, 2, "VAE" ], [ 387, 190, 0, 62, 2, "VAE" ], [ 388, 21, 0, 191, 0, "*" ], [ 389, 1, 0, 192, 0, "*" ], [ 390, 193, 0, 62, 0, "CONDITIONING" ], [ 391, 194, 0, 62, 1, "CONDITIONING" ], [ 392, 195, 0, 90, 0, "CONDITIONING" ], [ 393, 196, 0, 90, 1, "CONDITIONING" ], [ 394, 60, 0, 197, 0, "*" ], [ 395, 198, 0, 91, 0, "MODEL" ], [ 396, 199, 0, 87, 1, "VAE" ], [ 397, 9, 0, 201, 0, "*" ], [ 398, 202, 0, 62, 3, "CLIP_VISION_OUTPUT" ], [ 399, 203, 0, 63, 0, "MODEL" ], [ 400, 204, 0, 58, 1, "VAE" ], [ 401, 183, 0, 90, 11, "INT" ], [ 402, 205, 0, 90, 3, "CLIP_VISION_OUTPUT" ], [ 416, 210, 0, 107, 1, "IMAGE" ], [ 417, 210, 0, 114, 0, "IMAGE" ], [ 418, 112, 0, 62, 8, "MASK" ], [ 419, 114, 0, 62, 7, "IMAGE" ], [ 420, 114, 0, 90, 7, "IMAGE" ], [ 421, 112, 0, 90, 8, "MASK" ], [ 422, 212, 0, 100, 0, "IMAGE" ], [ 423, 212, 0, 101, 0, "IMAGE" ], [ 424, 212, 0, 206, 0, "IMAGE" ], [ 425, 23, 0, 212, 0, "IMAGE" ], [ 426, 23, 1, 213, 0, "*" ], [ 427, 23, 2, 214, 0, "*" ], [ 428, 215, 0, 212, 1, "INT" ], [ 429, 216, 0, 212, 2, "INT" ], [ 430, 217, 0, 15, 1, "AUDIO" ], [ 431, 219, 0, 88, 1, "AUDIO" ], [ 432, 220, 0, 88, 2, "FLOAT" ], [ 437, 210, 0, 229, 0, "IMAGE" ], [ 438, 229, 0, 107, 2, "STRING" ], [ 439, 62, 5, 90, 12, "INT" ], [ 440, 58, 0, 230, 0, "IMAGE" ], [ 441, 230, 0, 15, 0, "IMAGE" ], [ 442, 62, 4, 230, 1, "INT" ], [ 445, 85, 0, 86, 1, "IMAGE" ] ], "groups": [ { "id": 1, "title": "Step 1 - Load models", "bounding": [ -1790, -360, 720, 640 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 2, "title": "Step 3 - Upload referece image", "bounding": [ -2220, 300, 450, 640 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 3, "title": "Step 2 - Prompt", "bounding": [ -1050, -360, 560, 640 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 7, "title": "Step 4 - Load original video", "bounding": [ -1750, 300, 1260, 640 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 8, "title": "Sampling + video output", "bounding": [ -470, 300, 1970, 810 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 9, "title": "Video extend example + Video output (for more than 4s input videos)", "bounding": [ -470, 1140, 1960, 820 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 13, "title": "Character Mask and Background Video Preprocessing", "bounding": [ -460, -1120, 1960, 1400 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 14, "title": "Character mask", "bounding": [ 680, -550, 290, 283.6000061035156 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 15, "title": "Background_video", "bounding": [ 680, -250, 290, 170 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 16, "title": "Video size", "bounding": [ -2210, -360, 410, 640 ], "color": "#3f789e", "font_size": 24, "flags": {} } ], "config": {}, "extra": { "ds": { "scale": 0.27802872529472866, "offset": [ 2553.995297216719, 878.077029700295 ] }, "frontendVersion": "1.26.13", "VHS_latentpreview": false, "VHS_latentpreviewrate": 0, "VHS_MetadataImage": true, "VHS_KeepIntermediate": true }, "version": 0.4 }