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