{
  "config": {},
  "definitions": {
    "subgraphs": [
      {
        "config": {},
        "extra": {
          "workflowRendererVersion": "Vue"
        },
        "groups": [
          {
            "bounding": [
              -3388.6415641159956,
              990,
              2100,
              912
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 18,
            "title": "Background Mask"
          },
          {
            "bounding": [
              -3388.6415641159956,
              1950,
              841.6799627740412,
              892.7433715761634
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 19,
            "title": "Pose and Face Detection"
          },
          {
            "bounding": [
              -2512.6415641159956,
              1950,
              1224,
              888
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 20,
            "title": "Pose"
          },
          {
            "bounding": [
              -4216.641564115996,
              -1038,
              3012,
              1332
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 23,
            "title": "Wan2.2 Animate Video Generation"
          },
          {
            "bounding": [
              -4072.6415641159956,
              -906,
              840,
              732
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 21,
            "title": "Model"
          },
          {
            "bounding": [
              -3196.6415641159956,
              -906,
              552,
              732
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 22,
            "title": "Prompt"
          },
          {
            "bounding": [
              -4228.641564115996,
              702,
              2963.9843750000005,
              2217.0633715761633
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 24,
            "title": "Object Detection"
          }
        ],
        "id": "b396d3e6-70cc-4a91-81db-6e0399a4edb6",
        "inputNode": {
          "bounding": [
            -5212.641564115996,
            426,
            135.044921875,
            200
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "25fb7bfd-a9a1-4010-8157-ebb4189f5b6b",
            "linkIds": [
              814,
              815,
              816,
              874
            ],
            "localized_name": "fps",
            "name": "fps",
            "pos": [
              -5097.596642240996,
              446
            ],
            "type": "FLOAT"
          },
          {
            "id": "76dce9c4-abcd-4673-b334-8024f29d7f2c",
            "label": "input_video",
            "linkIds": [
              817
            ],
            "localized_name": "image",
            "name": "image",
            "pos": [
              -5097.596642240996,
              466
            ],
            "type": "IMAGE"
          },
          {
            "id": "af1f4478-1474-4fee-82f8-54e9629ffdc3",
            "linkIds": [
              818,
              826,
              871
            ],
            "localized_name": "width",
            "name": "width",
            "pos": [
              -5097.596642240996,
              486
            ],
            "type": "INT"
          },
          {
            "id": "9deefdcb-b80b-4a53-9f32-f06dfcb0db51",
            "linkIds": [
              819,
              827,
              872
            ],
            "localized_name": "height",
            "name": "height",
            "pos": [
              -5097.596642240996,
              506
            ],
            "type": "INT"
          },
          {
            "id": "2ce7897d-0ab4-471e-953f-cf56c9b6e56c",
            "label": "reference_image",
            "linkIds": [
              825
            ],
            "localized_name": "image_1",
            "name": "image_1",
            "pos": [
              -5097.596642240996,
              526
            ],
            "type": "IMAGE"
          },
          {
            "id": "48e182cf-4847-4aa3-88fb-086de8bdfa72",
            "linkIds": [
              838
            ],
            "name": "text",
            "pos": [
              -5097.596642240996,
              546
            ],
            "type": "STRING"
          },
          {
            "id": "8f57065f-1b44-4b1b-98c9-bdde237c3157",
            "linkIds": [
              862
            ],
            "name": "audio",
            "pos": [
              -5097.596642240996,
              566
            ],
            "type": "AUDIO"
          },
          {
            "id": "bc8aea5d-4111-4833-ae43-d0979c16e9a9",
            "linkIds": [
              876
            ],
            "name": "length",
            "pos": [
              -5097.596642240996,
              586
            ],
            "type": "INT"
          }
        ],
        "links": [
          {
            "id": 227,
            "origin_id": 99,
            "origin_slot": 0,
            "target_id": 60,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 1,
            "origin_id": 2,
            "origin_slot": 0,
            "target_id": 1,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 16,
            "origin_id": 20,
            "origin_slot": 0,
            "target_id": 18,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 226,
            "origin_id": 18,
            "origin_slot": 0,
            "target_id": 99,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 4,
            "origin_id": 4,
            "origin_slot": 0,
            "target_id": 9,
            "target_slot": 0,
            "type": "CLIP_VISION"
          },
          {
            "id": 829,
            "origin_id": 342,
            "origin_slot": 0,
            "target_id": 9,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 793,
            "origin_id": 327,
            "origin_slot": 0,
            "target_id": 325,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 794,
            "origin_id": 324,
            "origin_slot": 0,
            "target_id": 326,
            "target_slot": 0,
            "type": "SAM2MODEL"
          },
          {
            "id": 795,
            "origin_id": 337,
            "origin_slot": 0,
            "target_id": 326,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 796,
            "origin_id": 334,
            "origin_slot": 3,
            "target_id": 326,
            "target_slot": 4,
            "type": "BBOX"
          },
          {
            "id": 797,
            "origin_id": 326,
            "origin_slot": 0,
            "target_id": 327,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 798,
            "origin_id": 333,
            "origin_slot": 0,
            "target_id": 329,
            "target_slot": 0,
            "type": "VIDEO"
          },
          {
            "id": 801,
            "origin_id": 338,
            "origin_slot": 0,
            "target_id": 332,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 802,
            "origin_id": 325,
            "origin_slot": 0,
            "target_id": 332,
            "target_slot": 1,
            "type": "MASK"
          },
          {
            "id": 803,
            "origin_id": 334,
            "origin_slot": 1,
            "target_id": 333,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 811,
            "origin_id": 338,
            "origin_slot": 0,
            "target_id": 337,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 812,
            "origin_id": 332,
            "origin_slot": 0,
            "target_id": 339,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 804,
            "origin_id": 328,
            "origin_slot": 0,
            "target_id": 334,
            "target_slot": 0,
            "type": "POSEMODEL"
          },
          {
            "id": 805,
            "origin_id": 337,
            "origin_slot": 0,
            "target_id": 334,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 806,
            "origin_id": 337,
            "origin_slot": 1,
            "target_id": 334,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 807,
            "origin_id": 337,
            "origin_slot": 2,
            "target_id": 334,
            "target_slot": 4,
            "type": "INT"
          },
          {
            "id": 813,
            "origin_id": 335,
            "origin_slot": 0,
            "target_id": 340,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 799,
            "origin_id": 340,
            "origin_slot": 0,
            "target_id": 330,
            "target_slot": 0,
            "type": "VIDEO"
          },
          {
            "id": 18,
            "origin_id": 2,
            "origin_slot": 0,
            "target_id": 21,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 800,
            "origin_id": 339,
            "origin_slot": 0,
            "target_id": 331,
            "target_slot": 0,
            "type": "VIDEO"
          },
          {
            "id": 808,
            "origin_id": 334,
            "origin_slot": 0,
            "target_id": 335,
            "target_slot": 0,
            "type": "POSEDATA"
          },
          {
            "id": 809,
            "origin_id": 337,
            "origin_slot": 1,
            "target_id": 335,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 810,
            "origin_id": 337,
            "origin_slot": 2,
            "target_id": 335,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 814,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 333,
            "target_slot": 2,
            "type": "FLOAT"
          },
          {
            "id": 815,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 339,
            "target_slot": 2,
            "type": "FLOAT"
          },
          {
            "id": 816,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 340,
            "target_slot": 2,
            "type": "FLOAT"
          },
          {
            "id": 817,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 338,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 818,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 338,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 826,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 342,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 819,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 338,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 827,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 342,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 825,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 342,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 838,
            "origin_id": -10,
            "origin_slot": 5,
            "target_id": 21,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 852,
            "origin_id": 356,
            "origin_slot": 0,
            "target_id": 355,
            "target_slot": 1,
            "type": "CONDITIONING"
          },
          {
            "id": 853,
            "origin_id": 356,
            "origin_slot": 1,
            "target_id": 355,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 854,
            "origin_id": 356,
            "origin_slot": 2,
            "target_id": 355,
            "target_slot": 3,
            "type": "LATENT"
          },
          {
            "id": 855,
            "origin_id": 355,
            "origin_slot": 0,
            "target_id": 353,
            "target_slot": 0,
            "type": "LATENT"
          },
          {
            "id": 856,
            "origin_id": 356,
            "origin_slot": 3,
            "target_id": 353,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 857,
            "origin_id": 358,
            "origin_slot": 0,
            "target_id": 357,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 858,
            "origin_id": 353,
            "origin_slot": 0,
            "target_id": 354,
            "target_slot": 0,
            "type": "LATENT"
          },
          {
            "id": 859,
            "origin_id": 354,
            "origin_slot": 0,
            "target_id": 358,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 860,
            "origin_id": 356,
            "origin_slot": 4,
            "target_id": 358,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 861,
            "origin_id": 60,
            "origin_slot": 0,
            "target_id": 355,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 862,
            "origin_id": -10,
            "origin_slot": 6,
            "target_id": 357,
            "target_slot": 1,
            "type": "AUDIO"
          },
          {
            "id": 863,
            "origin_id": 3,
            "origin_slot": 0,
            "target_id": 354,
            "target_slot": 1,
            "type": "VAE"
          },
          {
            "id": 864,
            "origin_id": 3,
            "origin_slot": 0,
            "target_id": 356,
            "target_slot": 2,
            "type": "VAE"
          },
          {
            "id": 865,
            "origin_id": 21,
            "origin_slot": 0,
            "target_id": 356,
            "target_slot": 0,
            "type": "CONDITIONING"
          },
          {
            "id": 866,
            "origin_id": 1,
            "origin_slot": 0,
            "target_id": 356,
            "target_slot": 1,
            "type": "CONDITIONING"
          },
          {
            "id": 867,
            "origin_id": 9,
            "origin_slot": 0,
            "target_id": 356,
            "target_slot": 3,
            "type": "CLIP_VISION_OUTPUT"
          },
          {
            "id": 868,
            "origin_id": 342,
            "origin_slot": 0,
            "target_id": 356,
            "target_slot": 4,
            "type": "IMAGE"
          },
          {
            "id": 869,
            "origin_id": 334,
            "origin_slot": 1,
            "target_id": 356,
            "target_slot": 5,
            "type": "IMAGE"
          },
          {
            "id": 870,
            "origin_id": 335,
            "origin_slot": 0,
            "target_id": 356,
            "target_slot": 6,
            "type": "IMAGE"
          },
          {
            "id": 871,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 356,
            "target_slot": 10,
            "type": "INT"
          },
          {
            "id": 872,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 356,
            "target_slot": 11,
            "type": "INT"
          },
          {
            "id": 873,
            "origin_id": 357,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "VIDEO"
          },
          {
            "id": 874,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 357,
            "target_slot": 2,
            "type": "FLOAT"
          },
          {
            "id": 876,
            "origin_id": -10,
            "origin_slot": 7,
            "target_id": 356,
            "target_slot": 12,
            "type": "INT"
          }
        ],
        "name": "Wan 2.2 Animate - Full Scene",
        "nodes": [
          {
            "flags": {},
            "id": 4,
            "inputs": [],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  4
                ],
                "localized_name": "CLIP_VISION",
                "name": "CLIP_VISION",
                "slot_index": 0,
                "type": "CLIP_VISION"
              }
            ],
            "pos": [
              -3640.641828645229,
              -629.9998787645925
            ],
            "properties": {
              "Node name for S&R": "CLIPVisionLoader",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "clip_vision",
                  "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"
                }
              ],
              "ver": "0.3.59"
            },
            "size": [
              367.578125,
              108
            ],
            "type": "CLIPVisionLoader",
            "widgets_values": [
              "clip_vision_h.safetensors"
            ]
          },
          {
            "flags": {},
            "id": 2,
            "inputs": [],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  1,
                  18
                ],
                "localized_name": "CLIP",
                "name": "CLIP",
                "slot_index": 0,
                "type": "CLIP"
              }
            ],
            "pos": [
              -3640.641828645229,
              -821.9998373600831
            ],
            "properties": {
              "Node name for S&R": "CLIPLoader",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "text_encoders",
                  "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"
                }
              ],
              "ver": "0.3.59"
            },
            "size": [
              367.578125,
              142.65625
            ],
            "type": "CLIPLoader",
            "widgets_values": [
              "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
              "wan",
              "default"
            ]
          },
          {
            "bgcolor": "#533",
            "color": "#322",
            "flags": {},
            "id": 1,
            "inputs": [
              {
                "link": 1,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              }
            ],
            "mode": 0,
            "order": 8,
            "outputs": [
              {
                "links": [
                  866
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "slot_index": 0,
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              -3184.6416655573253,
              -461.99993875932125
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              510.3125,
              216.71875
            ],
            "title": "CLIP Text Encode (Negative Prompt)",
            "type": "CLIPTextEncode",
            "widgets_values": [
              "色调艳丽，过曝，静态，细节模糊不清，字幕，风格，作品，画作，画面，静止，整体发灰，最差质量，低质量，JPEG压缩残留，丑陋的，残缺的，多余的手指，画得不好的手部，画得不好的脸部，畸形的，毁容的，形态畸形的肢体，手指融合，静止不动的画面，杂乱的背景，三条腿，背景人很多，倒着走"
            ]
          },
          {
            "bgcolor": "#353",
            "color": "#232",
            "flags": {},
            "id": 21,
            "inputs": [
              {
                "link": 18,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              },
              {
                "link": 838,
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                }
              }
            ],
            "mode": 0,
            "order": 13,
            "outputs": [
              {
                "links": [
                  865
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "slot_index": 0,
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              -3184.6416655573253,
              -809.9999231281055
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              503.984375,
              275.9375
            ],
            "title": "CLIP Text Encode (Positive Prompt)",
            "type": "CLIPTextEncode",
            "widgets_values": [
              "the person is dancing"
            ]
          },
          {
            "flags": {},
            "id": 18,
            "inputs": [
              {
                "link": 16,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              }
            ],
            "mode": 0,
            "order": 9,
            "outputs": [
              {
                "links": [
                  226
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              }
            ],
            "pos": [
              -4060.6417737215393,
              -593.9998984108295
            ],
            "properties": {
              "Node name for S&R": "LoraLoaderModelOnly",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "loras",
                  "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"
                }
              ],
              "ver": "0.3.59"
            },
            "size": [
              367.578125,
              140
            ],
            "type": "LoraLoaderModelOnly",
            "widgets_values": [
              "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
              1
            ]
          },
          {
            "flags": {},
            "id": 99,
            "inputs": [
              {
                "link": 226,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              }
            ],
            "mode": 0,
            "order": 10,
            "outputs": [
              {
                "links": [
                  227
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              }
            ],
            "pos": [
              -4060.6417737215393,
              -389.9998354570971
            ],
            "properties": {
              "Node name for S&R": "LoraLoaderModelOnly",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "loras",
                  "name": "WanAnimate_relight_lora_fp16.safetensors",
                  "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/LoRAs/Wan22_relight/WanAnimate_relight_lora_fp16.safetensors"
                }
              ],
              "ver": "0.3.59"
            },
            "size": [
              367.578125,
              140
            ],
            "type": "LoraLoaderModelOnly",
            "widgets_values": [
              "WanAnimate_relight_lora_fp16.safetensors",
              1
            ]
          },
          {
            "flags": {},
            "id": 327,
            "inputs": [
              {
                "link": 797,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "mode": 0,
            "order": 16,
            "outputs": [
              {
                "links": [
                  793
                ],
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              },
              {
                "links": [],
                "localized_name": "mask_inverted",
                "name": "mask_inverted",
                "type": "MASK"
              }
            ],
            "pos": [
              -2896.6418227272216,
              1302.0000016748195
            ],
            "properties": {
              "Node name for S&R": "GrowMaskWithBlur",
              "cnr_id": "comfyui-kjnodes",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.3",
                "widget_ue_connectable": {}
              },
              "ver": "bb205d809b467307b8ec3bb1a22680a4873187f8"
            },
            "size": [
              351.25,
              340
            ],
            "type": "GrowMaskWithBlur",
            "widgets_values": [
              10,
              0,
              true,
              false,
              0,
              1,
              1,
              false
            ]
          },
          {
            "flags": {},
            "id": 331,
            "inputs": [
              {
                "link": 800,
                "localized_name": "video",
                "name": "video",
                "type": "VIDEO"
              }
            ],
            "mode": 4,
            "order": 19,
            "outputs": [],
            "pos": [
              -1672.6418252573558,
              1086.0002146153738
            ],
            "properties": {
              "Node name for S&R": "SaveVideo"
            },
            "size": [
              323.984375,
              733.375
            ],
            "type": "SaveVideo",
            "widgets_values": [
              "video/ComfyUI",
              "auto",
              "auto"
            ]
          },
          {
            "flags": {},
            "id": 324,
            "inputs": [],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  794
                ],
                "localized_name": "sam2_model",
                "name": "sam2_model",
                "type": "SAM2MODEL"
              }
            ],
            "pos": [
              -3352.641985815125,
              1122.0002425007028
            ],
            "properties": {
              "Node name for S&R": "DownloadAndLoadSAM2Model",
              "cnr_id": "ComfyUI-segment-anything-2",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.3",
                "widget_ue_connectable": {}
              },
              "ver": "c59676b008a76237002926f684d0ca3a9b29ac54"
            },
            "size": [
              408,
              211.984375
            ],
            "type": "DownloadAndLoadSAM2Model",
            "widgets_values": [
              "sam2.1_hiera_base_plus.safetensors",
              "video",
              "cuda",
              "fp16"
            ]
          },
          {
            "flags": {},
            "id": 326,
            "inputs": [
              {
                "link": 794,
                "localized_name": "sam2_model",
                "name": "sam2_model",
                "type": "SAM2MODEL"
              },
              {
                "link": 795,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "coordinates_positive",
                "name": "coordinates_positive",
                "shape": 7,
                "type": "STRING"
              },
              {
                "link": null,
                "localized_name": "coordinates_negative",
                "name": "coordinates_negative",
                "shape": 7,
                "type": "STRING"
              },
              {
                "link": 796,
                "localized_name": "bboxes",
                "name": "bboxes",
                "shape": 7,
                "type": "BBOX"
              },
              {
                "link": null,
                "localized_name": "mask",
                "name": "mask",
                "shape": 7,
                "type": "MASK"
              }
            ],
            "mode": 0,
            "order": 15,
            "outputs": [
              {
                "links": [
                  797
                ],
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "pos": [
              -3340.6419765200153,
              1350.0000388552585
            ],
            "properties": {
              "Node name for S&R": "Sam2Segmentation",
              "cnr_id": "ComfyUI-segment-anything-2",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.3",
                "widget_ue_connectable": {}
              },
              "ver": "c59676b008a76237002926f684d0ca3a9b29ac54"
            },
            "size": [
              396,
              248
            ],
            "type": "Sam2Segmentation",
            "widgets_values": [
              false,
              false
            ]
          },
          {
            "flags": {},
            "id": 332,
            "inputs": [
              {
                "link": 801,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 802,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "mode": 0,
            "order": 20,
            "outputs": [
              {
                "links": [
                  812
                ],
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              }
            ],
            "pos": [
              -2464.6418683558013,
              1098.0002239104838
            ],
            "properties": {
              "Node name for S&R": "DrawMaskOnImage",
              "cnr_id": "comfyui-kjnodes",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.3",
                "widget_ue_connectable": {}
              },
              "ver": "623b5913dc7f240fd8b26422e99f8849a21c5473"
            },
            "size": [
              312,
              166.65625
            ],
            "type": "DrawMaskOnImage",
            "widgets_values": [
              "0, 0, 0",
              "cpu"
            ]
          },
          {
            "flags": {},
            "id": 325,
            "inputs": [
              {
                "link": 793,
                "localized_name": "masks",
                "name": "masks",
                "type": "MASK"
              }
            ],
            "mode": 0,
            "order": 14,
            "outputs": [
              {
                "links": [
                  802
                ],
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "pos": [
              -2476.641687524647,
              1289.99999237971
            ],
            "properties": {
              "Node name for S&R": "BlockifyMask",
              "cnr_id": "comfyui-kjnodes",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.3",
                "widget_ue_connectable": {}
              },
              "ver": "00da1910634fbf314d407608efb281ae6f7f1ba2"
            },
            "size": [
              324,
              138.65625
            ],
            "type": "BlockifyMask",
            "widgets_values": [
              32,
              "cpu"
            ]
          },
          {
            "flags": {},
            "id": 335,
            "inputs": [
              {
                "link": 808,
                "localized_name": "pose_data",
                "name": "pose_data",
                "type": "POSEDATA"
              },
              {
                "link": 809,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 810,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              }
            ],
            "mode": 0,
            "order": 23,
            "outputs": [
              {
                "links": [
                  813,
                  870
                ],
                "localized_name": "pose_images",
                "name": "pose_images",
                "type": "IMAGE"
              }
            ],
            "pos": [
              -2500.641896241131,
              2045.9998174665625
            ],
            "properties": {
              "Node name for S&R": "DrawViTPose",
              "aux_id": "kijai/ComfyUI-WanAnimatePreprocess",
              "cnr_id": "ComfyUI-WanAnimatePreprocess",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.3",
                "widget_ue_connectable": {
                  "height": true,
                  "width": true
                }
              },
              "ver": "e63d6e71ae4c271f3f81211a7ca7f87607b7e50d"
            },
            "size": [
              323.984375,
              260
            ],
            "type": "DrawViTPose",
            "widgets_values": [
              832,
              480,
              16,
              -1,
              -1,
              "True"
            ]
          },
          {
            "flags": {},
            "id": 334,
            "inputs": [
              {
                "link": 804,
                "localized_name": "model",
                "name": "model",
                "type": "POSEMODEL"
              },
              {
                "link": 805,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "retarget_image",
                "name": "retarget_image",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 806,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 807,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              }
            ],
            "mode": 0,
            "order": 22,
            "outputs": [
              {
                "links": [
                  808
                ],
                "localized_name": "pose_data",
                "name": "pose_data",
                "type": "POSEDATA"
              },
              {
                "links": [
                  803,
                  869
                ],
                "localized_name": "face_images",
                "name": "face_images",
                "type": "IMAGE"
              },
              {
                "links": [],
                "localized_name": "key_frame_body_points",
                "name": "key_frame_body_points",
                "type": "STRING"
              },
              {
                "links": [
                  796
                ],
                "localized_name": "bboxes",
                "name": "bboxes",
                "type": "BBOX"
              },
              {
                "links": [],
                "localized_name": "face_bboxes",
                "name": "face_bboxes",
                "type": "BBOX,"
              }
            ],
            "pos": [
              -3376.6420044053443,
              2034.0001884239814
            ],
            "properties": {
              "Node name for S&R": "PoseAndFaceDetection",
              "aux_id": "kijai/ComfyUI-WanAnimatePreprocess",
              "cnr_id": "ComfyUI-WanAnimatePreprocess",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.3",
                "widget_ue_connectable": {
                  "height": true,
                  "width": true
                }
              },
              "ver": "e63d6e71ae4c271f3f81211a7ca7f87607b7e50d"
            },
            "size": [
              375.703125,
              232
            ],
            "type": "PoseAndFaceDetection",
            "widgets_values": [
              832,
              480
            ]
          },
          {
            "flags": {},
            "id": 340,
            "inputs": [
              {
                "link": 813,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "audio",
                "name": "audio",
                "shape": 7,
                "type": "AUDIO"
              },
              {
                "link": 816,
                "localized_name": "fps",
                "name": "fps",
                "type": "FLOAT",
                "widget": {
                  "name": "fps"
                }
              }
            ],
            "mode": 4,
            "order": 27,
            "outputs": [
              {
                "links": [
                  799
                ],
                "localized_name": "VIDEO",
                "name": "VIDEO",
                "type": "VIDEO"
              }
            ],
            "pos": [
              -2044.6419232794915,
              2034.0001884239814
            ],
            "properties": {
              "Node name for S&R": "CreateVideo"
            },
            "size": [
              323.984375,
              128
            ],
            "type": "CreateVideo",
            "widgets_values": [
              30
            ]
          },
          {
            "flags": {},
            "id": 330,
            "inputs": [
              {
                "link": 799,
                "localized_name": "video",
                "name": "video",
                "type": "VIDEO"
              }
            ],
            "mode": 4,
            "order": 18,
            "outputs": [],
            "pos": [
              -1660.6420060885102,
              2045.9998174665625
            ],
            "properties": {
              "Node name for S&R": "SaveVideo"
            },
            "size": [
              323.984375,
              733.375
            ],
            "type": "SaveVideo",
            "widgets_values": [
              "video/ComfyUI",
              "auto",
              "auto"
            ]
          },
          {
            "flags": {},
            "id": 333,
            "inputs": [
              {
                "link": 803,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "audio",
                "name": "audio",
                "shape": 7,
                "type": "AUDIO"
              },
              {
                "link": 814,
                "localized_name": "fps",
                "name": "fps",
                "type": "FLOAT",
                "widget": {
                  "name": "fps"
                }
              }
            ],
            "mode": 4,
            "order": 21,
            "outputs": [
              {
                "links": [
                  798
                ],
                "localized_name": "VIDEO",
                "name": "VIDEO",
                "type": "VIDEO"
              }
            ],
            "pos": [
              -2944.641669781396,
              2082.0002256044204
            ],
            "properties": {
              "Node name for S&R": "CreateVideo"
            },
            "size": [
              360,
              132
            ],
            "type": "CreateVideo",
            "widgets_values": [
              30
            ]
          },
          {
            "flags": {},
            "id": 328,
            "inputs": [],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  804
                ],
                "localized_name": "model",
                "name": "model",
                "type": "POSEMODEL"
              }
            ],
            "pos": [
              -3376.6420044053443,
              2346.0000498443046
            ],
            "properties": {
              "Node name for S&R": "OnnxDetectionModelLoader",
              "aux_id": "kijai/ComfyUI-WanAnimatePreprocess",
              "cnr_id": "ComfyUI-WanAnimatePreprocess",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.3",
                "widget_ue_connectable": {}
              },
              "ver": "e63d6e71ae4c271f3f81211a7ca7f87607b7e50d"
            },
            "size": [
              384,
              177.328125
            ],
            "type": "OnnxDetectionModelLoader",
            "widgets_values": [
              "vitpose-l-wholebody.onnx",
              "yolov10m.onnx",
              "CUDAExecutionProvider"
            ]
          },
          {
            "flags": {},
            "id": 329,
            "inputs": [
              {
                "link": 798,
                "localized_name": "video",
                "name": "video",
                "type": "VIDEO"
              }
            ],
            "mode": 4,
            "order": 17,
            "outputs": [],
            "pos": [
              -2932.6418506125506,
              2298.0003929163945
            ],
            "properties": {
              "Node name for S&R": "SaveVideo"
            },
            "size": [
              348,
              504
            ],
            "type": "SaveVideo",
            "widgets_values": [
              "video/ComfyUI",
              "auto",
              "auto"
            ]
          },
          {
            "flags": {},
            "id": 339,
            "inputs": [
              {
                "link": 812,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "audio",
                "name": "audio",
                "shape": 7,
                "type": "AUDIO"
              },
              {
                "link": 815,
                "localized_name": "fps",
                "name": "fps",
                "type": "FLOAT",
                "widget": {
                  "name": "fps"
                }
              }
            ],
            "mode": 4,
            "order": 26,
            "outputs": [
              {
                "links": [
                  800
                ],
                "localized_name": "VIDEO",
                "name": "VIDEO",
                "type": "VIDEO"
              }
            ],
            "pos": [
              -2056.6421227008655,
              1098.0002239104838
            ],
            "properties": {
              "Node name for S&R": "CreateVideo"
            },
            "size": [
              323.984375,
              128
            ],
            "type": "CreateVideo",
            "widgets_values": [
              30
            ]
          },
          {
            "flags": {},
            "id": 3,
            "inputs": [],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  863,
                  864
                ],
                "localized_name": "VAE",
                "name": "VAE",
                "slot_index": 0,
                "type": "VAE"
              }
            ],
            "pos": [
              -3640.641828645229,
              -473.9999480544309
            ],
            "properties": {
              "Node name for S&R": "VAELoader",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "vae",
                  "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"
                }
              ],
              "ver": "0.3.59"
            },
            "size": [
              367.578125,
              108
            ],
            "type": "VAELoader",
            "widgets_values": [
              "wan_2.1_vae.safetensors"
            ]
          },
          {
            "flags": {},
            "id": 20,
            "inputs": [],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": [
                  16
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "slot_index": 0,
                "type": "MODEL"
              }
            ],
            "pos": [
              -4060.6417737215393,
              -821.9998373600831
            ],
            "properties": {
              "Node name for S&R": "UNETLoader",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "diffusion_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"
                }
              ],
              "ver": "0.3.59"
            },
            "size": [
              367.578125,
              142.65625
            ],
            "type": "UNETLoader",
            "widgets_values": [
              "Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors",
              "default"
            ]
          },
          {
            "flags": {},
            "id": 60,
            "inputs": [
              {
                "link": 227,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              }
            ],
            "mode": 0,
            "order": 11,
            "outputs": [
              {
                "links": [
                  861
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "slot_index": 0,
                "type": "MODEL"
              }
            ],
            "pos": [
              -3652.6418379403385,
              -317.99982721800507
            ],
            "properties": {
              "Node name for S&R": "ModelSamplingSD3",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              377.96875,
              104
            ],
            "type": "ModelSamplingSD3",
            "widgets_values": [
              8
            ]
          },
          {
            "flags": {
              "collapsed": false
            },
            "id": 9,
            "inputs": [
              {
                "link": 4,
                "localized_name": "clip_vision",
                "name": "clip_vision",
                "type": "CLIP_VISION"
              },
              {
                "link": 829,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 12,
            "outputs": [
              {
                "links": [
                  867
                ],
                "localized_name": "CLIP_VISION_OUTPUT",
                "name": "CLIP_VISION_OUTPUT",
                "slot_index": 0,
                "type": "CLIP_VISION_OUTPUT"
              }
            ],
            "pos": [
              -3076.641581901338,
              -101.99994509542728
            ],
            "properties": {
              "Node name for S&R": "CLIPVisionEncode",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              304.296875,
              130.65625
            ],
            "type": "CLIPVisionEncode",
            "widgets_values": [
              "none"
            ]
          },
          {
            "flags": {},
            "id": 355,
            "inputs": [
              {
                "link": 861,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": 852,
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "link": 853,
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "link": 854,
                "localized_name": "latent_image",
                "name": "latent_image",
                "type": "LATENT"
              }
            ],
            "mode": 0,
            "order": 31,
            "outputs": [
              {
                "links": [
                  855
                ],
                "localized_name": "LATENT",
                "name": "LATENT",
                "type": "LATENT"
              }
            ],
            "pos": [
              -2008.641515141634,
              -809.9999231281055
            ],
            "properties": {
              "Node name for S&R": "KSampler",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              323.984375,
              816.40625
            ],
            "type": "KSampler",
            "widgets_values": [
              777171427287516,
              "randomize",
              6,
              1,
              "euler",
              "simple",
              1
            ]
          },
          {
            "flags": {},
            "id": 353,
            "inputs": [
              {
                "link": 855,
                "localized_name": "samples",
                "name": "samples",
                "type": "LATENT"
              },
              {
                "link": 856,
                "localized_name": "trim_amount",
                "name": "trim_amount",
                "type": "INT",
                "widget": {
                  "name": "trim_amount"
                }
              }
            ],
            "mode": 0,
            "order": 29,
            "outputs": [
              {
                "links": [
                  858
                ],
                "localized_name": "LATENT",
                "name": "LATENT",
                "type": "LATENT"
              }
            ],
            "pos": [
              -1624.6415979506528,
              -809.9999231281055
            ],
            "properties": {
              "Node name for S&R": "TrimVideoLatent",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              323.984375,
              104
            ],
            "type": "TrimVideoLatent",
            "widgets_values": [
              0
            ]
          },
          {
            "flags": {},
            "id": 354,
            "inputs": [
              {
                "link": 858,
                "localized_name": "samples",
                "name": "samples",
                "type": "LATENT"
              },
              {
                "link": 863,
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE"
              }
            ],
            "mode": 0,
            "order": 30,
            "outputs": [
              {
                "links": [
                  859
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "slot_index": 0,
                "type": "IMAGE"
              }
            ],
            "pos": [
              -1564.6417416013687,
              -665.9998115867893
            ],
            "properties": {
              "Node name for S&R": "VAEDecode",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              251.953125,
              96
            ],
            "type": "VAEDecode",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 358,
            "inputs": [
              {
                "link": 859,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 860,
                "localized_name": "batch_index",
                "name": "batch_index",
                "type": "INT",
                "widget": {
                  "name": "batch_index"
                }
              }
            ],
            "mode": 0,
            "order": 34,
            "outputs": [
              {
                "links": [
                  857
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              -1624.6415979506528,
              -533.9998044037151
            ],
            "properties": {
              "Node name for S&R": "ImageFromBatch",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              323.984375,
              136
            ],
            "type": "ImageFromBatch",
            "widgets_values": [
              0,
              4096
            ]
          },
          {
            "flags": {},
            "id": 342,
            "inputs": [
              {
                "link": 825,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 826,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 827,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              }
            ],
            "mode": 0,
            "order": 28,
            "outputs": [
              {
                "links": [
                  829,
                  868
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              -4048.6417644264293,
              -77.9999265052079
            ],
            "properties": {
              "Node name for S&R": "ImageScale",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.3",
                "widget_ue_connectable": {}
              },
              "ver": "0.3.66"
            },
            "size": [
              323.984375,
              205.328125
            ],
            "title": "Resize Reference Image",
            "type": "ImageScale",
            "widgets_values": [
              "lanczos",
              832,
              480,
              "center"
            ]
          },
          {
            "flags": {},
            "id": 356,
            "inputs": [
              {
                "link": 865,
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "link": 866,
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "link": 864,
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE"
              },
              {
                "link": 867,
                "localized_name": "clip_vision_output",
                "name": "clip_vision_output",
                "shape": 7,
                "type": "CLIP_VISION_OUTPUT"
              },
              {
                "link": 868,
                "localized_name": "reference_image",
                "name": "reference_image",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 869,
                "localized_name": "face_video",
                "name": "face_video",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 870,
                "localized_name": "pose_video",
                "name": "pose_video",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "background_video",
                "name": "background_video",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "character_mask",
                "name": "character_mask",
                "shape": 7,
                "type": "MASK"
              },
              {
                "link": null,
                "localized_name": "continue_motion",
                "name": "continue_motion",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 871,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 872,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              },
              {
                "link": 876,
                "localized_name": "length",
                "name": "length",
                "type": "INT",
                "widget": {
                  "name": "length"
                }
              }
            ],
            "mode": 0,
            "order": 32,
            "outputs": [
              {
                "links": [
                  852
                ],
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "links": [
                  853
                ],
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "links": [
                  854
                ],
                "localized_name": "latent",
                "name": "latent",
                "type": "LATENT"
              },
              {
                "links": [
                  856
                ],
                "localized_name": "trim_latent",
                "name": "trim_latent",
                "type": "INT"
              },
              {
                "links": [
                  860
                ],
                "localized_name": "trim_image",
                "name": "trim_image",
                "type": "INT"
              },
              {
                "links": [],
                "localized_name": "video_frame_offset",
                "name": "video_frame_offset",
                "type": "INT"
              }
            ],
            "pos": [
              -2500.641896241131,
              -797.9999138329958
            ],
            "properties": {
              "Node name for S&R": "WanAnimateToVideo",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              389.6875,
              480
            ],
            "type": "WanAnimateToVideo",
            "widgets_values": [
              832,
              480,
              77,
              1,
              5,
              0
            ]
          },
          {
            "flags": {},
            "id": 357,
            "inputs": [
              {
                "link": 857,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "link": 862,
                "localized_name": "audio",
                "name": "audio",
                "shape": 7,
                "type": "AUDIO"
              },
              {
                "link": 874,
                "localized_name": "fps",
                "name": "fps",
                "type": "FLOAT",
                "widget": {
                  "name": "fps"
                }
              }
            ],
            "mode": 0,
            "order": 33,
            "outputs": [
              {
                "links": [
                  873
                ],
                "localized_name": "VIDEO",
                "name": "VIDEO",
                "type": "VIDEO"
              }
            ],
            "pos": [
              -1528.6420939685681,
              450.00019729022165
            ],
            "properties": {
              "Node name for S&R": "CreateVideo",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              323.984375,
              128
            ],
            "type": "CreateVideo",
            "widgets_values": [
              30
            ]
          },
          {
            "bgcolor": "#000",
            "color": "#222",
            "flags": {},
            "id": 336,
            "inputs": [],
            "mode": 0,
            "order": 6,
            "outputs": [],
            "pos": [
              -3352.641985815125,
              834.0000194180707
            ],
            "properties": {
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.3",
                "widget_ue_connectable": {}
              }
            },
            "size": [
              384,
              120
            ],
            "title": "Note: SAM2 detection",
            "type": "Note",
            "widgets_values": [
              "You can use either the detected bbox or the kay_frame_body_points to positive coordinates, if one fails to creater proper mask, try the other"
            ]
          },
          {
            "flags": {},
            "id": 338,
            "inputs": [
              {
                "link": 817,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 818,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 819,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              }
            ],
            "mode": 0,
            "order": 25,
            "outputs": [
              {
                "links": [
                  801,
                  811
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              -4164.792180778765,
              1071.8726924231814
            ],
            "properties": {
              "Node name for S&R": "ImageScale",
              "cnr_id": "comfy-core",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.3",
                "widget_ue_connectable": {}
              },
              "ver": "0.3.66"
            },
            "size": [
              323.984375,
              205.328125
            ],
            "title": "Resize Input Video",
            "type": "ImageScale",
            "widgets_values": [
              "lanczos",
              832,
              480,
              "center"
            ]
          },
          {
            "flags": {},
            "id": 337,
            "inputs": [
              {
                "link": 811,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 24,
            "outputs": [
              {
                "links": [
                  795,
                  805
                ],
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "label": "720 width",
                "links": [
                  806,
                  809
                ],
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "label": "1280 height",
                "links": [
                  807,
                  810
                ],
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "label": "121 count",
                "links": [],
                "localized_name": "count",
                "name": "count",
                "type": "INT"
              }
            ],
            "pos": [
              -4120.641820197087,
              2058.000207014201
            ],
            "properties": {
              "Node name for S&R": "GetImageSizeAndCount",
              "cnr_id": "comfyui-kjnodes",
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.3",
                "widget_ue_connectable": {}
              },
              "ver": "bb205d809b467307b8ec3bb1a22680a4873187f8"
            },
            "size": [
              235.546875,
              144
            ],
            "type": "GetImageSizeAndCount",
            "widgets_values": []
          },
          {
            "bgcolor": "#000",
            "color": "#222",
            "flags": {},
            "id": 359,
            "inputs": [],
            "mode": 0,
            "order": 7,
            "outputs": [],
            "pos": [
              -1230.000123622708,
              1030.0000444873526
            ],
            "properties": {},
            "size": [
              400,
              370
            ],
            "title": "Enable Bypassed Node",
            "type": "MarkdownNote",
            "widgets_values": [
              "The pink nodes are in Bypassed status. They are for previewing the output of object detection. You can select them and then use Ctrl-B to enable or disable."
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            -772.6415641159956,
            450,
            120,
            60
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "fb94f0e7-6131-4db5-ac54-675007832f69",
            "linkIds": [
              873
            ],
            "localized_name": "VIDEO",
            "name": "VIDEO",
            "pos": [
              -752.6415641159956,
              470
            ],
            "type": "VIDEO"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 25,
          "lastLinkId": 877,
          "lastNodeId": 359,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      }
    ]
  },
  "extra": {
    "VHS_KeepIntermediate": true,
    "VHS_MetadataImage": true,
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "ds": {
      "offset": [
        8050.662796241808,
        1695.9115570981044
      ],
      "scale": 0.2498040008593163
    },
    "frontendVersion": "1.41.13",
    "linearData": {
      "inputs": [
        [
          "301",
          "video"
        ],
        [
          "301",
          "videopreview"
        ],
        [
          "159",
          "value"
        ],
        [
          "160",
          "value"
        ],
        [
          "351",
          "string_b"
        ]
      ],
      "outputs": [
        "349",
        "19"
      ]
    },
    "linearMode": false,
    "workflowRendererVersion": "Vue"
  },
  "groups": [
    {
      "bounding": [
        -4650,
        -310,
        347.98437500000034,
        360.32
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 17,
      "title": "Target Resolution"
    },
    {
      "bounding": [
        -4650,
        90,
        1416,
        940.3199999999999
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 25,
      "title": "First Frame Restyle"
    }
  ],
  "id": "ba1df054-50a8-4da2-b45a-25b4dde3cc2f",
  "last_link_id": 877,
  "last_node_id": 359,
  "links": [
    [
      769,
      301,
      3,
      314,
      0,
      "VHS_VIDEOINFO"
    ],
    [
      834,
      314,
      0,
      344,
      0,
      "FLOAT"
    ],
    [
      835,
      301,
      0,
      344,
      1,
      "IMAGE"
    ],
    [
      836,
      159,
      0,
      344,
      2,
      "INT"
    ],
    [
      837,
      160,
      0,
      344,
      3,
      "INT"
    ],
    [
      839,
      344,
      0,
      19,
      0,
      "VIDEO"
    ],
    [
      840,
      301,
      0,
      346,
      0,
      "IMAGE"
    ],
    [
      842,
      346,
      0,
      348,
      0,
      "IMAGE"
    ],
    [
      843,
      348,
      0,
      344,
      4,
      "IMAGE"
    ],
    [
      844,
      348,
      0,
      349,
      0,
      "IMAGE"
    ],
    [
      847,
      301,
      2,
      344,
      5,
      "AUDIO"
    ],
    [
      851,
      351,
      0,
      348,
      2,
      "STRING"
    ],
    [
      877,
      301,
      1,
      344,
      6,
      "INT"
    ]
  ],
  "nodes": [
    {
      "flags": {},
      "id": 159,
      "inputs": [
        {
          "label": "target_width",
          "link": null,
          "name": "value",
          "type": "INT",
          "widget": {
            "name": "value"
          }
        }
      ],
      "mode": 0,
      "order": 0,
      "outputs": [
        {
          "links": [
            836
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        -4630.000059941149,
        -219.99995450759207
      ],
      "properties": {
        "Node name for S&R": "PrimitiveInt",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        323.984375,
        104
      ],
      "title": "Width",
      "type": "PrimitiveInt",
      "widgets_values": [
        720,
        "fixed"
      ]
    },
    {
      "flags": {},
      "id": 160,
      "inputs": [
        {
          "label": "target_height",
          "link": null,
          "name": "value",
          "type": "INT",
          "widget": {
            "name": "value"
          }
        }
      ],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            837
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        -4630.000059941149,
        -70.00001794603213
      ],
      "properties": {
        "Node name for S&R": "PrimitiveInt",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        323.984375,
        104
      ],
      "title": "Height",
      "type": "PrimitiveInt",
      "widgets_values": [
        1280,
        "fixed"
      ]
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 346,
      "inputs": [
        {
          "link": 840,
          "name": "image",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 5,
      "outputs": [
        {
          "links": [
            842
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        -4620.00002079325,
        259.99997262078364
      ],
      "properties": {
        "Node name for S&R": "ImageFromBatch"
      },
      "size": [
        225,
        8
      ],
      "type": "ImageFromBatch",
      "widgets_values": [
        0,
        1
      ]
    },
    {
      "flags": {},
      "id": 351,
      "inputs": [
        {
          "label": "character_prompt",
          "link": null,
          "name": "string_b",
          "type": "STRING",
          "widget": {
            "name": "string_b"
          }
        }
      ],
      "mode": 0,
      "order": 2,
      "outputs": [
        {
          "links": [
            851
          ],
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        -4609.999981645351,
        330.00006075409715
      ],
      "properties": {
        "Node name for S&R": "StringConcatenate"
      },
      "size": [
        400,
        244
      ],
      "type": "StringConcatenate",
      "widgets_values": [
        "retain the composition of this image but turn the character into ",
        "the dancer is wearing a raincoat and rain boots, dancing in a puddle in the rain",
        ""
      ]
    },
    {
      "flags": {},
      "id": 349,
      "inputs": [
        {
          "link": 844,
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 9,
      "outputs": [],
      "pos": [
        -3690.000098078217,
        220.00000193116625
      ],
      "properties": {},
      "size": [
        432,
        708
      ],
      "title": "Preview Reference Image",
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "bgcolor": "#653",
      "color": "#432",
      "flags": {},
      "id": 348,
      "inputs": [
        {
          "link": 842,
          "name": "images",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "link": null,
          "name": "files",
          "shape": 7,
          "type": "GEMINI_INPUT_FILES"
        },
        {
          "link": 851,
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          }
        }
      ],
      "mode": 0,
      "order": 7,
      "outputs": [
        {
          "links": [
            843,
            844
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        -4180.00015730548,
        220.00000193116625
      ],
      "properties": {
        "Node name for S&R": "GeminiNanoBanana2"
      },
      "size": [
        400,
        446.390625
      ],
      "type": "GeminiNanoBanana2",
      "widgets_values": [
        "a man in a business suit, standing in front of a water fountain",
        "Nano Banana 2 (Gemini 3.1 Flash Image)",
        210658028400692,
        "randomize",
        "auto",
        "1K",
        "IMAGE",
        "MINIMAL",
        "You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests."
      ]
    },
    {
      "flags": {},
      "id": 301,
      "inputs": [
        {
          "link": null,
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager"
        },
        {
          "link": null,
          "name": "vae",
          "shape": 7,
          "type": "VAE"
        },
        {
          "label": "input_video",
          "link": null,
          "name": "video",
          "type": "COMBO",
          "widget": {
            "name": "video"
          }
        },
        {
          "label": "frame_load_cap",
          "link": null,
          "name": "frame_load_cap",
          "type": "INT",
          "widget": {
            "name": "frame_load_cap"
          }
        }
      ],
      "mode": 0,
      "order": 3,
      "outputs": [
        {
          "links": [
            835,
            840
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": [
            877
          ],
          "name": "frame_count",
          "type": "INT"
        },
        {
          "links": [
            847
          ],
          "name": "audio",
          "type": "AUDIO"
        },
        {
          "links": [
            769
          ],
          "name": "video_info",
          "type": "VHS_VIDEOINFO"
        }
      ],
      "pos": [
        -5094.016228036271,
        -608.7999967981539
      ],
      "properties": {
        "Node name for S&R": "VHS_LoadVideo"
      },
      "size": [
        384,
        1054.765625
      ],
      "title": "Input Video",
      "type": "VHS_LoadVideo",
      "widgets_values": {
        "custom_height": 0,
        "custom_width": 0,
        "force_rate": 0,
        "format": "AnimateDiff",
        "frame_load_cap": 0,
        "select_every_nth": 1,
        "skip_first_frames": 0,
        "video": "templates_purz_wan22_animate_auto_full_scene.mp4",
        "videopreview": {
          "hidden": false,
          "params": {
            "custom_height": 0,
            "custom_width": 0,
            "filename": "templates_purz_wan22_animate_auto_full_scene.mp4",
            "force_rate": 0,
            "format": "video/mp4",
            "frame_load_cap": 0,
            "select_every_nth": 1,
            "skip_first_frames": 0,
            "type": "input"
          },
          "paused": false
        }
      }
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 314,
      "inputs": [
        {
          "link": 769,
          "name": "video_info",
          "type": "VHS_VIDEOINFO"
        }
      ],
      "mode": 0,
      "order": 6,
      "outputs": [
        {
          "links": [
            834
          ],
          "name": "source_fps🟨",
          "type": "FLOAT"
        },
        {
          "links": null,
          "name": "source_frame_count🟨",
          "type": "INT"
        },
        {
          "links": null,
          "name": "source_duration🟨",
          "type": "FLOAT"
        },
        {
          "links": null,
          "name": "source_width🟨",
          "type": "INT"
        },
        {
          "links": null,
          "name": "source_height🟨",
          "type": "INT"
        },
        {
          "links": null,
          "name": "loaded_fps🟦",
          "type": "FLOAT"
        },
        {
          "links": null,
          "name": "loaded_frame_count🟦",
          "type": "INT"
        },
        {
          "links": null,
          "name": "loaded_duration🟦",
          "type": "FLOAT"
        },
        {
          "links": null,
          "name": "loaded_width🟦",
          "type": "INT"
        },
        {
          "links": null,
          "name": "loaded_height🟦",
          "type": "INT"
        }
      ],
      "pos": [
        -4182.015706540338,
        -476.8000191616253
      ],
      "properties": {
        "Node name for S&R": "VHS_VideoInfo"
      },
      "size": [
        225,
        8
      ],
      "type": "VHS_VideoInfo",
      "widgets_values": {}
    },
    {
      "flags": {},
      "id": 19,
      "inputs": [
        {
          "link": 839,
          "name": "video",
          "type": "VIDEO"
        }
      ],
      "mode": 0,
      "order": 10,
      "outputs": [],
      "pos": [
        -3145.6166462972665,
        -597.1998993340379
      ],
      "properties": {
        "Node name for S&R": "SaveVideo",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        840,
        1674.65625
      ],
      "title": "Final Video",
      "type": "SaveVideo",
      "widgets_values": [
        "video/Wan2.2_animate",
        "auto",
        "auto"
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#222",
      "flags": {},
      "id": 352,
      "inputs": [],
      "mode": 0,
      "order": 4,
      "outputs": [],
      "pos": [
        -5928.000010443825,
        -612.0000204796
      ],
      "properties": {},
      "size": [
        756,
        1287.4375
      ],
      "type": "MarkdownNote",
      "widgets_values": [
        "This workflow takes an input video + reference image and generates an animated result using **Wan 2.2 Animate (Character Replace)**.\n\n> ⚠️ Works best when the **reference image is a person**.  \nHuman subjects (clear face + body) produce the most stable and convincing results.\n\n## 1️⃣ Set Target Resolution (Top Left)\n\nUse the **Width** and **Height** nodes (top left) to define output resolution.\n\n**Recommended:**\n- ✅ Stay around **720p** (e.g. 720x720 or 832x480)\n- ⚠️ 1080p may error depending on VRAM\n- Higher resolutions = higher instability\n\n> Both the input video and reference image are **center-cropped** to match the target resolution.\n\n## 2️⃣ Control Frame Count\n\nIn the **Input Video** node, use:\n\n`frame_load_cap`\n\nto control how many frames are processed.\n\n**Recommended range:**\n- 🎯 **77–150 frames**\n\nLower = faster + less likely to crash\nHigher = heavier VRAM usage\n\n## 3️⃣ Wan 2.2 Animate Node\n\n- Connect `input_video`\n- Connect `reference_image`\n- Set FPS (30 is typical)\n- Add your prompt describing motion or behavior\n\nExample:\n\nthe person is dancing\n\n## 4️⃣ Export\n\nThe **Save Video** node outputs the final animation.\n\n## ⚙️ Stability Guidelines\n\n- Stick to ~720p\n- Keep frames under ~150\n- 1080p may fail without significant VRAM\n- Everything is **center-cropped**\n- Best results with **clear human reference images**\n\nResolution → Frame Cap → Prompt → Render.\n\n- Feel free to bypass the Nano Banana 2 node and use your own reference image as an Input!"
      ]
    },
    {
      "flags": {},
      "id": 344,
      "inputs": [
        {
          "link": 834,
          "name": "fps",
          "type": "FLOAT",
          "widget": {
            "name": "fps"
          }
        },
        {
          "label": "input_video",
          "link": 835,
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": 836,
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          }
        },
        {
          "link": 837,
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          }
        },
        {
          "label": "reference_image",
          "link": 843,
          "name": "image_1",
          "type": "IMAGE"
        },
        {
          "link": 847,
          "name": "audio",
          "type": "AUDIO"
        },
        {
          "link": 877,
          "name": "length",
          "type": "INT",
          "widget": {
            "name": "length"
          }
        }
      ],
      "mode": 0,
      "order": 8,
      "outputs": [
        {
          "links": [
            839
          ],
          "name": "VIDEO",
          "type": "VIDEO"
        }
      ],
      "pos": [
        -3606.016277331428,
        -596.7999312304778
      ],
      "properties": {
        "proxyWidgets": [
          [
            "333",
            "fps"
          ],
          [
            "338",
            "width"
          ],
          [
            "338",
            "height"
          ],
          [
            "21",
            "text"
          ],
          [
            "356",
            "length"
          ]
        ]
      },
      "size": [
        375.234375,
        592
      ],
      "type": "b396d3e6-70cc-4a91-81db-6e0399a4edb6",
      "widgets_values": []
    }
  ],
  "revision": 0,
  "version": 0.4
}