{ "id": "ba1df054-50a8-4da2-b45a-25b4dde3cc2f", "revision": 0, "last_node_id": 283, "last_link_id": 714, "nodes": [ { "id": 158, "type": "PixelPerfectResolution", "pos": [ -1320, 800 ], "size": [ 291.71484375, 106 ], "flags": {}, "order": 25, "mode": 0, "inputs": [ { "name": "original_image", "type": "IMAGE", "link": 347 }, { "name": "image_gen_width", "type": "INT", "link": 448, "widget": { "name": "image_gen_width" } }, { "name": "image_gen_height", "type": "INT", "link": 449, "widget": { "name": "image_gen_height" } } ], "outputs": [ { "name": "RESOLUTION (INT)", "type": "INT", "links": [ 360, 361 ] } ], "properties": { "Node name for S&R": "PixelPerfectResolution", "cnr_id": "comfyui_controlnet_aux", "ver": "59b027e088c1c8facf7258f6e392d16d204b4d27" }, "widgets_values": [ 512, 512, "Just Resize" ] }, { "id": 145, "type": "LoadVideo", "pos": [ -1730, 410 ], "size": [ 360, 434 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "VIDEO", "type": "VIDEO", "links": [ 297 ] } ], "properties": { "Node name for S&R": "LoadVideo", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ "video_wan2_2_14B_animate_original_video.mp4", "image" ] }, { "id": 108, "type": "DownloadAndLoadSAM2Model", "pos": [ -1310, 1130 ], "size": [ 320, 140 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "name": "sam2_model", "type": "SAM2MODEL", "links": [ 235 ] } ], "properties": { "Node name for S&R": "DownloadAndLoadSAM2Model", "cnr_id": "ComfyUI-segment-anything-2", "ver": "c59676b008a76237002926f684d0ca3a9b29ac54" }, "widgets_values": [ "sam2_hiera_base_plus.safetensors", "video", "cuda", "fp16" ] }, { "id": 124, "type": "PreviewImage", "pos": [ -860, 1900 ], "size": [ 250, 270 ], "flags": {}, "order": 33, "mode": 4, "inputs": [ { "name": "images", "type": "IMAGE", "link": 675 } ], "outputs": [], "properties": { "Node name for S&R": "PreviewImage", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [] }, { "id": 127, "type": "MaskPreview", "pos": [ -870, 1540 ], "size": [ 260, 260 ], "flags": {}, "order": 32, "mode": 4, "inputs": [ { "name": "mask", "type": "MASK", "link": 691 } ], "outputs": [], "properties": { "Node name for S&R": "MaskPreview", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [] }, { "id": 103, "type": "Note", "pos": [ -1300, 660 ], "size": [ 260, 88 ], "flags": {}, "order": 2, "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": 227, "type": "MarkdownNote", "pos": [ -1300, 2100 ], "size": [ 400, 240 ], "flags": {}, "order": 3, "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": 229, "type": "PointsEditor", "pos": [ -2150, 1100 ], "size": [ 685, 940 ], "flags": {}, "order": 26, "mode": 0, "inputs": [ { "name": "bg_image", "shape": 7, "type": "IMAGE", "link": 456 } ], "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": { "Node name for S&R": "PointsEditor", "cnr_id": "comfyui-kjnodes", "ver": "e81f33508b0821ea2f53f4f46a833fa6215626bd", "points": "PointsEditor", "neg_points": "PointsEditor", "imgData": { "name": "bg_image", "base64": [ "" ] } }, "widgets_values": [ "{\"positive\":[{\"x\":256,\"y\":256}],\"negative\":[{\"x\":0,\"y\":0}]}", "[{\"x\":256,\"y\":256}]", "[{\"x\":0,\"y\":0}]", "[{}]", "[{}]", "xyxy", 640, 640, false ] }, { "id": 212, "type": "ImageScale", "pos": [ -1300, 490 ], "size": [ 270, 130 ], "flags": {}, "order": 22, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 425 }, { "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 446 }, { "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 447 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 422, 423, 456, 457, 662 ] } ], "properties": { "Node name for S&R": "ImageScale", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ "lanczos", 512, 512, "center" ] }, { "id": 100, "type": "DWPreprocessor", "pos": [ -960, 400 ], "size": [ 294.72265625, 222 ], "flags": {}, "order": 28, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 422 }, { "name": "resolution", "type": "INT", "link": 360, "shape": 7, "widget": { "name": "resolution" } } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 484, 532, 704 ] }, { "name": "POSE_KEYPOINT", "type": "POSE_KEYPOINT", "links": null } ], "properties": { "Node name for S&R": "DWPreprocessor", "cnr_id": "comfyui_controlnet_aux", "ver": "59b027e088c1c8facf7258f6e392d16d204b4d27" }, "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": 29, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 423 }, { "name": "resolution", "type": "INT", "link": 361, "shape": 7, "widget": { "name": "resolution" } } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 485, 533, 705 ] }, { "name": "POSE_KEYPOINT", "type": "POSE_KEYPOINT", "links": null } ], "properties": { "Node name for S&R": "DWPreprocessor", "cnr_id": "comfyui_controlnet_aux", "ver": "59b027e088c1c8facf7258f6e392d16d204b4d27" }, "widgets_values": [ "enable", "enable", "disable", 512, "yolox_l.onnx", "dw-ll_ucoco_384_bs5.torchscript.pt", "disable" ] }, { "id": 23, "type": "GetVideoComponents", "pos": [ -1730, 780 ], "size": [ 190, 70 ], "flags": { "collapsed": false }, "order": 16, "mode": 0, "inputs": [ { "name": "video", "type": "VIDEO", "link": 297 } ], "outputs": [ { "name": "images", "type": "IMAGE", "links": [ 347, 425 ] }, { "name": "audio", "type": "AUDIO", "links": [ 478, 526, 698 ] }, { "name": "fps", "type": "FLOAT", "links": [] } ], "properties": { "Node name for S&R": "GetVideoComponents", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [] }, { "id": 21, "type": "CLIPTextEncode", "pos": [ -990, -280 ], "size": [ 420, 230 ], "flags": {}, "order": 18, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 18 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 480, 528, 700 ] } ], "title": "CLIP Text Encode (Positive Prompt)", "properties": { "Node name for S&R": "CLIPTextEncode", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ "The character is dancing in the room" ], "color": "#232", "bgcolor": "#353" }, { "id": 1, "type": "CLIPTextEncode", "pos": [ -990, 50 ], "size": [ 425.27801513671875, 180.6060791015625 ], "flags": {}, "order": 17, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 1 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 481, 529, 701 ] } ], "title": "CLIP Text Encode (Negative Prompt)", "properties": { "Node name for S&R": "CLIPTextEncode", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" ], "color": "#322", "bgcolor": "#533" }, { "id": 9, "type": "CLIPVisionEncode", "pos": [ -2150, 860 ], "size": [ 253.60000610351562, 78 ], "flags": { "collapsed": false }, "order": 19, "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": [ 482, 530, 702 ] } ], "properties": { "Node name for S&R": "CLIPVisionEncode", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ "none" ] }, { "id": 10, "type": "LoadImage", "pos": [ -2150, 380 ], "size": [ 340, 440 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 344, 483, 531, 703 ] }, { "name": "MASK", "type": "MASK", "slot_index": 1, "links": null } ], "properties": { "Node name for S&R": "LoadImage", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ "video_wan2_2_14B_animate_reference_image.png", "image" ] }, { "id": 126, "type": "MarkdownNote", "pos": [ -2150, 2110 ], "size": [ 760, 240 ], "flags": {}, "order": 5, "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": 107, "type": "Sam2Segmentation", "pos": [ -1310, 1330 ], "size": [ 320, 190 ], "flags": {}, "order": 32, "mode": 0, "inputs": [ { "name": "sam2_model", "type": "SAM2MODEL", "link": 235 }, { "name": "image", "type": "IMAGE", "link": 457 }, { "name": "coordinates_positive", "type": "STRING", "link": 438, "shape": 7 }, { "name": "coordinates_negative", "type": "STRING", "link": null, "shape": 7 }, { "name": "bboxes", "type": "BBOX", "link": null, "shape": 7 }, { "name": "mask", "type": "MASK", "link": null, "shape": 7 } ], "outputs": [ { "name": "mask", "type": "MASK", "links": [ 661 ] } ], "properties": { "Node name for S&R": "Sam2Segmentation", "cnr_id": "ComfyUI-segment-anything-2", "ver": "c59676b008a76237002926f684d0ca3a9b29ac54" }, "widgets_values": [ true, false ] }, { "id": 274, "type": "GrowMask", "pos": [ -1280, 1610 ], "size": [ 270, 82 ], "flags": { "collapsed": false }, "order": 29, "mode": 0, "inputs": [ { "name": "mask", "type": "MASK", "link": 661 } ], "outputs": [ { "name": "MASK", "type": "MASK", "links": [ 660 ] } ], "properties": { "Node name for S&R": "GrowMask", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 10, true ] }, { "id": 275, "type": "DrawMaskOnImage", "pos": [ -1280, 1920 ], "size": [ 270, 78 ], "flags": {}, "order": 35, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 662 }, { "name": "mask", "type": "MASK", "link": 659 } ], "outputs": [ { "name": "images", "type": "IMAGE", "links": [ 675, 676, 677, 706 ] } ], "properties": { "Node name for S&R": "DrawMaskOnImage", "cnr_id": "comfyui-kjnodes", "ver": "623b5913dc7f240fd8b26422e99f8849a21c5473" }, "widgets_values": [ "0, 0, 0" ] }, { "id": 276, "type": "BlockifyMask", "pos": [ -1280, 1750 ], "size": [ 270, 60 ], "flags": {}, "order": 34, "mode": 0, "inputs": [ { "name": "masks", "type": "MASK", "link": 660 } ], "outputs": [ { "name": "mask", "type": "MASK", "links": [ 659, 691, 692, 693, 707 ] } ], "properties": { "Node name for S&R": "BlockifyMask", "cnr_id": "comfyui-kjnodes", "ver": "00da1910634fbf314d407608efb281ae6f7f1ba2" }, "widgets_values": [ 32 ] }, { "id": 278, "type": "063b0ee8-c72b-442b-8029-dd3d5f4b6650", "pos": [ 610, -190 ], "size": [ 410, 446 ], "flags": {}, "order": 37, "mode": 4, "inputs": [ { "name": "model", "type": "MODEL", "link": 696 }, { "name": "vae", "type": "VAE", "link": 697 }, { "name": "audio", "type": "AUDIO", "link": 698 }, { "label": "last_batch_images", "name": "image1", "type": "IMAGE", "link": 710 }, { "name": "positive", "type": "CONDITIONING", "link": 700 }, { "name": "negative", "type": "CONDITIONING", "link": 701 }, { "name": "clip_vision_output", "type": "CLIP_VISION_OUTPUT", "link": 702 }, { "name": "reference_image", "type": "IMAGE", "link": 703 }, { "name": "face_video", "type": "IMAGE", "link": 704 }, { "name": "pose_video", "type": "IMAGE", "link": 705 }, { "name": "background_video", "type": "IMAGE", "link": 706 }, { "name": "character_mask", "type": "MASK", "link": 707 }, { "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 708 }, { "name": "video_frame_offset", "type": "INT", "widget": { "name": "video_frame_offset" }, "link": 711 } ], "outputs": [ { "label": "batch image output", "name": "IMAGE", "type": "IMAGE", "links": [] }, { "name": "video_frame_offset", "type": "INT", "links": [] }, { "name": "VIDEO", "type": "VIDEO", "links": [ 695 ] } ], "properties": { "proxyWidgets": [ [ "-1", "width" ], [ "-1", "video_frame_offset" ], [ "-1", "seed" ], [ "-1", "steps" ], [ "-1", "cfg" ], [ "-1", "sampler_name" ], [ "-1", "scheduler" ], [ "-1", "fps" ] ], "cnr_id": "comfy-core", "ver": "0.3.60" }, "widgets_values": [ 1280, 0, 387378783691198, 6, 1, "euler", "simple", 16 ] }, { "id": 242, "type": "975ed319-ca2b-461e-b42a-8e2704ba902f", "pos": [ 130, -180 ], "size": [ 410, 446 ], "flags": {}, "order": 36, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 524 }, { "name": "vae", "type": "VAE", "link": 525 }, { "name": "audio", "type": "AUDIO", "link": 526 }, { "label": "last_batch_images", "name": "image1", "type": "IMAGE", "link": 527 }, { "name": "positive", "type": "CONDITIONING", "link": 528 }, { "name": "negative", "type": "CONDITIONING", "link": 529 }, { "name": "clip_vision_output", "type": "CLIP_VISION_OUTPUT", "link": 530 }, { "name": "reference_image", "type": "IMAGE", "link": 531 }, { "name": "face_video", "type": "IMAGE", "link": 532 }, { "name": "pose_video", "type": "IMAGE", "link": 533 }, { "name": "background_video", "type": "IMAGE", "link": 677 }, { "name": "character_mask", "type": "MASK", "link": 693 }, { "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 536 }, { "name": "video_frame_offset", "type": "INT", "widget": { "name": "video_frame_offset" }, "link": 537 } ], "outputs": [ { "label": "batch_images", "name": "IMAGE", "type": "IMAGE", "links": [ 710 ] }, { "name": "video_frame_offset", "type": "INT", "links": [ 711 ] }, { "name": "VIDEO", "type": "VIDEO", "links": [ 540 ] } ], "properties": { "proxyWidgets": [ [ "-1", "width" ], [ "-1", "video_frame_offset" ], [ "-1", "seed" ], [ "-1", "steps" ], [ "-1", "cfg" ], [ "-1", "sampler_name" ], [ "-1", "scheduler" ], [ "-1", "fps" ] ], "cnr_id": "comfy-core", "ver": "0.3.60" }, "widgets_values": [ 1280, 0, 387378783691198, 6, 1, "euler", "simple", 16 ] }, { "id": 277, "type": "SaveVideo", "pos": [ 610, 320 ], "size": [ 420, 558 ], "flags": {}, "order": 39, "mode": 4, "inputs": [ { "name": "video", "type": "VIDEO", "link": 695 } ], "outputs": [], "properties": { "Node name for S&R": "SaveVideo", "cnr_id": "comfy-core", "ver": "0.3.60" }, "widgets_values": [ "video/ComfyUI", "auto", "auto" ] }, { "id": 238, "type": "MarkdownNote", "pos": [ 110, 1110 ], "size": [ 420, 120 ], "flags": {}, "order": 6, "mode": 0, "inputs": [], "outputs": [], "title": "Note: Extend video length", "properties": {}, "widgets_values": [ "Copy this group then link the \"Batch images\" and the \"video_frame_offset\" to the next extend subgraph" ], "color": "#432", "bgcolor": "#653" }, { "id": 243, "type": "SaveVideo", "pos": [ 140, 330 ], "size": [ 420, 558 ], "flags": {}, "order": 38, "mode": 0, "inputs": [ { "name": "video", "type": "VIDEO", "link": 540 } ], "outputs": [], "properties": { "Node name for S&R": "SaveVideo", "cnr_id": "comfy-core", "ver": "0.3.60" }, "widgets_values": [ "video/ComfyUI", "auto", "auto" ] }, { "id": 232, "type": "90db3fa1-b7fd-4c97-90a4-3e9533589dce", "pos": [ -420, -180 ], "size": [ 450, 430 ], "flags": {}, "order": 34, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 477 }, { "name": "audio", "type": "AUDIO", "link": 478 }, { "name": "vae", "type": "VAE", "link": 479 }, { "name": "positive", "type": "CONDITIONING", "link": 480 }, { "name": "negative", "type": "CONDITIONING", "link": 481 }, { "name": "clip_vision_output", "type": "CLIP_VISION_OUTPUT", "link": 482 }, { "name": "reference_image", "type": "IMAGE", "link": 483 }, { "name": "face_video", "type": "IMAGE", "link": 484 }, { "name": "pose_video", "type": "IMAGE", "link": 485 }, { "name": "background_video", "type": "IMAGE", "link": 676 }, { "name": "character_mask", "type": "MASK", "link": 692 }, { "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 488 }, { "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 489 } ], "outputs": [ { "name": "VIDEO", "type": "VIDEO", "links": [ 490 ] }, { "name": "IMAGE", "type": "IMAGE", "links": [ 527 ] }, { "name": "video_frame_offset", "type": "INT", "links": [ 537 ] } ], "properties": { "proxyWidgets": [ [ "-1", "width" ], [ "-1", "height" ], [ "-1", "fps" ], [ "-1", "seed" ], [ "-1", "steps" ], [ "-1", "cfg" ], [ "-1", "sampler_name" ], [ "-1", "scheduler" ] ], "cnr_id": "comfy-core", "ver": "0.3.60" }, "widgets_values": [ 640, 640, 16, 1106558644923357, 6, 1, "euler", "simple" ] }, { "id": 19, "type": "SaveVideo", "pos": [ -410, 330 ], "size": [ 460, 558 ], "flags": {}, "order": 35, "mode": 0, "inputs": [ { "name": "video", "type": "VIDEO", "link": 490 } ], "outputs": [], "properties": { "Node name for S&R": "SaveVideo", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ "video/ComfyUI", "auto", "auto" ] }, { "id": 99, "type": "LoraLoaderModelOnly", "pos": [ -1800, -50 ], "size": [ 306.36004638671875, 82 ], "flags": {}, "order": 23, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 226 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 227 ] } ], "properties": { "Node name for S&R": "LoraLoaderModelOnly", "cnr_id": "comfy-core", "ver": "0.3.59", "models": [ { "name": "WanAnimate_relight_lora_fp16.safetensors", "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/LoRAs/Wan22_relight/WanAnimate_relight_lora_fp16.safetensors", "directory": "loras" } ] }, "widgets_values": [ "WanAnimate_relight_lora_fp16.safetensors", 1 ] }, { "id": 226, "type": "MarkdownNote", "pos": [ -2830, -380 ], "size": [ 590, 160 ], "flags": {}, "order": 7, "mode": 0, "inputs": [], "outputs": [], "title": "Note: Make sure these custom nodes are installed.", "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": 44, "type": "MarkdownNote", "pos": [ -2830, -170 ], "size": [ 590, 590 ], "flags": {}, "order": 8, "mode": 0, "inputs": [], "outputs": [], "title": "Note: Model links", "properties": {}, "widgets_values": [ "[Tutorial](https://docs.comfy.org/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/LoRAs/Wan22_relight/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# Report issue\n\nIf you have any problems while using this workflow, please report template-related issues via this link: [report the template issue here](https://github.com/Comfy-Org/workflow_templates/issues)." ], "color": "#432", "bgcolor": "#653" }, { "id": 2, "type": "CLIPLoader", "pos": [ -1400, -260 ], "size": [ 306.36004638671875, 106 ], "flags": {}, "order": 9, "mode": 0, "inputs": [], "outputs": [ { "name": "CLIP", "type": "CLIP", "slot_index": 0, "links": [ 1, 18 ] } ], "properties": { "Node name for S&R": "CLIPLoader", "cnr_id": "comfy-core", "ver": "0.3.59", "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": 3, "type": "VAELoader", "pos": [ -1400, 180 ], "size": [ 310, 60 ], "flags": {}, "order": 10, "mode": 0, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "slot_index": 0, "links": [ 479, 525, 697 ] } ], "properties": { "Node name for S&R": "VAELoader", "cnr_id": "comfy-core", "ver": "0.3.59", "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": 60, "type": "ModelSamplingSD3", "pos": [ -1380, -30 ], "size": [ 315, 58 ], "flags": {}, "order": 27, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 227 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "slot_index": 0, "links": [ 477, 524, 696 ] } ], "properties": { "Node name for S&R": "ModelSamplingSD3", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 8 ] }, { "id": 4, "type": "CLIPVisionLoader", "pos": [ -2160, 160 ], "size": [ 306.36004638671875, 58 ], "flags": {}, "order": 11, "mode": 0, "inputs": [], "outputs": [ { "name": "CLIP_VISION", "type": "CLIP_VISION", "slot_index": 0, "links": [ 4 ] } ], "properties": { "Node name for S&R": "CLIPVisionLoader", "cnr_id": "comfy-core", "ver": "0.3.59", "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": [ -1800, -190 ], "size": [ 310, 82 ], "flags": {}, "order": 20, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 16 } ], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 226 ] } ], "properties": { "Node name for S&R": "LoraLoaderModelOnly", "cnr_id": "comfy-core", "ver": "0.3.59", "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": 20, "type": "UNETLoader", "pos": [ -2160, -90 ], "size": [ 306.36004638671875, 82 ], "flags": {}, "order": 12, "mode": 0, "inputs": [], "outputs": [ { "name": "MODEL", "type": "MODEL", "slot_index": 0, "links": [ 16 ] } ], "properties": { "Node name for S&R": "UNETLoader", "cnr_id": "comfy-core", "ver": "0.3.59", "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": [ -1020, -500 ], "size": [ 240, 82 ], "flags": {}, "order": 13, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 447, 449, 489 ] } ], "title": "Height", "properties": { "Node name for S&R": "PrimitiveInt", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 640, "fixed" ] }, { "id": 159, "type": "PrimitiveInt", "pos": [ -750, -500 ], "size": [ 240, 82 ], "flags": {}, "order": 14, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 446, 448, 488, 536, 708 ] } ], "title": "Width", "properties": { "Node name for S&R": "PrimitiveInt", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 640, "fixed" ] }, { "id": 161, "type": "MarkdownNote", "pos": [ -460, -570 ], "size": [ 370, 88 ], "flags": {}, "order": 15, "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" } ], "links": [ [ 1, 2, 0, 1, 0, "CLIP" ], [ 4, 4, 0, 9, 0, "CLIP_VISION" ], [ 16, 20, 0, 18, 0, "MODEL" ], [ 18, 2, 0, 21, 0, "CLIP" ], [ 226, 18, 0, 99, 0, "MODEL" ], [ 227, 99, 0, 60, 0, "MODEL" ], [ 235, 108, 0, 107, 0, "SAM2MODEL" ], [ 297, 145, 0, 23, 0, "VIDEO" ], [ 344, 10, 0, 9, 1, "IMAGE" ], [ 347, 23, 0, 158, 0, "IMAGE" ], [ 360, 158, 0, 100, 1, "INT" ], [ 361, 158, 0, 101, 1, "INT" ], [ 422, 212, 0, 100, 0, "IMAGE" ], [ 423, 212, 0, 101, 0, "IMAGE" ], [ 425, 23, 0, 212, 0, "IMAGE" ], [ 438, 229, 0, 107, 2, "STRING" ], [ 446, 159, 0, 212, 1, "INT" ], [ 447, 160, 0, 212, 2, "INT" ], [ 448, 159, 0, 158, 1, "INT" ], [ 449, 160, 0, 158, 2, "INT" ], [ 456, 212, 0, 229, 0, "IMAGE" ], [ 457, 212, 0, 107, 1, "IMAGE" ], [ 477, 60, 0, 232, 0, "MODEL" ], [ 478, 23, 1, 232, 1, "AUDIO" ], [ 479, 3, 0, 232, 2, "VAE" ], [ 480, 21, 0, 232, 3, "CONDITIONING" ], [ 481, 1, 0, 232, 4, "CONDITIONING" ], [ 482, 9, 0, 232, 5, "CLIP_VISION_OUTPUT" ], [ 483, 10, 0, 232, 6, "IMAGE" ], [ 484, 100, 0, 232, 7, "IMAGE" ], [ 485, 101, 0, 232, 8, "IMAGE" ], [ 488, 159, 0, 232, 11, "INT" ], [ 489, 160, 0, 232, 12, "INT" ], [ 490, 232, 0, 19, 0, "VIDEO" ], [ 524, 60, 0, 242, 0, "MODEL" ], [ 525, 3, 0, 242, 1, "VAE" ], [ 526, 23, 1, 242, 2, "AUDIO" ], [ 527, 232, 1, 242, 3, "IMAGE" ], [ 528, 21, 0, 242, 4, "CONDITIONING" ], [ 529, 1, 0, 242, 5, "CONDITIONING" ], [ 530, 9, 0, 242, 6, "CLIP_VISION_OUTPUT" ], [ 531, 10, 0, 242, 7, "IMAGE" ], [ 532, 100, 0, 242, 8, "IMAGE" ], [ 533, 101, 0, 242, 9, "IMAGE" ], [ 536, 159, 0, 242, 12, "INT" ], [ 537, 232, 2, 242, 13, "INT" ], [ 540, 242, 2, 243, 0, "VIDEO" ], [ 659, 276, 0, 275, 1, "MASK" ], [ 660, 274, 0, 276, 0, "MASK" ], [ 661, 107, 0, 274, 0, "MASK" ], [ 662, 212, 0, 275, 0, "IMAGE" ], [ 675, 275, 0, 124, 0, "IMAGE" ], [ 676, 275, 0, 232, 9, "IMAGE" ], [ 677, 275, 0, 242, 10, "IMAGE" ], [ 691, 276, 0, 127, 0, "MASK" ], [ 692, 276, 0, 232, 10, "MASK" ], [ 693, 276, 0, 242, 11, "MASK" ], [ 695, 278, 2, 277, 0, "VIDEO" ], [ 696, 60, 0, 278, 0, "MODEL" ], [ 697, 3, 0, 278, 1, "VAE" ], [ 698, 23, 1, 278, 2, "AUDIO" ], [ 700, 21, 0, 278, 4, "CONDITIONING" ], [ 701, 1, 0, 278, 5, "CONDITIONING" ], [ 702, 9, 0, 278, 6, "CLIP_VISION_OUTPUT" ], [ 703, 10, 0, 278, 7, "IMAGE" ], [ 704, 100, 0, 278, 8, "IMAGE" ], [ 705, 101, 0, 278, 9, "IMAGE" ], [ 706, 275, 0, 278, 10, "IMAGE" ], [ 707, 276, 0, 278, 11, "MASK" ], [ 708, 159, 0, 278, 12, "INT" ], [ 710, 242, 0, 278, 3, "IMAGE" ], [ 711, 242, 1, 278, 13, "INT" ] ], "groups": [ { "id": 1, "title": "Step 1 - Load models", "bounding": [ -2190, -360, 1130, 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, -360, 550, 1400 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 13, "title": "Character Mask and Background Video Preprocessing", "bounding": [ -2210, 960, 1720, 1440 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 16, "title": "Video size", "bounding": [ -1040, -600, 550, 220 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 14, "title": "Character mask", "bounding": [ -1290, 1540, 290, 283.6000061035156 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 15, "title": "Background_video", "bounding": [ -1290, 1840, 290, 170 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 17, "title": "Video extend", "bounding": [ 100, -360, 480, 1400 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 18, "title": "Video extend", "bounding": [ 600, -360, 460, 1400 ], "color": "#3f789e", "font_size": 24, "flags": {} } ], "definitions": { "subgraphs": [ { "id": "90db3fa1-b7fd-4c97-90a4-3e9533589dce", "version": 1, "state": { "lastGroupId": 16, "lastNodeId": 231, "lastLinkId": 482, "lastRerouteId": 0 }, "revision": 0, "config": {}, "name": "Video Sampling and output(Subgraph)", "inputNode": { "id": -10, "bounding": [ -348.07421875, -104, 138.07421875, 420 ] }, "outputNode": { "id": -20, "bounding": [ 880, -4, 141.841796875, 100 ] }, "inputs": [ { "id": "a65c1a6f-1c56-4db6-bc46-0d762e228140", "name": "model", "type": "MODEL", "linkIds": [ 454 ], "localized_name": "model", "pos": [ -230, -84 ] }, { "id": "f60a003a-5f70-4edb-87d2-49249b63ac60", "name": "audio", "type": "AUDIO", "linkIds": [ 463 ], "localized_name": "audio", "shape": 7, "pos": [ -230, -64 ] }, { "id": "3eba0674-9407-48ab-8416-23357fefa5e4", "name": "vae", "type": "VAE", "linkIds": [ 464, 471 ], "localized_name": "vae", "pos": [ -230, -44 ] }, { "id": "8c5ba174-3dac-4830-989d-2ffd194a4638", "name": "positive", "type": "CONDITIONING", "linkIds": [ 467 ], "localized_name": "positive", "pos": [ -230, -24 ] }, { "id": "1047fa35-1365-4dfc-b7f1-a5869b601a89", "name": "negative", "type": "CONDITIONING", "linkIds": [ 470 ], "localized_name": "negative", "pos": [ -230, -4 ] }, { "id": "04a00ce5-40d1-46a0-9478-9aba0778b80b", "name": "clip_vision_output", "type": "CLIP_VISION_OUTPUT", "linkIds": [ 474 ], "localized_name": "clip_vision_output", "shape": 7, "pos": [ -230, 16 ] }, { "id": "9ed8853f-bd73-4728-be35-ed4d4a177059", "name": "reference_image", "type": "IMAGE", "linkIds": [ 475 ], "localized_name": "reference_image", "shape": 7, "pos": [ -230, 36 ] }, { "id": "2b62e853-eb8b-4d69-bf22-1f0822d3e56d", "name": "face_video", "type": "IMAGE", "linkIds": [ 459 ], "localized_name": "face_video", "shape": 7, "pos": [ -230, 56 ] }, { "id": "3136835f-c045-4f05-a970-3adafd321465", "name": "pose_video", "type": "IMAGE", "linkIds": [ 461 ], "localized_name": "pose_video", "shape": 7, "pos": [ -230, 76 ] }, { "id": "5ad7efd4-462f-41d0-8340-4afd50c5f348", "name": "background_video", "type": "IMAGE", "linkIds": [ 419 ], "localized_name": "background_video", "shape": 7, "pos": [ -230, 96 ] }, { "id": "ca1d3a4d-4e24-4d7e-8f09-806712fd4bc9", "name": "character_mask", "type": "MASK", "linkIds": [ 418 ], "localized_name": "character_mask", "shape": 7, "pos": [ -230, 116 ] }, { "id": "f39fd571-8756-4c88-bc40-9055450f6e00", "name": "width", "type": "INT", "linkIds": [ 450 ], "localized_name": "width", "pos": [ -230, 136 ] }, { "id": "02628a20-dd6c-44e6-9012-b6d0bf61a93f", "name": "height", "type": "INT", "linkIds": [ 451 ], "localized_name": "height", "pos": [ -230, 156 ] }, { "id": "066ae061-5d3e-473f-8a83-8517c605e63d", "name": "fps", "type": "FLOAT", "linkIds": [ 477 ], "pos": [ -230, 176 ] }, { "id": "fbbe4cdd-2580-486a-8d7c-53f1dc0a4034", "name": "seed", "type": "INT", "linkIds": [ 478 ], "pos": [ -230, 196 ] }, { "id": "4bf86876-244b-49d0-a6f5-f8b98de0ac50", "name": "steps", "type": "INT", "linkIds": [ 479 ], "pos": [ -230, 216 ] }, { "id": "43112400-97ac-4ab9-8c6e-1bd62e32f8d4", "name": "cfg", "type": "FLOAT", "linkIds": [ 480 ], "pos": [ -230, 236 ] }, { "id": "294b0d0a-7b7b-4953-8a86-37440b22099b", "name": "sampler_name", "type": "COMBO", "linkIds": [ 481 ], "pos": [ -230, 256 ] }, { "id": "37d706a5-cf01-4275-917d-ffda1eb0af23", "name": "scheduler", "type": "COMBO", "linkIds": [ 482 ], "pos": [ -230, 276 ] } ], "outputs": [ { "id": "321201d9-6a87-48bc-a8e3-2d13f32a546f", "name": "VIDEO", "type": "VIDEO", "linkIds": [ 17 ], "localized_name": "VIDEO", "pos": [ 900, 16 ] }, { "id": "bc8f831d-427d-4b69-9bfc-50760cbb1ee4", "name": "IMAGE", "type": "IMAGE", "linkIds": [ 187, 208 ], "localized_name": "IMAGE", "pos": [ 900, 36 ] }, { "id": "2b09b619-743f-45f6-a120-44694d4018b6", "name": "video_frame_offset", "type": "INT", "linkIds": [ 439 ], "localized_name": "video_frame_offset", "pos": [ 900, 56 ] } ], "widgets": [], "nodes": [ { "id": 57, "type": "TrimVideoLatent", "pos": [ 240, 110 ], "size": [ 270, 58 ], "flags": {}, "order": 1, "mode": 0, "inputs": [ { "localized_name": "samples", "name": "samples", "type": "LATENT", "link": 157 }, { "localized_name": "trim_amount", "name": "trim_amount", "type": "INT", "widget": { "name": "trim_amount" }, "link": 152 } ], "outputs": [ { "localized_name": "LATENT", "name": "LATENT", "type": "LATENT", "links": [ 127 ] } ], "properties": { "Node name for S&R": "TrimVideoLatent", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 0 ] }, { "id": 58, "type": "VAEDecode", "pos": [ 290, 230 ], "size": [ 210, 46 ], "flags": {}, "order": 2, "mode": 0, "inputs": [ { "localized_name": "samples", "name": "samples", "type": "LATENT", "link": 127 }, { "localized_name": "vae", "name": "vae", "type": "VAE", "link": 464 } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 187, 208, 440 ] } ], "properties": { "Node name for S&R": "VAEDecode", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [] }, { "id": 62, "type": "WanAnimateToVideo", "pos": [ -150, -200 ], "size": [ 324.751953125, 358 ], "flags": {}, "order": 3, "mode": 0, "inputs": [ { "localized_name": "positive", "name": "positive", "type": "CONDITIONING", "link": 467 }, { "localized_name": "negative", "name": "negative", "type": "CONDITIONING", "link": 470 }, { "localized_name": "vae", "name": "vae", "type": "VAE", "link": 471 }, { "localized_name": "clip_vision_output", "name": "clip_vision_output", "shape": 7, "type": "CLIP_VISION_OUTPUT", "link": 474 }, { "localized_name": "reference_image", "name": "reference_image", "shape": 7, "type": "IMAGE", "link": 475 }, { "localized_name": "face_video", "name": "face_video", "shape": 7, "type": "IMAGE", "link": 459 }, { "localized_name": "pose_video", "name": "pose_video", "shape": 7, "type": "IMAGE", "link": 461 }, { "localized_name": "background_video", "name": "background_video", "shape": 7, "type": "IMAGE", "link": 419 }, { "localized_name": "character_mask", "name": "character_mask", "shape": 7, "type": "MASK", "link": 418 }, { "localized_name": "continue_motion", "name": "continue_motion", "shape": 7, "type": "IMAGE", "link": null }, { "localized_name": "width", "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 450 }, { "localized_name": "height", "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 451 } ], "outputs": [ { "localized_name": "positive", "name": "positive", "type": "CONDITIONING", "links": [ 154 ] }, { "localized_name": "negative", "name": "negative", "type": "CONDITIONING", "links": [ 155 ] }, { "localized_name": "latent", "name": "latent", "type": "LATENT", "links": [ 156 ] }, { "localized_name": "trim_latent", "name": "trim_latent", "type": "INT", "links": [ 152 ] }, { "localized_name": "trim_image", "name": "trim_image", "type": "INT", "links": [ 442 ] }, { "localized_name": "video_frame_offset", "name": "video_frame_offset", "type": "INT", "links": [ 439 ] } ], "properties": { "Node name for S&R": "WanAnimateToVideo", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 640, 640, 77, 1, 5, 0 ] }, { "id": 230, "type": "ImageFromBatch", "pos": [ 550, 240 ], "size": [ 270, 82 ], "flags": {}, "order": 5, "mode": 0, "inputs": [ { "localized_name": "image", "name": "image", "type": "IMAGE", "link": 440 }, { "localized_name": "batch_index", "name": "batch_index", "type": "INT", "widget": { "name": "batch_index" }, "link": 442 } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "links": [ 441 ] } ], "properties": { "Node name for S&R": "ImageFromBatch", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 0, 4096 ] }, { "id": 15, "type": "CreateVideo", "pos": [ 550, 100 ], "size": [ 270, 78 ], "flags": {}, "order": 0, "mode": 0, "inputs": [ { "localized_name": "images", "name": "images", "type": "IMAGE", "link": 441 }, { "localized_name": "audio", "name": "audio", "shape": 7, "type": "AUDIO", "link": 463 }, { "localized_name": "fps", "name": "fps", "type": "FLOAT", "widget": { "name": "fps" }, "link": 477 } ], "outputs": [ { "localized_name": "VIDEO", "name": "VIDEO", "type": "VIDEO", "links": [ 17 ] } ], "properties": { "Node name for S&R": "CreateVideo", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 16 ] }, { "id": 63, "type": "KSampler", "pos": [ 240, -200 ], "size": [ 270, 262 ], "flags": {}, "order": 4, "mode": 0, "inputs": [ { "localized_name": "model", "name": "model", "type": "MODEL", "link": 454 }, { "localized_name": "positive", "name": "positive", "type": "CONDITIONING", "link": 154 }, { "localized_name": "negative", "name": "negative", "type": "CONDITIONING", "link": 155 }, { "localized_name": "latent_image", "name": "latent_image", "type": "LATENT", "link": 156 }, { "localized_name": "seed", "name": "seed", "type": "INT", "widget": { "name": "seed" }, "link": 478 }, { "localized_name": "steps", "name": "steps", "type": "INT", "widget": { "name": "steps" }, "link": 479 }, { "localized_name": "cfg", "name": "cfg", "type": "FLOAT", "widget": { "name": "cfg" }, "link": 480 }, { "localized_name": "sampler_name", "name": "sampler_name", "type": "COMBO", "widget": { "name": "sampler_name" }, "link": 481 }, { "localized_name": "scheduler", "name": "scheduler", "type": "COMBO", "widget": { "name": "scheduler" }, "link": 482 } ], "outputs": [ { "localized_name": "LATENT", "name": "LATENT", "type": "LATENT", "links": [ 157 ] } ], "properties": { "Node name for S&R": "KSampler", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 1106558644923357, "randomize", 6, 1, "euler", "simple", 1 ] } ], "groups": [], "links": [ { "id": 154, "origin_id": 62, "origin_slot": 0, "target_id": 63, "target_slot": 1, "type": "CONDITIONING" }, { "id": 155, "origin_id": 62, "origin_slot": 1, "target_id": 63, "target_slot": 2, "type": "CONDITIONING" }, { "id": 156, "origin_id": 62, "origin_slot": 2, "target_id": 63, "target_slot": 3, "type": "LATENT" }, { "id": 157, "origin_id": 63, "origin_slot": 0, "target_id": 57, "target_slot": 0, "type": "LATENT" }, { "id": 152, "origin_id": 62, "origin_slot": 3, "target_id": 57, "target_slot": 1, "type": "INT" }, { "id": 441, "origin_id": 230, "origin_slot": 0, "target_id": 15, "target_slot": 0, "type": "IMAGE" }, { "id": 127, "origin_id": 57, "origin_slot": 0, "target_id": 58, "target_slot": 0, "type": "LATENT" }, { "id": 440, "origin_id": 58, "origin_slot": 0, "target_id": 230, "target_slot": 0, "type": "IMAGE" }, { "id": 442, "origin_id": 62, "origin_slot": 4, "target_id": 230, "target_slot": 1, "type": "INT" }, { "id": 454, "origin_id": -10, "origin_slot": 0, "target_id": 63, "target_slot": 0, "type": "MODEL" }, { "id": 463, "origin_id": -10, "origin_slot": 1, "target_id": 15, "target_slot": 1, "type": "AUDIO" }, { "id": 464, "origin_id": -10, "origin_slot": 2, "target_id": 58, "target_slot": 1, "type": "VAE" }, { "id": 471, "origin_id": -10, "origin_slot": 2, "target_id": 62, "target_slot": 2, "type": "VAE" }, { "id": 467, "origin_id": -10, "origin_slot": 3, "target_id": 62, "target_slot": 0, "type": "CONDITIONING" }, { "id": 470, "origin_id": -10, "origin_slot": 4, "target_id": 62, "target_slot": 1, "type": "CONDITIONING" }, { "id": 474, "origin_id": -10, "origin_slot": 5, "target_id": 62, "target_slot": 3, "type": "CLIP_VISION_OUTPUT" }, { "id": 475, "origin_id": -10, "origin_slot": 6, "target_id": 62, "target_slot": 4, "type": "IMAGE" }, { "id": 459, "origin_id": -10, "origin_slot": 7, "target_id": 62, "target_slot": 5, "type": "IMAGE" }, { "id": 461, "origin_id": -10, "origin_slot": 8, "target_id": 62, "target_slot": 6, "type": "IMAGE" }, { "id": 419, "origin_id": -10, "origin_slot": 9, "target_id": 62, "target_slot": 7, "type": "IMAGE" }, { "id": 418, "origin_id": -10, "origin_slot": 10, "target_id": 62, "target_slot": 8, "type": "MASK" }, { "id": 450, "origin_id": -10, "origin_slot": 11, "target_id": 62, "target_slot": 10, "type": "INT" }, { "id": 451, "origin_id": -10, "origin_slot": 12, "target_id": 62, "target_slot": 11, "type": "INT" }, { "id": 17, "origin_id": 15, "origin_slot": 0, "target_id": -20, "target_slot": 0, "type": "VIDEO" }, { "id": 187, "origin_id": 58, "origin_slot": 0, "target_id": -20, "target_slot": 1, "type": "IMAGE" }, { "id": 208, "origin_id": 58, "origin_slot": 0, "target_id": -20, "target_slot": 1, "type": "IMAGE" }, { "id": 439, "origin_id": 62, "origin_slot": 5, "target_id": -20, "target_slot": 2, "type": "INT" }, { "id": 477, "origin_id": -10, "origin_slot": 13, "target_id": 15, "target_slot": 2, "type": "FLOAT" }, { "id": 478, "origin_id": -10, "origin_slot": 14, "target_id": 63, "target_slot": 4, "type": "INT" }, { "id": 479, "origin_id": -10, "origin_slot": 15, "target_id": 63, "target_slot": 5, "type": "INT" }, { "id": 480, "origin_id": -10, "origin_slot": 16, "target_id": 63, "target_slot": 6, "type": "FLOAT" }, { "id": 481, "origin_id": -10, "origin_slot": 17, "target_id": 63, "target_slot": 7, "type": "COMBO" }, { "id": 482, "origin_id": -10, "origin_slot": 18, "target_id": 63, "target_slot": 8, "type": "COMBO" } ], "extra": {} }, { "id": "975ed319-ca2b-461e-b42a-8e2704ba902f", "version": 1, "state": { "lastGroupId": 16, "lastNodeId": 241, "lastLinkId": 532, "lastRerouteId": 0 }, "revision": 0, "config": {}, "name": "Video Extend(Subgraph)", "inputNode": { "id": -10, "bounding": [ -651.841796875, 735, 141.841796875, 440 ] }, "outputNode": { "id": -20, "bounding": [ 1500, 855, 141.841796875, 100 ] }, "inputs": [ { "id": "03e04825-a16a-49e3-a221-d5fdf1d789e5", "name": "model", "type": "MODEL", "linkIds": [ 455 ], "localized_name": "model", "pos": [ -530, 755 ] }, { "id": "2dbbbe45-a5c2-4de3-a04e-7d2735b98b28", "name": "vae", "type": "VAE", "linkIds": [ 465, 472 ], "localized_name": "vae", "pos": [ -530, 775 ] }, { "id": "054fc2d8-105a-4174-9931-a31c4d6e359f", "name": "audio", "type": "AUDIO", "linkIds": [ 466 ], "localized_name": "audio", "shape": 7, "pos": [ -530, 795 ] }, { "id": "cdef9f72-f783-4185-9830-fa3a809a1956", "name": "image1", "type": "IMAGE", "linkIds": [ 491, 492 ], "localized_name": "image1", "label": "last_batch_images", "pos": [ -530, 815 ] }, { "id": "a1344d9e-b216-4854-98b0-974ed4a6f209", "name": "positive", "type": "CONDITIONING", "linkIds": [ 468 ], "localized_name": "positive", "pos": [ -530, 835 ] }, { "id": "52c93856-9e6c-495c-ac56-d1ae2c5d4bc6", "name": "negative", "type": "CONDITIONING", "linkIds": [ 469 ], "localized_name": "negative", "pos": [ -530, 855 ] }, { "id": "d795f564-a054-484e-ac38-d633ad688212", "name": "clip_vision_output", "type": "CLIP_VISION_OUTPUT", "linkIds": [ 473 ], "localized_name": "clip_vision_output", "shape": 7, "pos": [ -530, 875 ] }, { "id": "049d8ac0-c7d0-4f3e-80ea-b60e00289f9d", "name": "reference_image", "type": "IMAGE", "linkIds": [ 476 ], "localized_name": "reference_image", "shape": 7, "pos": [ -530, 895 ] }, { "id": "7a51a6a4-870b-41fa-9251-97ad64c7c43f", "name": "face_video", "type": "IMAGE", "linkIds": [ 460 ], "localized_name": "face_video", "shape": 7, "pos": [ -530, 915 ] }, { "id": "42ec4e45-9e9e-4b2c-b13f-28def3a7ade6", "name": "pose_video", "type": "IMAGE", "linkIds": [ 462 ], "localized_name": "pose_video", "shape": 7, "pos": [ -530, 935 ] }, { "id": "00095787-d8f1-4f37-a2d5-a7760f559dae", "name": "background_video", "type": "IMAGE", "linkIds": [ 420 ], "localized_name": "background_video", "shape": 7, "pos": [ -530, 955 ] }, { "id": "d96de1c8-0a3b-45bd-a5cf-eb2b46f91c67", "name": "character_mask", "type": "MASK", "linkIds": [ 421 ], "localized_name": "character_mask", "shape": 7, "pos": [ -530, 975 ] }, { "id": "972c7951-4edc-4acf-a1d8-9836f2c7070b", "name": "width", "type": "INT", "linkIds": [ 452, 453 ], "localized_name": "width", "pos": [ -530, 995 ] }, { "id": "f4dccdf8-27bc-43ee-8795-86d2868f31c9", "name": "video_frame_offset", "type": "INT", "linkIds": [ 493 ], "localized_name": "video_frame_offset", "pos": [ -530, 1015 ] }, { "id": "6b9cd8d4-b128-4217-99b7-eaee92b62047", "name": "seed", "type": "INT", "linkIds": [ 526 ], "pos": [ -530, 1035 ] }, { "id": "a81a7a57-c040-4b6a-9bee-8763f60e42a1", "name": "steps", "type": "INT", "linkIds": [ 527 ], "pos": [ -530, 1055 ] }, { "id": "af1f93e3-2c56-403c-90ef-5466a2273ee6", "name": "cfg", "type": "FLOAT", "linkIds": [ 528 ], "pos": [ -530, 1075 ] }, { "id": "c5dc7502-4f9a-49a1-8e4c-adca0809dbf1", "name": "sampler_name", "type": "COMBO", "linkIds": [ 529 ], "pos": [ -530, 1095 ] }, { "id": "cd71c877-d6a5-41f1-b3f2-6a115ae4df96", "name": "scheduler", "type": "COMBO", "linkIds": [ 530 ], "pos": [ -530, 1115 ] }, { "id": "ef516bbf-aac9-48df-acbb-13a767cadaed", "name": "fps", "type": "FLOAT", "linkIds": [ 531 ], "pos": [ -530, 1135 ] } ], "outputs": [ { "id": "64b8d4c3-be0f-473b-aae4-0f56167c1bad", "name": "IMAGE", "type": "IMAGE", "linkIds": [ 532 ], "localized_name": "IMAGE", "label": "batch_images", "pos": [ 1520, 875 ] }, { "id": "f33e2c31-73c7-4e9f-8d43-cd7d4b39f9de", "name": "video_frame_offset", "type": "INT", "linkIds": [ 523 ], "localized_name": "video_frame_offset", "pos": [ 1520, 895 ] }, { "id": "aefce3c5-5b36-47c8-a922-aa488ff30d26", "name": "VIDEO", "type": "VIDEO", "linkIds": [ 524 ], "pos": [ 1520, 915 ] } ], "widgets": [], "nodes": [ { "id": 87, "type": "VAEDecode", "pos": [ 410, 1160 ], "size": [ 210, 46 ], "flags": {}, "order": 2, "mode": 0, "inputs": [ { "localized_name": "samples", "name": "samples", "type": "LATENT", "link": 220 }, { "localized_name": "vae", "name": "vae", "type": "VAE", "link": 465 } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 185 ] } ], "properties": { "Node name for S&R": "VAEDecode", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [] }, { "id": 92, "type": "TrimVideoLatent", "pos": [ 410, 1060 ], "size": [ 270, 58 ], "flags": {}, "order": 6, "mode": 0, "inputs": [ { "localized_name": "samples", "name": "samples", "type": "LATENT", "link": 219 }, { "localized_name": "trim_amount", "name": "trim_amount", "type": "INT", "widget": { "name": "trim_amount" }, "link": 218 } ], "outputs": [ { "localized_name": "LATENT", "name": "LATENT", "type": "LATENT", "links": [ 220 ] } ], "properties": { "Node name for S&R": "TrimVideoLatent", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 0 ] }, { "id": 85, "type": "ImageFromBatch", "pos": [ 410, 1240 ], "size": [ 270, 82 ], "flags": {}, "order": 0, "mode": 0, "inputs": [ { "localized_name": "image", "name": "image", "type": "IMAGE", "link": 185 }, { "localized_name": "batch_index", "name": "batch_index", "type": "INT", "widget": { "name": "batch_index" }, "link": 212 } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "links": [ 445 ] } ], "properties": { "Node name for S&R": "ImageFromBatch", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 0, 4096 ] }, { "id": 90, "type": "WanAnimateToVideo", "pos": [ -90, 750 ], "size": [ 324.751953125, 358 ], "flags": {}, "order": 4, "mode": 0, "inputs": [ { "localized_name": "positive", "name": "positive", "type": "CONDITIONING", "link": 468 }, { "localized_name": "negative", "name": "negative", "type": "CONDITIONING", "link": 469 }, { "localized_name": "vae", "name": "vae", "type": "VAE", "link": 472 }, { "localized_name": "clip_vision_output", "name": "clip_vision_output", "shape": 7, "type": "CLIP_VISION_OUTPUT", "link": 473 }, { "localized_name": "reference_image", "name": "reference_image", "shape": 7, "type": "IMAGE", "link": 476 }, { "localized_name": "face_video", "name": "face_video", "shape": 7, "type": "IMAGE", "link": 460 }, { "localized_name": "pose_video", "name": "pose_video", "shape": 7, "type": "IMAGE", "link": 462 }, { "localized_name": "background_video", "name": "background_video", "shape": 7, "type": "IMAGE", "link": 420 }, { "localized_name": "character_mask", "name": "character_mask", "shape": 7, "type": "MASK", "link": 421 }, { "localized_name": "continue_motion", "name": "continue_motion", "shape": 7, "type": "IMAGE", "link": 492 }, { "localized_name": "width", "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 452 }, { "localized_name": "height", "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 453 }, { "localized_name": "video_frame_offset", "name": "video_frame_offset", "type": "INT", "widget": { "name": "video_frame_offset" }, "link": 493 } ], "outputs": [ { "localized_name": "positive", "name": "positive", "type": "CONDITIONING", "links": [ 213 ] }, { "localized_name": "negative", "name": "negative", "type": "CONDITIONING", "links": [ 214 ] }, { "localized_name": "latent", "name": "latent", "type": "LATENT", "links": [ 215 ] }, { "localized_name": "trim_latent", "name": "trim_latent", "type": "INT", "links": [ 218 ] }, { "localized_name": "trim_image", "name": "trim_image", "type": "INT", "links": [ 212 ] }, { "localized_name": "video_frame_offset", "name": "video_frame_offset", "type": "INT", "links": [ 523 ] } ], "properties": { "Node name for S&R": "WanAnimateToVideo", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 1280, 1280, 77, 1, 5, 0 ] }, { "id": 88, "type": "CreateVideo", "pos": [ 900, 820 ], "size": [ 210, 78 ], "flags": {}, "order": 3, "mode": 0, "inputs": [ { "localized_name": "images", "name": "images", "type": "IMAGE", "link": 191 }, { "localized_name": "audio", "name": "audio", "shape": 7, "type": "AUDIO", "link": 466 }, { "localized_name": "fps", "name": "fps", "type": "FLOAT", "widget": { "name": "fps" }, "link": 531 } ], "outputs": [ { "localized_name": "VIDEO", "name": "VIDEO", "type": "VIDEO", "links": [ 524 ] } ], "properties": { "Node name for S&R": "CreateVideo", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 16 ] }, { "id": 91, "type": "KSampler", "pos": [ 410, 750 ], "size": [ 270, 262 ], "flags": {}, "order": 5, "mode": 0, "inputs": [ { "localized_name": "model", "name": "model", "type": "MODEL", "link": 455 }, { "localized_name": "positive", "name": "positive", "type": "CONDITIONING", "link": 213 }, { "localized_name": "negative", "name": "negative", "type": "CONDITIONING", "link": 214 }, { "localized_name": "latent_image", "name": "latent_image", "type": "LATENT", "link": 215 }, { "localized_name": "seed", "name": "seed", "type": "INT", "widget": { "name": "seed" }, "link": 526 }, { "localized_name": "steps", "name": "steps", "type": "INT", "widget": { "name": "steps" }, "link": 527 }, { "localized_name": "cfg", "name": "cfg", "type": "FLOAT", "widget": { "name": "cfg" }, "link": 528 }, { "localized_name": "sampler_name", "name": "sampler_name", "type": "COMBO", "widget": { "name": "sampler_name" }, "link": 529 }, { "localized_name": "scheduler", "name": "scheduler", "type": "COMBO", "widget": { "name": "scheduler" }, "link": 530 } ], "outputs": [ { "localized_name": "LATENT", "name": "LATENT", "type": "LATENT", "links": [ 219 ] } ], "properties": { "Node name for S&R": "KSampler", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 387378783691198, "fixed", 6, 1, "euler", "simple", 1 ] }, { "id": 86, "type": "ImageBatch", "pos": [ 940, 720 ], "size": [ 220, 46 ], "flags": {}, "order": 1, "mode": 0, "inputs": [ { "localized_name": "image1", "name": "image1", "type": "IMAGE", "link": 491 }, { "localized_name": "image2", "name": "image2", "type": "IMAGE", "link": 445 } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "links": [ 191, 532 ] } ], "properties": { "Node name for S&R": "ImageBatch", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [] } ], "groups": [], "links": [ { "id": 213, "origin_id": 90, "origin_slot": 0, "target_id": 91, "target_slot": 1, "type": "CONDITIONING" }, { "id": 214, "origin_id": 90, "origin_slot": 1, "target_id": 91, "target_slot": 2, "type": "CONDITIONING" }, { "id": 215, "origin_id": 90, "origin_slot": 2, "target_id": 91, "target_slot": 3, "type": "LATENT" }, { "id": 220, "origin_id": 92, "origin_slot": 0, "target_id": 87, "target_slot": 0, "type": "LATENT" }, { "id": 191, "origin_id": 86, "origin_slot": 0, "target_id": 88, "target_slot": 0, "type": "IMAGE" }, { "id": 219, "origin_id": 91, "origin_slot": 0, "target_id": 92, "target_slot": 0, "type": "LATENT" }, { "id": 218, "origin_id": 90, "origin_slot": 3, "target_id": 92, "target_slot": 1, "type": "INT" }, { "id": 445, "origin_id": 85, "origin_slot": 0, "target_id": 86, "target_slot": 1, "type": "IMAGE" }, { "id": 185, "origin_id": 87, "origin_slot": 0, "target_id": 85, "target_slot": 0, "type": "IMAGE" }, { "id": 212, "origin_id": 90, "origin_slot": 4, "target_id": 85, "target_slot": 1, "type": "INT" }, { "id": 455, "origin_id": -10, "origin_slot": 0, "target_id": 91, "target_slot": 0, "type": "MODEL" }, { "id": 465, "origin_id": -10, "origin_slot": 1, "target_id": 87, "target_slot": 1, "type": "VAE" }, { "id": 472, "origin_id": -10, "origin_slot": 1, "target_id": 90, "target_slot": 2, "type": "VAE" }, { "id": 466, "origin_id": -10, "origin_slot": 2, "target_id": 88, "target_slot": 1, "type": "AUDIO" }, { "id": 491, "origin_id": -10, "origin_slot": 3, "target_id": 86, "target_slot": 0, "type": "IMAGE" }, { "id": 492, "origin_id": -10, "origin_slot": 3, "target_id": 90, "target_slot": 9, "type": "IMAGE" }, { "id": 468, "origin_id": -10, "origin_slot": 4, "target_id": 90, "target_slot": 0, "type": "CONDITIONING" }, { "id": 469, "origin_id": -10, "origin_slot": 5, "target_id": 90, "target_slot": 1, "type": "CONDITIONING" }, { "id": 473, "origin_id": -10, "origin_slot": 6, "target_id": 90, "target_slot": 3, "type": "CLIP_VISION_OUTPUT" }, { "id": 476, "origin_id": -10, "origin_slot": 7, "target_id": 90, "target_slot": 4, "type": "IMAGE" }, { "id": 460, "origin_id": -10, "origin_slot": 8, "target_id": 90, "target_slot": 5, "type": "IMAGE" }, { "id": 462, "origin_id": -10, "origin_slot": 9, "target_id": 90, "target_slot": 6, "type": "IMAGE" }, { "id": 420, "origin_id": -10, "origin_slot": 10, "target_id": 90, "target_slot": 7, "type": "IMAGE" }, { "id": 421, "origin_id": -10, "origin_slot": 11, "target_id": 90, "target_slot": 8, "type": "MASK" }, { "id": 452, "origin_id": -10, "origin_slot": 12, "target_id": 90, "target_slot": 10, "type": "INT" }, { "id": 453, "origin_id": -10, "origin_slot": 12, "target_id": 90, "target_slot": 11, "type": "INT" }, { "id": 493, "origin_id": -10, "origin_slot": 13, "target_id": 90, "target_slot": 12, "type": "INT" }, { "id": 523, "origin_id": 90, "origin_slot": 5, "target_id": -20, "target_slot": 1, "type": "INT" }, { "id": 524, "origin_id": 88, "origin_slot": 0, "target_id": -20, "target_slot": 2, "type": "VIDEO" }, { "id": 526, "origin_id": -10, "origin_slot": 14, "target_id": 91, "target_slot": 4, "type": "INT" }, { "id": 527, "origin_id": -10, "origin_slot": 15, "target_id": 91, "target_slot": 5, "type": "INT" }, { "id": 528, "origin_id": -10, "origin_slot": 16, "target_id": 91, "target_slot": 6, "type": "FLOAT" }, { "id": 529, "origin_id": -10, "origin_slot": 17, "target_id": 91, "target_slot": 7, "type": "COMBO" }, { "id": 530, "origin_id": -10, "origin_slot": 18, "target_id": 91, "target_slot": 8, "type": "COMBO" }, { "id": 531, "origin_id": -10, "origin_slot": 19, "target_id": 88, "target_slot": 2, "type": "FLOAT" }, { "id": 532, "origin_id": 86, "origin_slot": 0, "target_id": -20, "target_slot": 0, "type": "IMAGE" } ], "extra": {} }, { "id": "063b0ee8-c72b-442b-8029-dd3d5f4b6650", "version": 1, "state": { "lastGroupId": 16, "lastNodeId": 241, "lastLinkId": 532, "lastRerouteId": 0 }, "revision": 0, "config": {}, "name": "Video Extend(Subgraph)", "inputNode": { "id": -10, "bounding": [ -651.841796875, 735, 141.841796875, 440 ] }, "outputNode": { "id": -20, "bounding": [ 1500, 855, 142.0703125, 100 ] }, "inputs": [ { "id": "03e04825-a16a-49e3-a221-d5fdf1d789e5", "name": "model", "type": "MODEL", "linkIds": [ 455 ], "localized_name": "model", "pos": [ -530, 755 ] }, { "id": "2dbbbe45-a5c2-4de3-a04e-7d2735b98b28", "name": "vae", "type": "VAE", "linkIds": [ 465, 472 ], "localized_name": "vae", "pos": [ -530, 775 ] }, { "id": "054fc2d8-105a-4174-9931-a31c4d6e359f", "name": "audio", "type": "AUDIO", "linkIds": [ 466 ], "localized_name": "audio", "shape": 7, "pos": [ -530, 795 ] }, { "id": "cdef9f72-f783-4185-9830-fa3a809a1956", "name": "image1", "type": "IMAGE", "linkIds": [ 491, 492 ], "localized_name": "image1", "label": "last_batch_images", "pos": [ -530, 815 ] }, { "id": "a1344d9e-b216-4854-98b0-974ed4a6f209", "name": "positive", "type": "CONDITIONING", "linkIds": [ 468 ], "localized_name": "positive", "pos": [ -530, 835 ] }, { "id": "52c93856-9e6c-495c-ac56-d1ae2c5d4bc6", "name": "negative", "type": "CONDITIONING", "linkIds": [ 469 ], "localized_name": "negative", "pos": [ -530, 855 ] }, { "id": "d795f564-a054-484e-ac38-d633ad688212", "name": "clip_vision_output", "type": "CLIP_VISION_OUTPUT", "linkIds": [ 473 ], "localized_name": "clip_vision_output", "shape": 7, "pos": [ -530, 875 ] }, { "id": "049d8ac0-c7d0-4f3e-80ea-b60e00289f9d", "name": "reference_image", "type": "IMAGE", "linkIds": [ 476 ], "localized_name": "reference_image", "shape": 7, "pos": [ -530, 895 ] }, { "id": "7a51a6a4-870b-41fa-9251-97ad64c7c43f", "name": "face_video", "type": "IMAGE", "linkIds": [ 460 ], "localized_name": "face_video", "shape": 7, "pos": [ -530, 915 ] }, { "id": "42ec4e45-9e9e-4b2c-b13f-28def3a7ade6", "name": "pose_video", "type": "IMAGE", "linkIds": [ 462 ], "localized_name": "pose_video", "shape": 7, "pos": [ -530, 935 ] }, { "id": "00095787-d8f1-4f37-a2d5-a7760f559dae", "name": "background_video", "type": "IMAGE", "linkIds": [ 420 ], "localized_name": "background_video", "shape": 7, "pos": [ -530, 955 ] }, { "id": "d96de1c8-0a3b-45bd-a5cf-eb2b46f91c67", "name": "character_mask", "type": "MASK", "linkIds": [ 421 ], "localized_name": "character_mask", "shape": 7, "pos": [ -530, 975 ] }, { "id": "972c7951-4edc-4acf-a1d8-9836f2c7070b", "name": "width", "type": "INT", "linkIds": [ 452, 453 ], "localized_name": "width", "pos": [ -530, 995 ] }, { "id": "f4dccdf8-27bc-43ee-8795-86d2868f31c9", "name": "video_frame_offset", "type": "INT", "linkIds": [ 493 ], "localized_name": "video_frame_offset", "pos": [ -530, 1015 ] }, { "id": "6b9cd8d4-b128-4217-99b7-eaee92b62047", "name": "seed", "type": "INT", "linkIds": [ 526 ], "pos": [ -530, 1035 ] }, { "id": "a81a7a57-c040-4b6a-9bee-8763f60e42a1", "name": "steps", "type": "INT", "linkIds": [ 527 ], "pos": [ -530, 1055 ] }, { "id": "af1f93e3-2c56-403c-90ef-5466a2273ee6", "name": "cfg", "type": "FLOAT", "linkIds": [ 528 ], "pos": [ -530, 1075 ] }, { "id": "c5dc7502-4f9a-49a1-8e4c-adca0809dbf1", "name": "sampler_name", "type": "COMBO", "linkIds": [ 529 ], "pos": [ -530, 1095 ] }, { "id": "cd71c877-d6a5-41f1-b3f2-6a115ae4df96", "name": "scheduler", "type": "COMBO", "linkIds": [ 530 ], "pos": [ -530, 1115 ] }, { "id": "ef516bbf-aac9-48df-acbb-13a767cadaed", "name": "fps", "type": "FLOAT", "linkIds": [ 531 ], "pos": [ -530, 1135 ] } ], "outputs": [ { "id": "64b8d4c3-be0f-473b-aae4-0f56167c1bad", "name": "IMAGE", "type": "IMAGE", "linkIds": [ 532 ], "localized_name": "IMAGE", "label": "batch image output", "pos": [ 1520, 875 ] }, { "id": "f33e2c31-73c7-4e9f-8d43-cd7d4b39f9de", "name": "video_frame_offset", "type": "INT", "linkIds": [ 523 ], "localized_name": "video_frame_offset", "pos": [ 1520, 895 ] }, { "id": "aefce3c5-5b36-47c8-a922-aa488ff30d26", "name": "VIDEO", "type": "VIDEO", "linkIds": [ 524 ], "pos": [ 1520, 915 ] } ], "widgets": [], "nodes": [ { "id": 87, "type": "VAEDecode", "pos": [ 410, 1160 ], "size": [ 210, 46 ], "flags": {}, "order": 2, "mode": 4, "inputs": [ { "localized_name": "samples", "name": "samples", "type": "LATENT", "link": 220 }, { "localized_name": "vae", "name": "vae", "type": "VAE", "link": 465 } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 185 ] } ], "properties": { "Node name for S&R": "VAEDecode", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [] }, { "id": 92, "type": "TrimVideoLatent", "pos": [ 410, 1060 ], "size": [ 270, 58 ], "flags": {}, "order": 6, "mode": 4, "inputs": [ { "localized_name": "samples", "name": "samples", "type": "LATENT", "link": 219 }, { "localized_name": "trim_amount", "name": "trim_amount", "type": "INT", "widget": { "name": "trim_amount" }, "link": 218 } ], "outputs": [ { "localized_name": "LATENT", "name": "LATENT", "type": "LATENT", "links": [ 220 ] } ], "properties": { "Node name for S&R": "TrimVideoLatent", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 0 ] }, { "id": 85, "type": "ImageFromBatch", "pos": [ 410, 1240 ], "size": [ 270, 82 ], "flags": {}, "order": 0, "mode": 4, "inputs": [ { "localized_name": "image", "name": "image", "type": "IMAGE", "link": 185 }, { "localized_name": "batch_index", "name": "batch_index", "type": "INT", "widget": { "name": "batch_index" }, "link": 212 } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "links": [ 445 ] } ], "properties": { "Node name for S&R": "ImageFromBatch", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 0, 4096 ] }, { "id": 90, "type": "WanAnimateToVideo", "pos": [ -90, 750 ], "size": [ 324.751953125, 358 ], "flags": {}, "order": 4, "mode": 4, "inputs": [ { "localized_name": "positive", "name": "positive", "type": "CONDITIONING", "link": 468 }, { "localized_name": "negative", "name": "negative", "type": "CONDITIONING", "link": 469 }, { "localized_name": "vae", "name": "vae", "type": "VAE", "link": 472 }, { "localized_name": "clip_vision_output", "name": "clip_vision_output", "shape": 7, "type": "CLIP_VISION_OUTPUT", "link": 473 }, { "localized_name": "reference_image", "name": "reference_image", "shape": 7, "type": "IMAGE", "link": 476 }, { "localized_name": "face_video", "name": "face_video", "shape": 7, "type": "IMAGE", "link": 460 }, { "localized_name": "pose_video", "name": "pose_video", "shape": 7, "type": "IMAGE", "link": 462 }, { "localized_name": "background_video", "name": "background_video", "shape": 7, "type": "IMAGE", "link": 420 }, { "localized_name": "character_mask", "name": "character_mask", "shape": 7, "type": "MASK", "link": 421 }, { "localized_name": "continue_motion", "name": "continue_motion", "shape": 7, "type": "IMAGE", "link": 492 }, { "localized_name": "width", "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 452 }, { "localized_name": "height", "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 453 }, { "localized_name": "video_frame_offset", "name": "video_frame_offset", "type": "INT", "widget": { "name": "video_frame_offset" }, "link": 493 } ], "outputs": [ { "localized_name": "positive", "name": "positive", "type": "CONDITIONING", "links": [ 213 ] }, { "localized_name": "negative", "name": "negative", "type": "CONDITIONING", "links": [ 214 ] }, { "localized_name": "latent", "name": "latent", "type": "LATENT", "links": [ 215 ] }, { "localized_name": "trim_latent", "name": "trim_latent", "type": "INT", "links": [ 218 ] }, { "localized_name": "trim_image", "name": "trim_image", "type": "INT", "links": [ 212 ] }, { "localized_name": "video_frame_offset", "name": "video_frame_offset", "type": "INT", "links": [ 523 ] } ], "properties": { "Node name for S&R": "WanAnimateToVideo", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 1280, 1280, 77, 1, 5, 0 ] }, { "id": 88, "type": "CreateVideo", "pos": [ 900, 820 ], "size": [ 210, 78 ], "flags": {}, "order": 3, "mode": 4, "inputs": [ { "localized_name": "images", "name": "images", "type": "IMAGE", "link": 191 }, { "localized_name": "audio", "name": "audio", "shape": 7, "type": "AUDIO", "link": 466 }, { "localized_name": "fps", "name": "fps", "type": "FLOAT", "widget": { "name": "fps" }, "link": 531 } ], "outputs": [ { "localized_name": "VIDEO", "name": "VIDEO", "type": "VIDEO", "links": [ 524 ] } ], "properties": { "Node name for S&R": "CreateVideo", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 16 ] }, { "id": 86, "type": "ImageBatch", "pos": [ 940, 720 ], "size": [ 140, 46 ], "flags": {}, "order": 1, "mode": 4, "inputs": [ { "localized_name": "image1", "name": "image1", "type": "IMAGE", "link": 491 }, { "localized_name": "image2", "name": "image2", "type": "IMAGE", "link": 445 } ], "outputs": [ { "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "links": [ 191, 532 ] } ], "properties": { "Node name for S&R": "ImageBatch", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [] }, { "id": 91, "type": "KSampler", "pos": [ 410, 750 ], "size": [ 270, 262 ], "flags": {}, "order": 5, "mode": 4, "inputs": [ { "localized_name": "model", "name": "model", "type": "MODEL", "link": 455 }, { "localized_name": "positive", "name": "positive", "type": "CONDITIONING", "link": 213 }, { "localized_name": "negative", "name": "negative", "type": "CONDITIONING", "link": 214 }, { "localized_name": "latent_image", "name": "latent_image", "type": "LATENT", "link": 215 }, { "localized_name": "seed", "name": "seed", "type": "INT", "widget": { "name": "seed" }, "link": 526 }, { "localized_name": "steps", "name": "steps", "type": "INT", "widget": { "name": "steps" }, "link": 527 }, { "localized_name": "cfg", "name": "cfg", "type": "FLOAT", "widget": { "name": "cfg" }, "link": 528 }, { "localized_name": "sampler_name", "name": "sampler_name", "type": "COMBO", "widget": { "name": "sampler_name" }, "link": 529 }, { "localized_name": "scheduler", "name": "scheduler", "type": "COMBO", "widget": { "name": "scheduler" }, "link": 530 } ], "outputs": [ { "localized_name": "LATENT", "name": "LATENT", "type": "LATENT", "links": [ 219 ] } ], "properties": { "Node name for S&R": "KSampler", "cnr_id": "comfy-core", "ver": "0.3.59" }, "widgets_values": [ 387378783691198, "fixed", 6, 1, "euler", "simple", 1 ] } ], "groups": [], "links": [ { "id": 213, "origin_id": 90, "origin_slot": 0, "target_id": 91, "target_slot": 1, "type": "CONDITIONING" }, { "id": 214, "origin_id": 90, "origin_slot": 1, "target_id": 91, "target_slot": 2, "type": "CONDITIONING" }, { "id": 215, "origin_id": 90, "origin_slot": 2, "target_id": 91, "target_slot": 3, "type": "LATENT" }, { "id": 220, "origin_id": 92, "origin_slot": 0, "target_id": 87, "target_slot": 0, "type": "LATENT" }, { "id": 191, "origin_id": 86, "origin_slot": 0, "target_id": 88, "target_slot": 0, "type": "IMAGE" }, { "id": 219, "origin_id": 91, "origin_slot": 0, "target_id": 92, "target_slot": 0, "type": "LATENT" }, { "id": 218, "origin_id": 90, "origin_slot": 3, "target_id": 92, "target_slot": 1, "type": "INT" }, { "id": 445, "origin_id": 85, "origin_slot": 0, "target_id": 86, "target_slot": 1, "type": "IMAGE" }, { "id": 185, "origin_id": 87, "origin_slot": 0, "target_id": 85, "target_slot": 0, "type": "IMAGE" }, { "id": 212, "origin_id": 90, "origin_slot": 4, "target_id": 85, "target_slot": 1, "type": "INT" }, { "id": 455, "origin_id": -10, "origin_slot": 0, "target_id": 91, "target_slot": 0, "type": "MODEL" }, { "id": 465, "origin_id": -10, "origin_slot": 1, "target_id": 87, "target_slot": 1, "type": "VAE" }, { "id": 472, "origin_id": -10, "origin_slot": 1, "target_id": 90, "target_slot": 2, "type": "VAE" }, { "id": 466, "origin_id": -10, "origin_slot": 2, "target_id": 88, "target_slot": 1, "type": "AUDIO" }, { "id": 491, "origin_id": -10, "origin_slot": 3, "target_id": 86, "target_slot": 0, "type": "IMAGE" }, { "id": 492, "origin_id": -10, "origin_slot": 3, "target_id": 90, "target_slot": 9, "type": "IMAGE" }, { "id": 468, "origin_id": -10, "origin_slot": 4, "target_id": 90, "target_slot": 0, "type": "CONDITIONING" }, { "id": 469, "origin_id": -10, "origin_slot": 5, "target_id": 90, "target_slot": 1, "type": "CONDITIONING" }, { "id": 473, "origin_id": -10, "origin_slot": 6, "target_id": 90, "target_slot": 3, "type": "CLIP_VISION_OUTPUT" }, { "id": 476, "origin_id": -10, "origin_slot": 7, "target_id": 90, "target_slot": 4, "type": "IMAGE" }, { "id": 460, "origin_id": -10, "origin_slot": 8, "target_id": 90, "target_slot": 5, "type": "IMAGE" }, { "id": 462, "origin_id": -10, "origin_slot": 9, "target_id": 90, "target_slot": 6, "type": "IMAGE" }, { "id": 420, "origin_id": -10, "origin_slot": 10, "target_id": 90, "target_slot": 7, "type": "IMAGE" }, { "id": 421, "origin_id": -10, "origin_slot": 11, "target_id": 90, "target_slot": 8, "type": "MASK" }, { "id": 452, "origin_id": -10, "origin_slot": 12, "target_id": 90, "target_slot": 10, "type": "INT" }, { "id": 453, "origin_id": -10, "origin_slot": 12, "target_id": 90, "target_slot": 11, "type": "INT" }, { "id": 493, "origin_id": -10, "origin_slot": 13, "target_id": 90, "target_slot": 12, "type": "INT" }, { "id": 523, "origin_id": 90, "origin_slot": 5, "target_id": -20, "target_slot": 1, "type": "INT" }, { "id": 524, "origin_id": 88, "origin_slot": 0, "target_id": -20, "target_slot": 2, "type": "VIDEO" }, { "id": 526, "origin_id": -10, "origin_slot": 14, "target_id": 91, "target_slot": 4, "type": "INT" }, { "id": 527, "origin_id": -10, "origin_slot": 15, "target_id": 91, "target_slot": 5, "type": "INT" }, { "id": 528, "origin_id": -10, "origin_slot": 16, "target_id": 91, "target_slot": 6, "type": "FLOAT" }, { "id": 529, "origin_id": -10, "origin_slot": 17, "target_id": 91, "target_slot": 7, "type": "COMBO" }, { "id": 530, "origin_id": -10, "origin_slot": 18, "target_id": 91, "target_slot": 8, "type": "COMBO" }, { "id": 531, "origin_id": -10, "origin_slot": 19, "target_id": 88, "target_slot": 2, "type": "FLOAT" }, { "id": 532, "origin_id": 86, "origin_slot": 0, "target_id": -20, "target_slot": 0, "type": "IMAGE" } ], "extra": {} } ] }, "config": {}, "extra": { "ds": { "scale": 0.2755949068864249, "offset": [ 3761.4008595142814, 997.7831727528201 ] }, "frontendVersion": "1.32.1", "VHS_latentpreview": false, "VHS_latentpreviewrate": 0, "VHS_MetadataImage": true, "VHS_KeepIntermediate": true }, "version": 0.4 }