{
  "config": {},
  "definitions": {
    "subgraphs": [
      {
        "config": {},
        "extra": {
          "workflowRendererVersion": "LG"
        },
        "groups": [],
        "id": "90db3fa1-b7fd-4c97-90a4-3e9533589dce",
        "inputNode": {
          "bounding": [
            -348.07421875,
            -104,
            143.494140625,
            440
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "a65c1a6f-1c56-4db6-bc46-0d762e228140",
            "linkIds": [
              454
            ],
            "localized_name": "model",
            "name": "model",
            "pos": [
              -224.580078125,
              -84
            ],
            "type": "MODEL"
          },
          {
            "id": "f60a003a-5f70-4edb-87d2-49249b63ac60",
            "linkIds": [
              463
            ],
            "localized_name": "audio",
            "name": "audio",
            "pos": [
              -224.580078125,
              -64
            ],
            "shape": 7,
            "type": "AUDIO"
          },
          {
            "id": "3eba0674-9407-48ab-8416-23357fefa5e4",
            "linkIds": [
              464,
              471
            ],
            "localized_name": "vae",
            "name": "vae",
            "pos": [
              -224.580078125,
              -44
            ],
            "type": "VAE"
          },
          {
            "id": "8c5ba174-3dac-4830-989d-2ffd194a4638",
            "linkIds": [
              467
            ],
            "localized_name": "positive",
            "name": "positive",
            "pos": [
              -224.580078125,
              -24
            ],
            "type": "CONDITIONING"
          },
          {
            "id": "1047fa35-1365-4dfc-b7f1-a5869b601a89",
            "linkIds": [
              470
            ],
            "localized_name": "negative",
            "name": "negative",
            "pos": [
              -224.580078125,
              -4
            ],
            "type": "CONDITIONING"
          },
          {
            "id": "04a00ce5-40d1-46a0-9478-9aba0778b80b",
            "linkIds": [
              474
            ],
            "localized_name": "clip_vision_output",
            "name": "clip_vision_output",
            "pos": [
              -224.580078125,
              16
            ],
            "shape": 7,
            "type": "CLIP_VISION_OUTPUT"
          },
          {
            "id": "9ed8853f-bd73-4728-be35-ed4d4a177059",
            "linkIds": [
              475
            ],
            "localized_name": "reference_image",
            "name": "reference_image",
            "pos": [
              -224.580078125,
              36
            ],
            "shape": 7,
            "type": "IMAGE"
          },
          {
            "id": "2b62e853-eb8b-4d69-bf22-1f0822d3e56d",
            "linkIds": [
              459
            ],
            "localized_name": "face_video",
            "name": "face_video",
            "pos": [
              -224.580078125,
              56
            ],
            "shape": 7,
            "type": "IMAGE"
          },
          {
            "id": "3136835f-c045-4f05-a970-3adafd321465",
            "linkIds": [
              461
            ],
            "localized_name": "pose_video",
            "name": "pose_video",
            "pos": [
              -224.580078125,
              76
            ],
            "shape": 7,
            "type": "IMAGE"
          },
          {
            "id": "5ad7efd4-462f-41d0-8340-4afd50c5f348",
            "linkIds": [
              419
            ],
            "localized_name": "background_video",
            "name": "background_video",
            "pos": [
              -224.580078125,
              96
            ],
            "shape": 7,
            "type": "IMAGE"
          },
          {
            "id": "ca1d3a4d-4e24-4d7e-8f09-806712fd4bc9",
            "linkIds": [
              418
            ],
            "localized_name": "character_mask",
            "name": "character_mask",
            "pos": [
              -224.580078125,
              116
            ],
            "shape": 7,
            "type": "MASK"
          },
          {
            "id": "f39fd571-8756-4c88-bc40-9055450f6e00",
            "linkIds": [
              450
            ],
            "localized_name": "width",
            "name": "width",
            "pos": [
              -224.580078125,
              136
            ],
            "type": "INT"
          },
          {
            "id": "02628a20-dd6c-44e6-9012-b6d0bf61a93f",
            "linkIds": [
              451
            ],
            "localized_name": "height",
            "name": "height",
            "pos": [
              -224.580078125,
              156
            ],
            "type": "INT"
          },
          {
            "id": "066ae061-5d3e-473f-8a83-8517c605e63d",
            "linkIds": [
              477
            ],
            "name": "fps",
            "pos": [
              -224.580078125,
              176
            ],
            "type": "FLOAT"
          },
          {
            "id": "fbbe4cdd-2580-486a-8d7c-53f1dc0a4034",
            "linkIds": [
              478
            ],
            "name": "seed",
            "pos": [
              -224.580078125,
              196
            ],
            "type": "INT"
          },
          {
            "id": "4bf86876-244b-49d0-a6f5-f8b98de0ac50",
            "linkIds": [
              479
            ],
            "name": "steps",
            "pos": [
              -224.580078125,
              216
            ],
            "type": "INT"
          },
          {
            "id": "43112400-97ac-4ab9-8c6e-1bd62e32f8d4",
            "linkIds": [
              480
            ],
            "name": "cfg",
            "pos": [
              -224.580078125,
              236
            ],
            "type": "FLOAT"
          },
          {
            "id": "294b0d0a-7b7b-4953-8a86-37440b22099b",
            "linkIds": [
              481
            ],
            "name": "sampler_name",
            "pos": [
              -224.580078125,
              256
            ],
            "type": "COMBO"
          },
          {
            "id": "37d706a5-cf01-4275-917d-ffda1eb0af23",
            "linkIds": [
              482
            ],
            "name": "scheduler",
            "pos": [
              -224.580078125,
              276
            ],
            "type": "COMBO"
          },
          {
            "id": "4cdaa85e-0c3d-44c6-88eb-066640c2998f",
            "linkIds": [
              841
            ],
            "name": "length",
            "pos": [
              -224.580078125,
              296
            ],
            "type": "INT"
          }
        ],
        "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"
          },
          {
            "id": 841,
            "origin_id": -10,
            "origin_slot": 19,
            "target_id": 62,
            "target_slot": 12,
            "type": "INT"
          }
        ],
        "name": "Video Sampling and output(Subgraph)",
        "nodes": [
          {
            "flags": {},
            "id": 62,
            "inputs": [
              {
                "link": 467,
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "link": 470,
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "link": 471,
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE"
              },
              {
                "link": 474,
                "localized_name": "clip_vision_output",
                "name": "clip_vision_output",
                "shape": 7,
                "type": "CLIP_VISION_OUTPUT"
              },
              {
                "link": 475,
                "localized_name": "reference_image",
                "name": "reference_image",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 459,
                "localized_name": "face_video",
                "name": "face_video",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 461,
                "localized_name": "pose_video",
                "name": "pose_video",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 419,
                "localized_name": "background_video",
                "name": "background_video",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 418,
                "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": 450,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 451,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              },
              {
                "link": 841,
                "localized_name": "length",
                "name": "length",
                "type": "INT",
                "widget": {
                  "name": "length"
                }
              }
            ],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  154
                ],
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "links": [
                  155
                ],
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "links": [
                  156
                ],
                "localized_name": "latent",
                "name": "latent",
                "type": "LATENT"
              },
              {
                "links": [
                  152
                ],
                "localized_name": "trim_latent",
                "name": "trim_latent",
                "type": "INT"
              },
              {
                "links": [
                  442
                ],
                "localized_name": "trim_image",
                "name": "trim_image",
                "type": "INT"
              },
              {
                "links": [
                  439
                ],
                "localized_name": "video_frame_offset",
                "name": "video_frame_offset",
                "type": "INT"
              }
            ],
            "pos": [
              -100,
              -50
            ],
            "properties": {
              "Node name for S&R": "WanAnimateToVideo",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              324.73958333333337,
              399.6875
            ],
            "type": "WanAnimateToVideo",
            "widgets_values": [
              832,
              480,
              77,
              1,
              5,
              0
            ]
          },
          {
            "flags": {},
            "id": 63,
            "inputs": [
              {
                "link": 454,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": 154,
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "link": 155,
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "link": 156,
                "localized_name": "latent_image",
                "name": "latent_image",
                "type": "LATENT"
              },
              {
                "link": 478,
                "localized_name": "seed",
                "name": "seed",
                "type": "INT",
                "widget": {
                  "name": "seed"
                }
              },
              {
                "link": 479,
                "localized_name": "steps",
                "name": "steps",
                "type": "INT",
                "widget": {
                  "name": "steps"
                }
              },
              {
                "link": 480,
                "localized_name": "cfg",
                "name": "cfg",
                "type": "FLOAT",
                "widget": {
                  "name": "cfg"
                }
              },
              {
                "link": 481,
                "localized_name": "sampler_name",
                "name": "sampler_name",
                "type": "COMBO",
                "widget": {
                  "name": "sampler_name"
                }
              },
              {
                "link": 482,
                "localized_name": "scheduler",
                "name": "scheduler",
                "type": "COMBO",
                "widget": {
                  "name": "scheduler"
                }
              }
            ],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  157
                ],
                "localized_name": "LATENT",
                "name": "LATENT",
                "type": "LATENT"
              }
            ],
            "pos": [
              300,
              -60
            ],
            "properties": {
              "Node name for S&R": "KSampler",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              270,
              262
            ],
            "type": "KSampler",
            "widgets_values": [
              1106558644923357,
              "randomize",
              6,
              1,
              "euler",
              "simple",
              1
            ]
          },
          {
            "flags": {},
            "id": 58,
            "inputs": [
              {
                "link": 127,
                "localized_name": "samples",
                "name": "samples",
                "type": "LATENT"
              },
              {
                "link": 464,
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE"
              }
            ],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  187,
                  208,
                  440
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "slot_index": 0,
                "type": "IMAGE"
              }
            ],
            "pos": [
              650,
              80
            ],
            "properties": {
              "Node name for S&R": "VAEDecode",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              209.98697916666669,
              59.8046875
            ],
            "type": "VAEDecode",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 230,
            "inputs": [
              {
                "link": 440,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 442,
                "localized_name": "batch_index",
                "name": "batch_index",
                "type": "INT",
                "widget": {
                  "name": "batch_index"
                }
              }
            ],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": [
                  441
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              610,
              220
            ],
            "properties": {
              "Node name for S&R": "ImageFromBatch",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              269.97395833333337,
              93.125
            ],
            "type": "ImageFromBatch",
            "widgets_values": [
              0,
              4096
            ]
          },
          {
            "flags": {},
            "id": 15,
            "inputs": [
              {
                "link": 441,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "link": 463,
                "localized_name": "audio",
                "name": "audio",
                "shape": 7,
                "type": "AUDIO"
              },
              {
                "link": 477,
                "localized_name": "fps",
                "name": "fps",
                "type": "FLOAT",
                "widget": {
                  "name": "fps"
                }
              }
            ],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  17
                ],
                "localized_name": "VIDEO",
                "name": "VIDEO",
                "type": "VIDEO"
              }
            ],
            "pos": [
              940,
              -30
            ],
            "properties": {
              "Node name for S&R": "CreateVideo",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              269.97395833333337,
              86.45833333333334
            ],
            "type": "CreateVideo",
            "widgets_values": [
              30
            ]
          },
          {
            "flags": {},
            "id": 57,
            "inputs": [
              {
                "link": 157,
                "localized_name": "samples",
                "name": "samples",
                "type": "LATENT"
              },
              {
                "link": 152,
                "localized_name": "trim_amount",
                "name": "trim_amount",
                "type": "INT",
                "widget": {
                  "name": "trim_amount"
                }
              }
            ],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  127
                ],
                "localized_name": "LATENT",
                "name": "LATENT",
                "type": "LATENT"
              }
            ],
            "pos": [
              630,
              -60
            ],
            "properties": {
              "Node name for S&R": "TrimVideoLatent",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              269.97395833333337,
              66.47135416666667
            ],
            "type": "TrimVideoLatent",
            "widgets_values": [
              0
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            1370,
            -90,
            147.935546875,
            100
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "321201d9-6a87-48bc-a8e3-2d13f32a546f",
            "linkIds": [
              17
            ],
            "localized_name": "VIDEO",
            "name": "VIDEO",
            "pos": [
              1390,
              -70
            ],
            "type": "VIDEO"
          },
          {
            "id": "bc8f831d-427d-4b69-9bfc-50760cbb1ee4",
            "linkIds": [
              187,
              208
            ],
            "localized_name": "IMAGE",
            "name": "IMAGE",
            "pos": [
              1390,
              -50
            ],
            "type": "IMAGE"
          },
          {
            "id": "2b09b619-743f-45f6-a120-44694d4018b6",
            "linkIds": [
              439
            ],
            "localized_name": "video_frame_offset",
            "name": "video_frame_offset",
            "pos": [
              1390,
              -30
            ],
            "type": "INT"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 16,
          "lastLinkId": 851,
          "lastNodeId": 348,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      },
      {
        "config": {},
        "extra": {
          "workflowRendererVersion": "LG"
        },
        "groups": [],
        "id": "b396d3e6-70cc-4a91-81db-6e0399a4edb6",
        "inputNode": {
          "bounding": [
            -3390,
            193,
            135.044921875,
            180
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "25fb7bfd-a9a1-4010-8157-ebb4189f5b6b",
            "linkIds": [
              814,
              815,
              816,
              830
            ],
            "localized_name": "fps",
            "name": "fps",
            "pos": [
              -3274.955078125,
              213
            ],
            "type": "FLOAT"
          },
          {
            "id": "76dce9c4-abcd-4673-b334-8024f29d7f2c",
            "label": "input_video",
            "linkIds": [
              817
            ],
            "localized_name": "image",
            "name": "image",
            "pos": [
              -3274.955078125,
              233
            ],
            "type": "IMAGE"
          },
          {
            "id": "af1f4478-1474-4fee-82f8-54e9629ffdc3",
            "linkIds": [
              818,
              826,
              488
            ],
            "localized_name": "width",
            "name": "width",
            "pos": [
              -3274.955078125,
              253
            ],
            "type": "INT"
          },
          {
            "id": "9deefdcb-b80b-4a53-9f32-f06dfcb0db51",
            "linkIds": [
              819,
              827,
              489
            ],
            "localized_name": "height",
            "name": "height",
            "pos": [
              -3274.955078125,
              273
            ],
            "type": "INT"
          },
          {
            "id": "2ce7897d-0ab4-471e-953f-cf56c9b6e56c",
            "label": "reference_image",
            "linkIds": [
              825
            ],
            "localized_name": "image_1",
            "name": "image_1",
            "pos": [
              -3274.955078125,
              293
            ],
            "type": "IMAGE"
          },
          {
            "id": "4e14fccf-94c0-4712-8765-8d33a01d9c32",
            "linkIds": [
              838
            ],
            "name": "text",
            "pos": [
              -3274.955078125,
              313
            ],
            "type": "STRING"
          },
          {
            "id": "4b92d741-4d26-4961-8bce-7428bfbb1e34",
            "linkIds": [
              842
            ],
            "name": "length",
            "pos": [
              -3274.955078125,
              333
            ],
            "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": 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": 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": 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": 477,
            "origin_id": 60,
            "origin_slot": 0,
            "target_id": 232,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 479,
            "origin_id": 3,
            "origin_slot": 0,
            "target_id": 232,
            "target_slot": 2,
            "type": "VAE"
          },
          {
            "id": 480,
            "origin_id": 21,
            "origin_slot": 0,
            "target_id": 232,
            "target_slot": 3,
            "type": "CONDITIONING"
          },
          {
            "id": 481,
            "origin_id": 1,
            "origin_slot": 0,
            "target_id": 232,
            "target_slot": 4,
            "type": "CONDITIONING"
          },
          {
            "id": 482,
            "origin_id": 9,
            "origin_slot": 0,
            "target_id": 232,
            "target_slot": 5,
            "type": "CLIP_VISION_OUTPUT"
          },
          {
            "id": 828,
            "origin_id": 342,
            "origin_slot": 0,
            "target_id": 232,
            "target_slot": 6,
            "type": "IMAGE"
          },
          {
            "id": 822,
            "origin_id": 334,
            "origin_slot": 1,
            "target_id": 232,
            "target_slot": 7,
            "type": "IMAGE"
          },
          {
            "id": 831,
            "origin_id": 335,
            "origin_slot": 0,
            "target_id": 232,
            "target_slot": 8,
            "type": "IMAGE"
          },
          {
            "id": 712,
            "origin_id": 279,
            "origin_slot": 0,
            "target_id": 232,
            "target_slot": 14,
            "type": "INT"
          },
          {
            "id": 808,
            "origin_id": 334,
            "origin_slot": 0,
            "target_id": 335,
            "target_slot": 0,
            "type": "POSEDATA"
          },
          {
            "id": 820,
            "origin_id": 325,
            "origin_slot": 0,
            "target_id": 321,
            "target_slot": 0,
            "type": "*"
          },
          {
            "id": 821,
            "origin_id": 332,
            "origin_slot": 0,
            "target_id": 322,
            "target_slot": 0,
            "type": "*"
          },
          {
            "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": 830,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 232,
            "target_slot": 13,
            "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": 488,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 232,
            "target_slot": 11,
            "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": 489,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 232,
            "target_slot": 12,
            "type": "INT"
          },
          {
            "id": 825,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 342,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 490,
            "origin_id": 232,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "VIDEO"
          },
          {
            "id": 836,
            "origin_id": 322,
            "origin_slot": 0,
            "target_id": 232,
            "target_slot": 9,
            "type": "IMAGE"
          },
          {
            "id": 837,
            "origin_id": 321,
            "origin_slot": 0,
            "target_id": 232,
            "target_slot": 10,
            "type": "MASK"
          },
          {
            "id": 838,
            "origin_id": -10,
            "origin_slot": 5,
            "target_id": 21,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 842,
            "origin_id": -10,
            "origin_slot": 6,
            "target_id": 232,
            "target_slot": 15,
            "type": "INT"
          },
          {
            "id": 845,
            "origin_id": 338,
            "origin_slot": 0,
            "target_id": 348,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 846,
            "origin_id": 348,
            "origin_slot": 0,
            "target_id": 334,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 847,
            "origin_id": 348,
            "origin_slot": 0,
            "target_id": 335,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 848,
            "origin_id": 348,
            "origin_slot": 1,
            "target_id": 334,
            "target_slot": 4,
            "type": "INT"
          },
          {
            "id": 849,
            "origin_id": 348,
            "origin_slot": 1,
            "target_id": 335,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 850,
            "origin_id": 338,
            "origin_slot": 0,
            "target_id": 334,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 851,
            "origin_id": 338,
            "origin_slot": 0,
            "target_id": 326,
            "target_slot": 1,
            "type": "IMAGE"
          }
        ],
        "name": "Wan 2.2 Animate - Character Replace",
        "nodes": [
          {
            "bgcolor": "#533",
            "color": "#322",
            "flags": {},
            "id": 1,
            "inputs": [
              {
                "link": 1,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              }
            ],
            "mode": 0,
            "order": 8,
            "outputs": [
              {
                "links": [
                  481
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "slot_index": 0,
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              -2080,
              -270
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              425.2604166666667,
              180.59895833333334
            ],
            "title": "CLIP Text Encode (Negative Prompt)",
            "type": "CLIPTextEncode",
            "widgets_values": [
              "色调艳丽，过曝，静态，细节模糊不清，字幕，风格，作品，画作，画面，静止，整体发灰，最差质量，低质量，JPEG压缩残留，丑陋的，残缺的，多余的手指，画得不好的手部，画得不好的脸部，畸形的，毁容的，形态畸形的肢体，手指融合，静止不动的画面，杂乱的背景，三条腿，背景人很多，倒着走"
            ]
          },
          {
            "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": [
              -2480,
              -510
            ],
            "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": [
              306.25,
              116.4453125
            ],
            "type": "LoraLoaderModelOnly",
            "widgets_values": [
              "WanAnimate_relight_lora_fp16.safetensors",
              1
            ]
          },
          {
            "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": [
                  482
                ],
                "localized_name": "CLIP_VISION_OUTPUT",
                "name": "CLIP_VISION_OUTPUT",
                "slot_index": 0,
                "type": "CLIP_VISION_OUTPUT"
              }
            ],
            "pos": [
              -2009.999724152921,
              -10.000007301786505
            ],
            "properties": {
              "Node name for S&R": "CLIPVisionEncode",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              253.515625,
              88.671875
            ],
            "type": "CLIPVisionEncode",
            "widgets_values": [
              "none"
            ]
          },
          {
            "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": 0,
            "order": 29,
            "outputs": [
              {
                "links": [
                  799
                ],
                "localized_name": "VIDEO",
                "name": "VIDEO",
                "type": "VIDEO"
              }
            ],
            "pos": [
              -950,
              490
            ],
            "properties": {
              "Node name for S&R": "CreateVideo"
            },
            "size": [
              269.921875,
              86.45833333333334
            ],
            "type": "CreateVideo",
            "widgets_values": [
              30
            ]
          },
          {
            "flags": {},
            "id": 330,
            "inputs": [
              {
                "link": 799,
                "localized_name": "video",
                "name": "video",
                "type": "VIDEO"
              }
            ],
            "mode": 0,
            "order": 21,
            "outputs": [],
            "pos": [
              -950,
              610
            ],
            "properties": {
              "Node name for S&R": "SaveVideo"
            },
            "size": [
              269.921875,
              577.9947916666667
            ],
            "type": "SaveVideo",
            "widgets_values": [
              "video/ComfyUI",
              "auto",
              "auto"
            ]
          },
          {
            "flags": {},
            "id": 331,
            "inputs": [
              {
                "link": 800,
                "localized_name": "video",
                "name": "video",
                "type": "VIDEO"
              }
            ],
            "mode": 0,
            "order": 22,
            "outputs": [],
            "pos": [
              -670,
              610
            ],
            "properties": {
              "Node name for S&R": "SaveVideo"
            },
            "size": [
              269.921875,
              577.9947916666667
            ],
            "type": "SaveVideo",
            "widgets_values": [
              "video/ComfyUI",
              "auto",
              "auto"
            ]
          },
          {
            "flags": {},
            "id": 335,
            "inputs": [
              {
                "link": 808,
                "localized_name": "pose_data",
                "name": "pose_data",
                "type": "POSEDATA"
              },
              {
                "link": 847,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 849,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              }
            ],
            "mode": 0,
            "order": 26,
            "outputs": [
              {
                "links": [
                  813,
                  831
                ],
                "localized_name": "pose_images",
                "name": "pose_images",
                "type": "IMAGE"
              }
            ],
            "pos": [
              -1783.194230162341,
              592.886517661592
            ],
            "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": [
              269.921875,
              216.40625
            ],
            "type": "DrawViTPose",
            "widgets_values": [
              832,
              480,
              16,
              -1,
              -1,
              "True"
            ]
          },
          {
            "flags": {},
            "id": 322,
            "inputs": [
              {
                "link": 821,
                "name": "",
                "type": "*"
              }
            ],
            "mode": 0,
            "order": 16,
            "outputs": [
              {
                "links": [
                  836
                ],
                "name": "",
                "type": "IMAGE"
              }
            ],
            "pos": [
              -1359.9996104113648,
              59.99989097295298
            ],
            "properties": {
              "horizontal": false,
              "showOutputText": false
            },
            "size": [
              75,
              26
            ],
            "type": "Reroute"
          },
          {
            "flags": {},
            "id": 321,
            "inputs": [
              {
                "link": 820,
                "name": "",
                "type": "*"
              }
            ],
            "mode": 0,
            "order": 15,
            "outputs": [
              {
                "links": [
                  837
                ],
                "name": "",
                "type": "MASK"
              }
            ],
            "pos": [
              -1359.9996104113648,
              99.99996472376685
            ],
            "properties": {
              "horizontal": false,
              "showOutputText": false
            },
            "size": [
              75,
              26
            ],
            "type": "Reroute"
          },
          {
            "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": 0,
            "order": 28,
            "outputs": [
              {
                "links": [
                  800
                ],
                "localized_name": "VIDEO",
                "name": "VIDEO",
                "type": "VIDEO"
              }
            ],
            "pos": [
              -670,
              490
            ],
            "properties": {
              "Node name for S&R": "CreateVideo"
            },
            "size": [
              269.921875,
              86.45833333333334
            ],
            "type": "CreateVideo",
            "widgets_values": [
              30
            ]
          },
          {
            "flags": {},
            "id": 329,
            "inputs": [
              {
                "link": 798,
                "localized_name": "video",
                "name": "video",
                "type": "VIDEO"
              }
            ],
            "mode": 0,
            "order": 20,
            "outputs": [],
            "pos": [
              -1230,
              610
            ],
            "properties": {
              "Node name for S&R": "SaveVideo"
            },
            "size": [
              270,
              570
            ],
            "type": "SaveVideo",
            "widgets_values": [
              "video/ComfyUI",
              "auto",
              "auto"
            ]
          },
          {
            "flags": {},
            "id": 334,
            "inputs": [
              {
                "link": 804,
                "localized_name": "model",
                "name": "model",
                "type": "POSEMODEL"
              },
              {
                "link": 850,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "retarget_image",
                "name": "retarget_image",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 846,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 848,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              }
            ],
            "mode": 0,
            "order": 25,
            "outputs": [
              {
                "links": [
                  808
                ],
                "localized_name": "pose_data",
                "name": "pose_data",
                "type": "POSEDATA"
              },
              {
                "links": [
                  803,
                  822
                ],
                "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": [
              -1800,
              330
            ],
            "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": [
              313.02083333333337,
              193.09895833333334
            ],
            "type": "PoseAndFaceDetection",
            "widgets_values": [
              832,
              480
            ]
          },
          {
            "flags": {},
            "id": 326,
            "inputs": [
              {
                "link": 794,
                "localized_name": "sam2_model",
                "name": "sam2_model",
                "type": "SAM2MODEL"
              },
              {
                "link": 851,
                "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": 18,
            "outputs": [
              {
                "links": [
                  797
                ],
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "pos": [
              -2440,
              1070
            ],
            "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": [
              272.00520833333337,
              206.40625
            ],
            "type": "Sam2Segmentation",
            "widgets_values": [
              false,
              false
            ]
          },
          {
            "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": 0,
            "order": 24,
            "outputs": [
              {
                "links": [
                  798
                ],
                "localized_name": "VIDEO",
                "name": "VIDEO",
                "type": "VIDEO"
              }
            ],
            "pos": [
              -1230,
              490
            ],
            "properties": {
              "Node name for S&R": "CreateVideo"
            },
            "size": [
              269.921875,
              86.45833333333334
            ],
            "type": "CreateVideo",
            "widgets_values": [
              30
            ]
          },
          {
            "bgcolor": "#653",
            "color": "#432",
            "flags": {},
            "id": 336,
            "inputs": [],
            "mode": 0,
            "order": 7,
            "outputs": [],
            "pos": [
              -2240,
              570
            ],
            "properties": {
              "ue_properties": {
                "input_ue_unconnectable": {},
                "version": "7.3",
                "widget_ue_connectable": {}
              }
            },
            "size": [
              236.06770833333334,
              88
            ],
            "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": 27,
            "outputs": [
              {
                "links": [
                  801,
                  845,
                  850,
                  851
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              -2580,
              370
            ],
            "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": [
              269.921875,
              170.859375
            ],
            "title": "Resize Input Video",
            "type": "ImageScale",
            "widgets_values": [
              "lanczos",
              832,
              480,
              "center"
            ]
          },
          {
            "flags": {},
            "id": 348,
            "inputs": [
              {
                "link": 845,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 31,
            "outputs": [
              {
                "links": [
                  846,
                  847
                ],
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "links": [
                  848,
                  849
                ],
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "batch_size",
                "name": "batch_size",
                "type": "INT"
              }
            ],
            "pos": [
              -2230,
              370
            ],
            "properties": {
              "Node name for S&R": "GetImageSize"
            },
            "size": [
              140,
              66
            ],
            "type": "GetImageSize"
          },
          {
            "flags": {},
            "id": 328,
            "inputs": [],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": [
                  804
                ],
                "localized_name": "model",
                "name": "model",
                "type": "POSEMODEL"
              }
            ],
            "pos": [
              -3180,
              370
            ],
            "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": [
              351.4322916666667,
              146.41927083333334
            ],
            "type": "OnnxDetectionModelLoader",
            "widgets_values": [
              "vitpose-l-wholebody.onnx",
              "yolov10m.onnx",
              "CUDAExecutionProvider"
            ]
          },
          {
            "flags": {},
            "id": 324,
            "inputs": [],
            "mode": 0,
            "order": 6,
            "outputs": [
              {
                "links": [
                  794
                ],
                "localized_name": "sam2_model",
                "name": "sam2_model",
                "type": "SAM2MODEL"
              }
            ],
            "pos": [
              -3140,
              1070
            ],
            "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": [
              334.375,
              176.40625
            ],
            "type": "DownloadAndLoadSAM2Model",
            "widgets_values": [
              "sam2.1_hiera_base_plus.safetensors",
              "video",
              "cuda",
              "fp16"
            ]
          },
          {
            "flags": {},
            "id": 325,
            "inputs": [
              {
                "link": 793,
                "localized_name": "masks",
                "name": "masks",
                "type": "MASK"
              }
            ],
            "mode": 0,
            "order": 17,
            "outputs": [
              {
                "links": [
                  802,
                  820
                ],
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "pos": [
              -1760,
              1060
            ],
            "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": [
              290,
              82
            ],
            "type": "BlockifyMask",
            "widgets_values": [
              32,
              "cpu"
            ]
          },
          {
            "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": 23,
            "outputs": [
              {
                "links": [
                  812,
                  821
                ],
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              }
            ],
            "pos": [
              -1750,
              1230
            ],
            "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": [
              280,
              102
            ],
            "type": "DrawMaskOnImage",
            "widgets_values": [
              "0, 0, 0",
              "cpu"
            ]
          },
          {
            "flags": {},
            "id": 327,
            "inputs": [
              {
                "link": 797,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "mode": 0,
            "order": 19,
            "outputs": [
              {
                "links": [
                  793
                ],
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              },
              {
                "links": [],
                "localized_name": "mask_inverted",
                "name": "mask_inverted",
                "type": "MASK"
              }
            ],
            "pos": [
              -2100,
              1070
            ],
            "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": [
              290,
              246
            ],
            "type": "GrowMaskWithBlur",
            "widgets_values": [
              10,
              0,
              true,
              false,
              0,
              1,
              1,
              false
            ]
          },
          {
            "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": 30,
            "outputs": [
              {
                "links": [
                  828,
                  829
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              -3190,
              -140
            ],
            "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": [
              269.921875,
              170.859375
            ],
            "title": "Resize Reference Image",
            "type": "ImageScale",
            "widgets_values": [
              "lanczos",
              832,
              480,
              "center"
            ]
          },
          {
            "flags": {},
            "id": 20,
            "inputs": [],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  16
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "slot_index": 0,
                "type": "MODEL"
              }
            ],
            "pos": [
              -2480,
              -790
            ],
            "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": [
              306.25,
              98.671875
            ],
            "type": "UNETLoader",
            "widgets_values": [
              "Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors",
              "default"
            ]
          },
          {
            "flags": {},
            "id": 2,
            "inputs": [],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  1,
                  18
                ],
                "localized_name": "CLIP",
                "name": "CLIP",
                "slot_index": 0,
                "type": "CLIP"
              }
            ],
            "pos": [
              -2480,
              -340
            ],
            "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": [
              306.25,
              127.5390625
            ],
            "type": "CLIPLoader",
            "widgets_values": [
              "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
              "wan",
              "default"
            ]
          },
          {
            "flags": {},
            "id": 3,
            "inputs": [],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  479
                ],
                "localized_name": "VAE",
                "name": "VAE",
                "slot_index": 0,
                "type": "VAE"
              }
            ],
            "pos": [
              -2480,
              -160
            ],
            "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": [
              306.25,
              69.79166666666667
            ],
            "type": "VAELoader",
            "widgets_values": [
              "wan_2.1_vae.safetensors"
            ]
          },
          {
            "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": [
              -2480,
              -30
            ],
            "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": [
              306.25,
              69.79166666666667
            ],
            "type": "CLIPVisionLoader",
            "widgets_values": [
              "clip_vision_h.safetensors"
            ]
          },
          {
            "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": [
                  480
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "slot_index": 0,
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              -2080,
              -560
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              419.921875,
              229.94791666666669
            ],
            "title": "CLIP Text Encode (Positive Prompt)",
            "type": "CLIPTextEncode",
            "widgets_values": [
              "the person is dancing"
            ]
          },
          {
            "flags": {},
            "id": 60,
            "inputs": [
              {
                "link": 227,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              }
            ],
            "mode": 0,
            "order": 11,
            "outputs": [
              {
                "links": [
                  477
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "slot_index": 0,
                "type": "MODEL"
              }
            ],
            "pos": [
              -1610,
              -670
            ],
            "properties": {
              "Node name for S&R": "ModelSamplingSD3",
              "cnr_id": "comfy-core",
              "ver": "0.3.59"
            },
            "size": [
              314.97395833333337,
              66.47135416666667
            ],
            "type": "ModelSamplingSD3",
            "widgets_values": [
              8
            ]
          },
          {
            "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": [
              -2480,
              -650
            ],
            "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": [
              300,
              82
            ],
            "type": "LoraLoaderModelOnly",
            "widgets_values": [
              "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
              1
            ]
          },
          {
            "flags": {},
            "id": 279,
            "inputs": [],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  712
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              }
            ],
            "pos": [
              -1440,
              -260
            ],
            "properties": {
              "Node name for S&R": "PrimitiveInt",
              "cnr_id": "comfy-core",
              "ver": "0.3.60"
            },
            "size": [
              269.921875,
              82
            ],
            "title": "Seed",
            "type": "PrimitiveInt",
            "widgets_values": [
              281253459907758,
              "randomize"
            ]
          },
          {
            "flags": {},
            "id": 232,
            "inputs": [
              {
                "link": 477,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": null,
                "localized_name": "audio",
                "name": "audio",
                "type": "AUDIO"
              },
              {
                "link": 479,
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE"
              },
              {
                "link": 480,
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "link": 481,
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "link": 482,
                "localized_name": "clip_vision_output",
                "name": "clip_vision_output",
                "type": "CLIP_VISION_OUTPUT"
              },
              {
                "link": 828,
                "localized_name": "reference_image",
                "name": "reference_image",
                "type": "IMAGE"
              },
              {
                "link": 822,
                "localized_name": "face_video",
                "name": "face_video",
                "type": "IMAGE"
              },
              {
                "link": 831,
                "localized_name": "pose_video",
                "name": "pose_video",
                "type": "IMAGE"
              },
              {
                "link": 836,
                "localized_name": "background_video",
                "name": "background_video",
                "type": "IMAGE"
              },
              {
                "link": 837,
                "localized_name": "character_mask",
                "name": "character_mask",
                "type": "MASK"
              },
              {
                "link": 488,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 489,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              },
              {
                "link": 830,
                "name": "fps",
                "type": "FLOAT",
                "widget": {
                  "name": "fps"
                }
              },
              {
                "link": 712,
                "name": "seed",
                "type": "INT",
                "widget": {
                  "name": "seed"
                }
              },
              {
                "link": 842,
                "name": "length",
                "type": "INT",
                "widget": {
                  "name": "length"
                }
              }
            ],
            "mode": 0,
            "order": 14,
            "outputs": [
              {
                "links": [
                  490
                ],
                "localized_name": "VIDEO",
                "name": "VIDEO",
                "type": "VIDEO"
              },
              {
                "links": [],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              },
              {
                "links": [],
                "localized_name": "video_frame_offset",
                "name": "video_frame_offset",
                "type": "INT"
              }
            ],
            "pos": [
              -1069.999583454171,
              -556.51262746475
            ],
            "properties": {
              "cnr_id": "comfy-core",
              "proxyWidgets": [
                [
                  "-1",
                  "width"
                ],
                [
                  "-1",
                  "height"
                ],
                [
                  "-1",
                  "fps"
                ],
                [
                  "-1",
                  "seed"
                ],
                [
                  "-1",
                  "steps"
                ],
                [
                  "-1",
                  "cfg"
                ],
                [
                  "-1",
                  "sampler_name"
                ],
                [
                  "-1",
                  "scheduler"
                ],
                [
                  "-1",
                  "length"
                ]
              ],
              "ver": "0.3.60"
            },
            "size": [
              450,
              820
            ],
            "type": "90db3fa1-b7fd-4c97-90a4-3e9533589dce",
            "widgets_values": [
              832,
              480,
              30,
              1106558644923357,
              6,
              1,
              "euler",
              "simple",
              77
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            -550,
            232.99999999999997,
            120,
            60.00000000000003
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "fb94f0e7-6131-4db5-ac54-675007832f69",
            "linkIds": [
              490
            ],
            "localized_name": "VIDEO",
            "name": "VIDEO",
            "pos": [
              -530,
              252.99999999999997
            ],
            "type": "VIDEO"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 16,
          "lastLinkId": 851,
          "lastNodeId": 348,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      }
    ]
  },
  "extra": {
    "VHS_KeepIntermediate": true,
    "VHS_MetadataImage": true,
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "ds": {
      "offset": [
        5144.437805290908,
        1068.743024319068
      ],
      "scale": 0.5034467868063119
    },
    "frontendVersion": "1.40.10",
    "workflowRendererVersion": "LG"
  },
  "groups": [],
  "id": "ba1df054-50a8-4da2-b45a-25b4dde3cc2f",
  "last_link_id": 851,
  "last_node_id": 348,
  "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"
    ],
    [
      838,
      10,
      0,
      344,
      4,
      "IMAGE"
    ],
    [
      839,
      344,
      0,
      19,
      0,
      "VIDEO"
    ],
    [
      844,
      301,
      1,
      344,
      5,
      "INT"
    ]
  ],
  "nodes": [
    {
      "flags": {
        "collapsed": false
      },
      "id": 314,
      "inputs": [
        {
          "link": 769,
          "name": "video_info",
          "type": "VHS_VIDEOINFO"
        }
      ],
      "mode": 0,
      "order": 5,
      "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": [
        -3243.3333333333335,
        -335
      ],
      "properties": {
        "Node name for S&R": "VHS_VideoInfo"
      },
      "size": [
        255.078125,
        239.73958333333334
      ],
      "type": "VHS_VideoInfo",
      "widgets_values": {}
    },
    {
      "flags": {},
      "id": 10,
      "inputs": [],
      "mode": 0,
      "order": 0,
      "outputs": [
        {
          "links": [
            838
          ],
          "name": "IMAGE",
          "slot_index": 0,
          "type": "IMAGE"
        },
        {
          "links": null,
          "name": "MASK",
          "slot_index": 1,
          "type": "MASK"
        }
      ],
      "pos": [
        -3870,
        -70
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        339.97395833333337,
        439.97395833333337
      ],
      "title": "Reference Image",
      "type": "LoadImage",
      "widgets_values": [
        "old_man_dancing.jpg",
        "image"
      ]
    },
    {
      "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": 838,
          "name": "image_1",
          "type": "IMAGE"
        },
        {
          "link": 844,
          "name": "length",
          "type": "INT",
          "widget": {
            "name": "length"
          }
        }
      ],
      "mode": 0,
      "order": 6,
      "outputs": [
        {
          "links": [
            839
          ],
          "name": "VIDEO",
          "type": "VIDEO"
        }
      ],
      "pos": [
        -2968.3333333333335,
        -335
      ],
      "properties": {
        "proxyWidgets": [
          [
            "-1",
            "fps"
          ],
          [
            "-1",
            "width"
          ],
          [
            "-1",
            "height"
          ],
          [
            "-1",
            "text"
          ],
          [
            "-1",
            "length"
          ]
        ]
      },
      "size": [
        319.0104166666667,
        484.0104166666667
      ],
      "type": "b396d3e6-70cc-4a91-81db-6e0399a4edb6",
      "widgets_values": [
        30,
        832,
        480,
        "the person is dancing",
        77
      ]
    },
    {
      "flags": {},
      "id": 160,
      "inputs": [],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            837
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        -3870,
        -210
      ],
      "properties": {
        "Node name for S&R": "PrimitiveInt",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        330,
        82
      ],
      "title": "Height",
      "type": "PrimitiveInt",
      "widgets_values": [
        720,
        "fixed"
      ]
    },
    {
      "flags": {},
      "id": 159,
      "inputs": [],
      "mode": 0,
      "order": 2,
      "outputs": [
        {
          "links": [
            836
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        -3870,
        -340
      ],
      "properties": {
        "Node name for S&R": "PrimitiveInt",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        330,
        82
      ],
      "title": "Width",
      "type": "PrimitiveInt",
      "widgets_values": [
        720,
        "fixed"
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#222",
      "flags": {},
      "id": 347,
      "inputs": [],
      "mode": 0,
      "order": 3,
      "outputs": [],
      "pos": [
        -4450,
        -340
      ],
      "properties": {},
      "size": [
        546.484375,
        1037.890625
      ],
      "title": "🎬 Wan 2.2 Animate – Automated Character Replace Workflow",
      "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."
      ]
    },
    {
      "flags": {},
      "id": 19,
      "inputs": [
        {
          "link": 839,
          "name": "video",
          "type": "VIDEO"
        }
      ],
      "mode": 0,
      "order": 7,
      "outputs": [],
      "pos": [
        -2610,
        -340
      ],
      "properties": {
        "Node name for S&R": "SaveVideo",
        "cnr_id": "comfy-core",
        "ver": "0.3.59"
      },
      "size": [
        459.89583333333337,
        915.7552083333334
      ],
      "type": "SaveVideo",
      "widgets_values": [
        "video/ComfyUI",
        "auto",
        "auto"
      ]
    },
    {
      "flags": {},
      "id": 301,
      "inputs": [
        {
          "link": null,
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager"
        },
        {
          "link": null,
          "name": "vae",
          "shape": 7,
          "type": "VAE"
        }
      ],
      "mode": 0,
      "order": 4,
      "outputs": [
        {
          "links": [
            835
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": [
            844
          ],
          "name": "frame_count",
          "type": "INT"
        },
        {
          "links": null,
          "name": "audio",
          "type": "AUDIO"
        },
        {
          "links": [
            769
          ],
          "name": "video_info",
          "type": "VHS_VIDEOINFO"
        }
      ],
      "pos": [
        -3510,
        -335
      ],
      "properties": {
        "Node name for S&R": "VHS_LoadVideo"
      },
      "size": [
        247.39583333333334,
        310
      ],
      "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": "wan22-animate-auto-character_replace-input.mp4",
        "videopreview": {
          "hidden": false,
          "params": {
            "custom_height": 0,
            "custom_width": 0,
            "filename": "wan22-animate-auto-character_replace-input.mp4",
            "force_rate": 0,
            "format": "video/mp4",
            "frame_load_cap": 0,
            "select_every_nth": 1,
            "skip_first_frames": 0,
            "type": "input"
          },
          "paused": false
        }
      }
    }
  ],
  "revision": 0,
  "version": 0.4
}