{
  "config": {},
  "definitions": {
    "subgraphs": [
      {
        "config": {},
        "extra": {},
        "groups": [
          {
            "bounding": [
              240,
              3100,
              710,
              1270
            ],
            "color": "#3f789e",
            "flags": {},
            "id": 3,
            "title": "Models"
          },
          {
            "bounding": [
              980,
              3100,
              570,
              1270
            ],
            "color": "#3f789e",
            "flags": {},
            "id": 4,
            "title": "Prompt"
          },
          {
            "bounding": [
              2730,
              3100,
              660,
              1270
            ],
            "color": "#3f789e",
            "flags": {},
            "id": 5,
            "title": "Sampling"
          },
          {
            "bounding": [
              1580,
              3100,
              420,
              1270
            ],
            "color": "#3f789e",
            "flags": {},
            "id": 6,
            "title": "SCAIL Conditioning"
          },
          {
            "bounding": [
              2030,
              3100,
              670,
              1270
            ],
            "color": "#3f789e",
            "flags": {},
            "id": 9,
            "title": "Switch Settings"
          },
          {
            "bounding": [
              2050,
              3320,
              300,
              340
            ],
            "color": "#3f789e",
            "flags": {},
            "id": 7,
            "title": "Original Settings"
          },
          {
            "bounding": [
              2050,
              3680,
              300,
              370
            ],
            "color": "#3f789e",
            "flags": {},
            "id": 8,
            "title": "Distill LoRA Settings"
          },
          {
            "bounding": [
              240,
              5230,
              1760,
              670
            ],
            "flags": {},
            "id": 10,
            "title": "Create Mask"
          },
          {
            "bounding": [
              240,
              4750,
              1760,
              450
            ],
            "flags": {},
            "id": 11,
            "title": "Resize Images"
          },
          {
            "bounding": [
              240,
              4410,
              1760,
              310
            ],
            "flags": {},
            "id": 12,
            "title": "Trim Frames from Video"
          },
          {
            "bounding": [
              2030,
              4410,
              660,
              1490
            ],
            "flags": {},
            "id": 13,
            "title": "Preview Masks"
          }
        ],
        "id": "d1ab1953-6167-4827-b44e-b4108cea5702",
        "inputNode": {
          "bounding": [
            -440,
            4190,
            173.015625,
            508
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "e9aedfaf-1991-4a75-ad9b-8c3a279b0488",
            "label": "pose_video",
            "linkIds": [
              409
            ],
            "localized_name": "video",
            "name": "video",
            "pos": [
              -290.984375,
              4214
            ],
            "type": "VIDEO"
          },
          {
            "id": "0badb26e-9abd-4e9c-b221-aab1237b8773",
            "label": "reference_image",
            "linkIds": [
              469,
              408,
              473
            ],
            "localized_name": "images",
            "name": "images",
            "pos": [
              -290.984375,
              4234
            ],
            "type": "IMAGE"
          },
          {
            "id": "098f15aa-a066-422e-b491-eaf140bafb2c",
            "label": "prompt",
            "linkIds": [
              499
            ],
            "name": "text",
            "pos": [
              -290.984375,
              4254
            ],
            "type": "STRING"
          },
          {
            "id": "861ea850-8329-491b-9413-2588cdd77bbd",
            "label": "segment_index",
            "linkIds": [
              502
            ],
            "name": "value",
            "pos": [
              -290.984375,
              4274
            ],
            "type": "INT"
          },
          {
            "id": "dcf3ebf8-1263-458a-966b-9e77a5ad704a",
            "label": "replace_mode",
            "linkIds": [
              504
            ],
            "name": "value_2",
            "pos": [
              -290.984375,
              4294
            ],
            "type": "BOOLEAN"
          },
          {
            "id": "dbee10ce-bb98-4733-88a0-d4cd5b13c691",
            "label": "width",
            "linkIds": [
              505
            ],
            "name": "value_3",
            "pos": [
              -290.984375,
              4314
            ],
            "type": "INT"
          },
          {
            "id": "363e3ac7-0096-4480-b875-1d6ff1b8a2d9",
            "label": "height",
            "linkIds": [
              506
            ],
            "name": "value_4",
            "pos": [
              -290.984375,
              4334
            ],
            "type": "INT"
          },
          {
            "id": "4017e1ed-96cd-4c1c-9949-dc1a8c30386a",
            "label": "frame_count",
            "linkIds": [
              522,
              541
            ],
            "name": "length",
            "pos": [
              -290.984375,
              4354
            ],
            "type": "INT"
          },
          {
            "id": "617809fd-9647-4067-8f44-10d8acc8af82",
            "linkIds": [
              542,
              543
            ],
            "name": "previous_frame_count",
            "pos": [
              -290.984375,
              4374
            ],
            "type": "INT"
          },
          {
            "id": "36ab49f6-528f-4301-a37a-0108aa7f5bec",
            "linkIds": [
              547
            ],
            "name": "pose_strength",
            "pos": [
              -290.984375,
              4394
            ],
            "type": "FLOAT"
          },
          {
            "id": "24c2e93f-7bbc-4c6d-898e-36b440b8469b",
            "linkIds": [
              548
            ],
            "name": "pose_start",
            "pos": [
              -290.984375,
              4414
            ],
            "type": "FLOAT"
          },
          {
            "id": "d1dbe632-bb2a-4c30-a7ea-5082f21dc686",
            "linkIds": [
              549
            ],
            "name": "pose_end",
            "pos": [
              -290.984375,
              4434
            ],
            "type": "FLOAT"
          },
          {
            "id": "ddf07ba4-2837-40ef-925f-5996ea436334",
            "label": "turbo_mode",
            "linkIds": [
              507
            ],
            "name": "value_5",
            "pos": [
              -290.984375,
              4454
            ],
            "type": "BOOLEAN"
          },
          {
            "id": "ee8c796d-b326-40c6-9f9d-65f564053974",
            "linkIds": [
              508
            ],
            "name": "unet_name",
            "pos": [
              -290.984375,
              4474
            ],
            "type": "COMBO"
          },
          {
            "id": "6ccae991-51d7-4c8e-adc8-c7f6377d681b",
            "label": "distill_lora",
            "linkIds": [
              509
            ],
            "name": "lora_name",
            "pos": [
              -290.984375,
              4494
            ],
            "type": "COMBO"
          },
          {
            "id": "30772913-ecf9-44f4-a638-2824404b24fb",
            "label": "dpo_lora",
            "linkIds": [
              565
            ],
            "name": "lora_name_1",
            "pos": [
              -290.984375,
              4514
            ],
            "type": "COMBO"
          },
          {
            "id": "2e9c2347-93fe-462f-b5ef-51613fb52c85",
            "linkIds": [
              510
            ],
            "name": "clip_name",
            "pos": [
              -290.984375,
              4534
            ],
            "type": "COMBO"
          },
          {
            "id": "bc1822c0-7484-47b7-8d59-cf94788290f7",
            "linkIds": [
              511
            ],
            "name": "vae_name",
            "pos": [
              -290.984375,
              4554
            ],
            "type": "COMBO"
          },
          {
            "id": "bbf2ee19-58b3-46f4-af6a-cd1557d60c8d",
            "label": "clip_vision",
            "linkIds": [
              512
            ],
            "name": "clip_name_1",
            "pos": [
              -290.984375,
              4574
            ],
            "type": "COMBO"
          },
          {
            "id": "556415bd-8ef3-4cfa-b182-0d7e3e4cd572",
            "label": "sam3_video_object",
            "linkIds": [
              513
            ],
            "name": "text_1",
            "pos": [
              -290.984375,
              4594
            ],
            "type": "STRING"
          },
          {
            "id": "c577930c-85a3-4e92-ac44-8ed639937217",
            "label": "sam3_image_object",
            "linkIds": [
              514
            ],
            "name": "text_2",
            "pos": [
              -290.984375,
              4614
            ],
            "type": "STRING"
          },
          {
            "id": "8f542c5e-da91-4dad-8ff8-4e81a42d5140",
            "label": "sam3_model",
            "linkIds": [
              515
            ],
            "name": "ckpt_name",
            "pos": [
              -290.984375,
              4634
            ],
            "type": "COMBO"
          },
          {
            "id": "3064d232-69a3-43b1-b350-05d8ca0e7c9f",
            "linkIds": [
              558
            ],
            "name": "noise_seed",
            "pos": [
              -290.984375,
              4654
            ],
            "type": "INT"
          }
        ],
        "links": [
          {
            "id": 491,
            "origin_id": 177,
            "origin_slot": 0,
            "target_id": 156,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 444,
            "origin_id": 180,
            "origin_slot": 1,
            "target_id": 156,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 446,
            "origin_id": 182,
            "origin_slot": 1,
            "target_id": 156,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 492,
            "origin_id": 156,
            "origin_slot": 0,
            "target_id": 163,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 424,
            "origin_id": 169,
            "origin_slot": 0,
            "target_id": 95,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 398,
            "origin_id": 11,
            "origin_slot": 0,
            "target_id": 18,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 428,
            "origin_id": 170,
            "origin_slot": 0,
            "target_id": 18,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 417,
            "origin_id": 95,
            "origin_slot": 0,
            "target_id": 19,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 333,
            "origin_id": 114,
            "origin_slot": 0,
            "target_id": 19,
            "target_slot": 1,
            "type": "CONDITIONING"
          },
          {
            "id": 334,
            "origin_id": 114,
            "origin_slot": 1,
            "target_id": 19,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 419,
            "origin_id": 27,
            "origin_slot": 0,
            "target_id": 19,
            "target_slot": 3,
            "type": "SAMPLER"
          },
          {
            "id": 418,
            "origin_id": 18,
            "origin_slot": 0,
            "target_id": 19,
            "target_slot": 4,
            "type": "SIGMAS"
          },
          {
            "id": 335,
            "origin_id": 114,
            "origin_slot": 2,
            "target_id": 19,
            "target_slot": 5,
            "type": "LATENT"
          },
          {
            "id": 431,
            "origin_id": 171,
            "origin_slot": 0,
            "target_id": 19,
            "target_slot": 8,
            "type": "FLOAT"
          },
          {
            "id": 425,
            "origin_id": 11,
            "origin_slot": 0,
            "target_id": 169,
            "target_slot": 1,
            "type": "MODEL"
          },
          {
            "id": 432,
            "origin_id": 172,
            "origin_slot": 0,
            "target_id": 169,
            "target_slot": 2,
            "type": "BOOLEAN"
          },
          {
            "id": 426,
            "origin_id": 165,
            "origin_slot": 0,
            "target_id": 170,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 427,
            "origin_id": 168,
            "origin_slot": 0,
            "target_id": 170,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 433,
            "origin_id": 172,
            "origin_slot": 0,
            "target_id": 170,
            "target_slot": 2,
            "type": "BOOLEAN"
          },
          {
            "id": 429,
            "origin_id": 166,
            "origin_slot": 0,
            "target_id": 171,
            "target_slot": 0,
            "type": "FLOAT"
          },
          {
            "id": 430,
            "origin_id": 167,
            "origin_slot": 0,
            "target_id": 171,
            "target_slot": 1,
            "type": "FLOAT"
          },
          {
            "id": 434,
            "origin_id": 172,
            "origin_slot": 0,
            "target_id": 171,
            "target_slot": 2,
            "type": "BOOLEAN"
          },
          {
            "id": 490,
            "origin_id": 157,
            "origin_slot": 0,
            "target_id": 177,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 450,
            "origin_id": 184,
            "origin_slot": 1,
            "target_id": 177,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 441,
            "origin_id": 178,
            "origin_slot": 0,
            "target_id": 180,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 445,
            "origin_id": 179,
            "origin_slot": 0,
            "target_id": 182,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 447,
            "origin_id": 183,
            "origin_slot": 0,
            "target_id": 184,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 454,
            "origin_id": 193,
            "origin_slot": 1,
            "target_id": 191,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 493,
            "origin_id": 156,
            "origin_slot": 0,
            "target_id": 196,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 458,
            "origin_id": 193,
            "origin_slot": 0,
            "target_id": 196,
            "target_slot": 1,
            "type": "MODEL"
          },
          {
            "id": 461,
            "origin_id": 191,
            "origin_slot": 0,
            "target_id": 196,
            "target_slot": 3,
            "type": "CONDITIONING"
          },
          {
            "id": 460,
            "origin_id": 196,
            "origin_slot": 0,
            "target_id": 197,
            "target_slot": 0,
            "type": "SAM3_TRACK_DATA"
          },
          {
            "id": 464,
            "origin_id": 198,
            "origin_slot": 0,
            "target_id": 197,
            "target_slot": 1,
            "type": "SAM3_TRACK_DATA"
          },
          {
            "id": 476,
            "origin_id": 203,
            "origin_slot": 0,
            "target_id": 197,
            "target_slot": 4,
            "type": "BOOLEAN"
          },
          {
            "id": 463,
            "origin_id": 193,
            "origin_slot": 0,
            "target_id": 198,
            "target_slot": 1,
            "type": "MODEL"
          },
          {
            "id": 488,
            "origin_id": 212,
            "origin_slot": 0,
            "target_id": 198,
            "target_slot": 3,
            "type": "CONDITIONING"
          },
          {
            "id": 466,
            "origin_id": 197,
            "origin_slot": 0,
            "target_id": 200,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 465,
            "origin_id": 197,
            "origin_slot": 1,
            "target_id": 199,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 124,
            "origin_id": 19,
            "origin_slot": 1,
            "target_id": 6,
            "target_slot": 0,
            "type": "LATENT"
          },
          {
            "id": 407,
            "origin_id": 7,
            "origin_slot": 0,
            "target_id": 6,
            "target_slot": 1,
            "type": "VAE"
          },
          {
            "id": 196,
            "origin_id": 75,
            "origin_slot": 0,
            "target_id": 76,
            "target_slot": 0,
            "type": "CLIP_VISION"
          },
          {
            "id": 8,
            "origin_id": 9,
            "origin_slot": 0,
            "target_id": 4,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 7,
            "origin_id": 9,
            "origin_slot": 0,
            "target_id": 3,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 325,
            "origin_id": 3,
            "origin_slot": 0,
            "target_id": 114,
            "target_slot": 0,
            "type": "CONDITIONING"
          },
          {
            "id": 326,
            "origin_id": 4,
            "origin_slot": 0,
            "target_id": 114,
            "target_slot": 1,
            "type": "CONDITIONING"
          },
          {
            "id": 406,
            "origin_id": 7,
            "origin_slot": 0,
            "target_id": 114,
            "target_slot": 2,
            "type": "VAE"
          },
          {
            "id": 420,
            "origin_id": 156,
            "origin_slot": 0,
            "target_id": 114,
            "target_slot": 3,
            "type": "IMAGE"
          },
          {
            "id": 467,
            "origin_id": 197,
            "origin_slot": 0,
            "target_id": 114,
            "target_slot": 4,
            "type": "IMAGE"
          },
          {
            "id": 472,
            "origin_id": 197,
            "origin_slot": 1,
            "target_id": 114,
            "target_slot": 6,
            "type": "IMAGE"
          },
          {
            "id": 404,
            "origin_id": 76,
            "origin_slot": 0,
            "target_id": 114,
            "target_slot": 7,
            "type": "CLIP_VISION_OUTPUT"
          },
          {
            "id": 414,
            "origin_id": 163,
            "origin_slot": 0,
            "target_id": 114,
            "target_slot": 9,
            "type": "INT"
          },
          {
            "id": 415,
            "origin_id": 163,
            "origin_slot": 1,
            "target_id": 114,
            "target_slot": 10,
            "type": "INT"
          },
          {
            "id": 416,
            "origin_id": 163,
            "origin_slot": 2,
            "target_id": 114,
            "target_slot": 11,
            "type": "INT"
          },
          {
            "id": 475,
            "origin_id": 203,
            "origin_slot": 0,
            "target_id": 114,
            "target_slot": 18,
            "type": "BOOLEAN"
          },
          {
            "id": 489,
            "origin_id": 193,
            "origin_slot": 1,
            "target_id": 212,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 409,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 157,
            "target_slot": 0,
            "type": "VIDEO"
          },
          {
            "id": 469,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 198,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 408,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 76,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 473,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 114,
            "target_slot": 5,
            "type": "IMAGE"
          },
          {
            "id": 499,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 3,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 502,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 183,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 504,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 203,
            "target_slot": 0,
            "type": "BOOLEAN"
          },
          {
            "id": 505,
            "origin_id": -10,
            "origin_slot": 5,
            "target_id": 178,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 506,
            "origin_id": -10,
            "origin_slot": 6,
            "target_id": 179,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 507,
            "origin_id": -10,
            "origin_slot": 12,
            "target_id": 172,
            "target_slot": 0,
            "type": "BOOLEAN"
          },
          {
            "id": 508,
            "origin_id": -10,
            "origin_slot": 13,
            "target_id": 154,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 509,
            "origin_id": -10,
            "origin_slot": 14,
            "target_id": 11,
            "target_slot": 1,
            "type": "COMBO"
          },
          {
            "id": 510,
            "origin_id": -10,
            "origin_slot": 16,
            "target_id": 9,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 511,
            "origin_id": -10,
            "origin_slot": 17,
            "target_id": 7,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 512,
            "origin_id": -10,
            "origin_slot": 18,
            "target_id": 75,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 513,
            "origin_id": -10,
            "origin_slot": 19,
            "target_id": 191,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 514,
            "origin_id": -10,
            "origin_slot": 20,
            "target_id": 212,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 515,
            "origin_id": -10,
            "origin_slot": 21,
            "target_id": 193,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 522,
            "origin_id": -10,
            "origin_slot": 7,
            "target_id": 177,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 541,
            "origin_id": -10,
            "origin_slot": 7,
            "target_id": 184,
            "target_slot": 1,
            "type": "FLOAT,INT,BOOLEAN"
          },
          {
            "id": 542,
            "origin_id": -10,
            "origin_slot": 8,
            "target_id": 114,
            "target_slot": 17,
            "type": "INT"
          },
          {
            "id": 543,
            "origin_id": -10,
            "origin_slot": 8,
            "target_id": 184,
            "target_slot": 2,
            "type": "FLOAT,INT,BOOLEAN"
          },
          {
            "id": 544,
            "origin_id": 6,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 547,
            "origin_id": -10,
            "origin_slot": 9,
            "target_id": 114,
            "target_slot": 13,
            "type": "FLOAT"
          },
          {
            "id": 548,
            "origin_id": -10,
            "origin_slot": 10,
            "target_id": 114,
            "target_slot": 14,
            "type": "FLOAT"
          },
          {
            "id": 549,
            "origin_id": -10,
            "origin_slot": 11,
            "target_id": 114,
            "target_slot": 15,
            "type": "FLOAT"
          },
          {
            "id": 558,
            "origin_id": -10,
            "origin_slot": 22,
            "target_id": 19,
            "target_slot": 7,
            "type": "INT"
          },
          {
            "id": 562,
            "origin_id": 154,
            "origin_slot": 0,
            "target_id": 318,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 563,
            "origin_id": 318,
            "origin_slot": 0,
            "target_id": 11,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 564,
            "origin_id": 318,
            "origin_slot": 0,
            "target_id": 169,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 565,
            "origin_id": -10,
            "origin_slot": 15,
            "target_id": 318,
            "target_slot": 1,
            "type": "COMBO"
          }
        ],
        "name": "Character Replacement (SCAIL-2 Base)",
        "nodes": [
          {
            "bgcolor": "#335",
            "color": "#223",
            "flags": {},
            "id": 11,
            "inputs": [
              {
                "link": 563,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": 509,
                "localized_name": "lora_name",
                "name": "lora_name",
                "type": "COMBO",
                "widget": {
                  "name": "lora_name"
                }
              },
              {
                "link": null,
                "localized_name": "strength_model",
                "name": "strength_model",
                "type": "FLOAT",
                "widget": {
                  "name": "strength_model"
                }
              }
            ],
            "mode": 0,
            "order": 10,
            "outputs": [
              {
                "links": [
                  398,
                  425
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              }
            ],
            "pos": [
              300,
              3590
            ],
            "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.24.0"
            },
            "size": [
              590,
              140
            ],
            "type": "LoraLoaderModelOnly",
            "widgets_values": [
              "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
              0.8
            ]
          },
          {
            "flags": {},
            "id": 7,
            "inputs": [
              {
                "link": 511,
                "localized_name": "vae_name",
                "name": "vae_name",
                "type": "COMBO",
                "widget": {
                  "name": "vae_name"
                }
              }
            ],
            "mode": 0,
            "order": 8,
            "outputs": [
              {
                "links": [
                  406,
                  407
                ],
                "localized_name": "VAE",
                "name": "VAE",
                "type": "VAE"
              }
            ],
            "pos": [
              300,
              4020
            ],
            "properties": {
              "Node name for S&R": "VAELoader",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "vae",
                  "name": "Wan2_1_VAE_bf16.safetensors",
                  "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Wan2_1_VAE_bf16.safetensors"
                }
              ],
              "ver": "0.24.0"
            },
            "size": [
              590,
              140
            ],
            "type": "VAELoader",
            "widgets_values": [
              "Wan2_1_VAE_bf16.safetensors"
            ]
          },
          {
            "flags": {},
            "id": 156,
            "inputs": [
              {
                "link": 491,
                "localized_name": "input",
                "name": "input",
                "type": "IMAGE,MASK"
              },
              {
                "link": null,
                "localized_name": "resize_type",
                "name": "resize_type",
                "type": "COMFY_DYNAMICCOMBO_V3",
                "widget": {
                  "name": "resize_type"
                }
              },
              {
                "link": 444,
                "localized_name": "width",
                "name": "resize_type.width",
                "type": "INT",
                "widget": {
                  "name": "resize_type.width"
                }
              },
              {
                "link": 446,
                "localized_name": "height",
                "name": "resize_type.height",
                "type": "INT",
                "widget": {
                  "name": "resize_type.height"
                }
              },
              {
                "link": null,
                "localized_name": "crop",
                "name": "resize_type.crop",
                "type": "COMBO",
                "widget": {
                  "name": "resize_type.crop"
                }
              },
              {
                "link": null,
                "localized_name": "scale_method",
                "name": "scale_method",
                "type": "COMBO",
                "widget": {
                  "name": "scale_method"
                }
              }
            ],
            "mode": 0,
            "order": 18,
            "outputs": [
              {
                "links": [
                  420,
                  492,
                  493
                ],
                "localized_name": "resized",
                "name": "resized",
                "type": "IMAGE"
              }
            ],
            "pos": [
              1280,
              4860
            ],
            "properties": {
              "Node name for S&R": "ResizeImageMaskNode",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              154
            ],
            "type": "ResizeImageMaskNode",
            "widgets_values": [
              "scale dimensions",
              512,
              512,
              "center",
              "area"
            ]
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 157,
            "inputs": [
              {
                "link": 409,
                "localized_name": "video",
                "name": "video",
                "type": "VIDEO"
              }
            ],
            "mode": 0,
            "order": 19,
            "outputs": [
              {
                "links": [
                  490
                ],
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "links": null,
                "localized_name": "audio",
                "name": "audio",
                "type": "AUDIO"
              },
              {
                "links": [],
                "localized_name": "fps",
                "name": "fps",
                "type": "FLOAT"
              },
              {
                "links": null,
                "localized_name": "bit_depth",
                "name": "bit_depth",
                "type": "INT"
              }
            ],
            "pos": [
              270,
              4500
            ],
            "properties": {
              "Node name for S&R": "GetVideoComponents",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              230,
              90
            ],
            "type": "GetVideoComponents",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 163,
            "inputs": [
              {
                "link": 492,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 20,
            "outputs": [
              {
                "links": [
                  414
                ],
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "links": [
                  415
                ],
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "links": [
                  416
                ],
                "localized_name": "batch_size",
                "name": "batch_size",
                "type": "INT"
              }
            ],
            "pos": [
              1640,
              4500
            ],
            "properties": {
              "Node name for S&R": "GetImageSize",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              240,
              190
            ],
            "type": "GetImageSize",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 9,
            "inputs": [
              {
                "link": 510,
                "localized_name": "clip_name",
                "name": "clip_name",
                "type": "COMBO",
                "widget": {
                  "name": "clip_name"
                }
              },
              {
                "link": null,
                "localized_name": "type",
                "name": "type",
                "type": "COMBO",
                "widget": {
                  "name": "type"
                }
              },
              {
                "link": null,
                "localized_name": "device",
                "name": "device",
                "shape": 7,
                "type": "COMBO",
                "widget": {
                  "name": "device"
                }
              }
            ],
            "mode": 0,
            "order": 9,
            "outputs": [
              {
                "links": [
                  7,
                  8
                ],
                "localized_name": "CLIP",
                "name": "CLIP",
                "type": "CLIP"
              }
            ],
            "pos": [
              300,
              3790
            ],
            "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.24.0"
            },
            "size": [
              590,
              170
            ],
            "type": "CLIPLoader",
            "widgets_values": [
              "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
              "wan",
              "default"
            ]
          },
          {
            "flags": {},
            "id": 75,
            "inputs": [
              {
                "link": 512,
                "localized_name": "clip_name",
                "name": "clip_name",
                "type": "COMBO",
                "widget": {
                  "name": "clip_name"
                }
              }
            ],
            "mode": 0,
            "order": 13,
            "outputs": [
              {
                "links": [
                  196
                ],
                "localized_name": "CLIP_VISION",
                "name": "CLIP_VISION",
                "type": "CLIP_VISION"
              }
            ],
            "pos": [
              300,
              4230
            ],
            "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.24.0"
            },
            "size": [
              590,
              110
            ],
            "type": "CLIPVisionLoader",
            "widgets_values": [
              "clip_vision_h.safetensors"
            ]
          },
          {
            "flags": {},
            "id": 154,
            "inputs": [
              {
                "link": 508,
                "localized_name": "unet_name",
                "name": "unet_name",
                "type": "COMBO",
                "widget": {
                  "name": "unet_name"
                }
              },
              {
                "link": null,
                "localized_name": "weight_dtype",
                "name": "weight_dtype",
                "type": "COMBO",
                "widget": {
                  "name": "weight_dtype"
                }
              }
            ],
            "mode": 0,
            "order": 17,
            "outputs": [
              {
                "links": [
                  562
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              }
            ],
            "pos": [
              300,
              3190
            ],
            "properties": {
              "Node name for S&R": "UNETLoader",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "diffusion_models",
                  "name": "wan2.1_14B_SCAIL_2_fp16.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/SCAIL-2/resolve/main/diffusion_models/wan2.1_14B_SCAIL_2_fp16.safetensors"
                }
              ],
              "ver": "0.24.0"
            },
            "size": [
              590,
              140
            ],
            "type": "UNETLoader",
            "widgets_values": [
              "wan2.1_14B_SCAIL_2_fp16.safetensors",
              "default"
            ]
          },
          {
            "flags": {},
            "id": 95,
            "inputs": [
              {
                "link": 424,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": null,
                "localized_name": "shift",
                "name": "shift",
                "type": "FLOAT",
                "widget": {
                  "name": "shift"
                }
              }
            ],
            "mode": 0,
            "order": 15,
            "outputs": [
              {
                "links": [
                  417
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              }
            ],
            "pos": [
              2760,
              3370
            ],
            "properties": {
              "Node name for S&R": "ModelSamplingSD3",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "type": "ModelSamplingSD3",
            "widgets_values": [
              5
            ]
          },
          {
            "flags": {},
            "id": 27,
            "inputs": [
              {
                "link": null,
                "localized_name": "sampler_name",
                "name": "sampler_name",
                "type": "COMBO",
                "widget": {
                  "name": "sampler_name"
                }
              }
            ],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  419
                ],
                "localized_name": "SAMPLER",
                "name": "SAMPLER",
                "type": "SAMPLER"
              }
            ],
            "pos": [
              2770,
              3520
            ],
            "properties": {
              "Node name for S&R": "KSamplerSelect",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              260,
              110
            ],
            "type": "KSamplerSelect",
            "widgets_values": [
              "euler"
            ]
          },
          {
            "flags": {},
            "id": 18,
            "inputs": [
              {
                "link": 398,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": null,
                "localized_name": "scheduler",
                "name": "scheduler",
                "type": "COMBO",
                "widget": {
                  "name": "scheduler"
                }
              },
              {
                "link": 428,
                "localized_name": "steps",
                "name": "steps",
                "type": "INT",
                "widget": {
                  "name": "steps"
                }
              },
              {
                "link": null,
                "localized_name": "denoise",
                "name": "denoise",
                "type": "FLOAT",
                "widget": {
                  "name": "denoise"
                }
              }
            ],
            "mode": 0,
            "order": 11,
            "outputs": [
              {
                "links": [
                  418
                ],
                "localized_name": "SIGMAS",
                "name": "SIGMAS",
                "type": "SIGMAS"
              }
            ],
            "pos": [
              2770,
              3670
            ],
            "properties": {
              "Node name for S&R": "BasicScheduler",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              260,
              170
            ],
            "type": "BasicScheduler",
            "widgets_values": [
              "simple",
              6,
              1
            ]
          },
          {
            "flags": {},
            "id": 19,
            "inputs": [
              {
                "link": 417,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": 333,
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "link": 334,
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "link": 419,
                "localized_name": "sampler",
                "name": "sampler",
                "type": "SAMPLER"
              },
              {
                "link": 418,
                "localized_name": "sigmas",
                "name": "sigmas",
                "type": "SIGMAS"
              },
              {
                "link": 335,
                "localized_name": "latent_image",
                "name": "latent_image",
                "type": "LATENT"
              },
              {
                "link": null,
                "localized_name": "add_noise",
                "name": "add_noise",
                "type": "BOOLEAN",
                "widget": {
                  "name": "add_noise"
                }
              },
              {
                "link": 558,
                "localized_name": "noise_seed",
                "name": "noise_seed",
                "type": "INT",
                "widget": {
                  "name": "noise_seed"
                }
              },
              {
                "link": 431,
                "localized_name": "cfg",
                "name": "cfg",
                "type": "FLOAT",
                "widget": {
                  "name": "cfg"
                }
              }
            ],
            "mode": 0,
            "order": 12,
            "outputs": [
              {
                "links": [],
                "localized_name": "output",
                "name": "output",
                "type": "LATENT"
              },
              {
                "links": [
                  124
                ],
                "localized_name": "denoised_output",
                "name": "denoised_output",
                "type": "LATENT"
              }
            ],
            "pos": [
              3080,
              3370
            ],
            "properties": {
              "Node name for S&R": "SamplerCustom",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              670
            ],
            "type": "SamplerCustom",
            "widgets_values": [
              true,
              1,
              "fixed",
              1
            ]
          },
          {
            "flags": {},
            "id": 168,
            "inputs": [
              {
                "link": null,
                "localized_name": "value",
                "name": "value",
                "type": "INT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  427
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              }
            ],
            "pos": [
              2060,
              3750
            ],
            "properties": {
              "Node name for S&R": "PrimitiveInt",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Int (Steps)",
            "type": "PrimitiveInt",
            "widgets_values": [
              6,
              "fixed"
            ]
          },
          {
            "flags": {},
            "id": 167,
            "inputs": [
              {
                "link": null,
                "localized_name": "value",
                "name": "value",
                "type": "FLOAT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  430
                ],
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              }
            ],
            "pos": [
              2060,
              3920
            ],
            "properties": {
              "Node name for S&R": "PrimitiveFloat",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Float (CFG)",
            "type": "PrimitiveFloat",
            "widgets_values": [
              1
            ]
          },
          {
            "flags": {},
            "id": 165,
            "inputs": [
              {
                "link": null,
                "localized_name": "value",
                "name": "value",
                "type": "INT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  426
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              }
            ],
            "pos": [
              2060,
              3380
            ],
            "properties": {
              "Node name for S&R": "PrimitiveInt",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Int (Steps)",
            "type": "PrimitiveInt",
            "widgets_values": [
              40,
              "fixed"
            ]
          },
          {
            "flags": {},
            "id": 166,
            "inputs": [
              {
                "link": null,
                "localized_name": "value",
                "name": "value",
                "type": "FLOAT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  429
                ],
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              }
            ],
            "pos": [
              2060,
              3530
            ],
            "properties": {
              "Node name for S&R": "PrimitiveFloat",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Float (CFG)",
            "type": "PrimitiveFloat",
            "widgets_values": [
              5
            ]
          },
          {
            "flags": {},
            "id": 169,
            "inputs": [
              {
                "link": 564,
                "localized_name": "on_false",
                "name": "on_false",
                "type": "MODEL"
              },
              {
                "link": 425,
                "localized_name": "on_true",
                "name": "on_true",
                "type": "MODEL"
              },
              {
                "link": 432,
                "localized_name": "switch",
                "name": "switch",
                "type": "BOOLEAN",
                "widget": {
                  "name": "switch"
                }
              }
            ],
            "mode": 0,
            "order": 21,
            "outputs": [
              {
                "links": [
                  424
                ],
                "localized_name": "output",
                "name": "output",
                "type": "MODEL"
              }
            ],
            "pos": [
              2400,
              3360
            ],
            "properties": {
              "Node name for S&R": "ComfySwitchNode",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              130
            ],
            "title": "Switch (Model)",
            "type": "ComfySwitchNode",
            "widgets_values": [
              false
            ]
          },
          {
            "flags": {},
            "id": 170,
            "inputs": [
              {
                "link": 426,
                "localized_name": "on_false",
                "name": "on_false",
                "type": "INT"
              },
              {
                "link": 427,
                "localized_name": "on_true",
                "name": "on_true",
                "type": "INT"
              },
              {
                "link": 433,
                "localized_name": "switch",
                "name": "switch",
                "type": "BOOLEAN",
                "widget": {
                  "name": "switch"
                }
              }
            ],
            "mode": 0,
            "order": 22,
            "outputs": [
              {
                "links": [
                  428
                ],
                "localized_name": "output",
                "name": "output",
                "type": "INT"
              }
            ],
            "pos": [
              2400,
              3550
            ],
            "properties": {
              "Node name for S&R": "ComfySwitchNode",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              130
            ],
            "title": "Switch (Steps)",
            "type": "ComfySwitchNode",
            "widgets_values": [
              false
            ]
          },
          {
            "flags": {},
            "id": 171,
            "inputs": [
              {
                "link": 429,
                "localized_name": "on_false",
                "name": "on_false",
                "type": "FLOAT"
              },
              {
                "link": 430,
                "localized_name": "on_true",
                "name": "on_true",
                "type": "FLOAT"
              },
              {
                "link": 434,
                "localized_name": "switch",
                "name": "switch",
                "type": "BOOLEAN",
                "widget": {
                  "name": "switch"
                }
              }
            ],
            "mode": 0,
            "order": 23,
            "outputs": [
              {
                "links": [
                  431
                ],
                "localized_name": "output",
                "name": "output",
                "type": "FLOAT"
              }
            ],
            "pos": [
              2400,
              3730
            ],
            "properties": {
              "Node name for S&R": "ComfySwitchNode",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              130
            ],
            "title": "Switch (Steps)",
            "type": "ComfySwitchNode",
            "widgets_values": [
              false
            ]
          },
          {
            "flags": {},
            "id": 177,
            "inputs": [
              {
                "link": 490,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 450,
                "localized_name": "batch_index",
                "name": "batch_index",
                "type": "INT",
                "widget": {
                  "name": "batch_index"
                }
              },
              {
                "link": 522,
                "localized_name": "length",
                "name": "length",
                "type": "INT",
                "widget": {
                  "name": "length"
                }
              }
            ],
            "mode": 0,
            "order": 25,
            "outputs": [
              {
                "links": [
                  491
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              880,
              4490
            ],
            "properties": {
              "Node name for S&R": "ImageFromBatch",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              140
            ],
            "type": "ImageFromBatch",
            "widgets_values": [
              0,
              81
            ]
          },
          {
            "flags": {},
            "id": 178,
            "inputs": [
              {
                "link": 505,
                "localized_name": "value",
                "name": "value",
                "type": "INT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 26,
            "outputs": [
              {
                "links": [
                  441
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              }
            ],
            "pos": [
              250,
              4820
            ],
            "properties": {
              "Node name for S&R": "PrimitiveInt",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Int (Width)",
            "type": "PrimitiveInt",
            "widgets_values": [
              896,
              "fixed"
            ]
          },
          {
            "flags": {},
            "id": 179,
            "inputs": [
              {
                "link": 506,
                "localized_name": "value",
                "name": "value",
                "type": "INT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 27,
            "outputs": [
              {
                "links": [
                  445
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              }
            ],
            "pos": [
              250,
              5000
            ],
            "properties": {
              "Node name for S&R": "PrimitiveInt",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Int (Height)",
            "type": "PrimitiveInt",
            "widgets_values": [
              512,
              "fixed"
            ]
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 180,
            "inputs": [
              {
                "label": "a",
                "link": 441,
                "localized_name": "values.a",
                "name": "values.a",
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "b",
                "link": null,
                "localized_name": "values.b",
                "name": "values.b",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "link": null,
                "localized_name": "expression",
                "name": "expression",
                "type": "STRING",
                "widget": {
                  "name": "expression"
                }
              }
            ],
            "mode": 0,
            "order": 28,
            "outputs": [
              {
                "links": [],
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              },
              {
                "links": [
                  444
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "BOOL",
                "name": "BOOL",
                "type": "BOOLEAN"
              }
            ],
            "pos": [
              690,
              4850
            ],
            "properties": {
              "Node name for S&R": "ComfyMathExpression",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              230,
              80
            ],
            "type": "ComfyMathExpression",
            "widgets_values": [
              "(a // 32) * 32"
            ]
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 182,
            "inputs": [
              {
                "label": "a",
                "link": 445,
                "localized_name": "values.a",
                "name": "values.a",
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "b",
                "link": null,
                "localized_name": "values.b",
                "name": "values.b",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "link": null,
                "localized_name": "expression",
                "name": "expression",
                "type": "STRING",
                "widget": {
                  "name": "expression"
                }
              }
            ],
            "mode": 0,
            "order": 29,
            "outputs": [
              {
                "links": [],
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              },
              {
                "links": [
                  446
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "BOOL",
                "name": "BOOL",
                "type": "BOOLEAN"
              }
            ],
            "pos": [
              690,
              5030
            ],
            "properties": {
              "Node name for S&R": "ComfyMathExpression",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              230,
              80
            ],
            "type": "ComfyMathExpression",
            "widgets_values": [
              "(a // 32) * 32"
            ]
          },
          {
            "flags": {},
            "id": 183,
            "inputs": [
              {
                "link": 502,
                "localized_name": "value",
                "name": "value",
                "type": "INT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 30,
            "outputs": [
              {
                "links": [
                  447
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              }
            ],
            "pos": [
              260,
              4570
            ],
            "properties": {
              "Node name for S&R": "PrimitiveInt",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Int (segment index)",
            "type": "PrimitiveInt",
            "widgets_values": [
              1,
              "fixed"
            ]
          },
          {
            "flags": {
              "collapsed": false
            },
            "id": 184,
            "inputs": [
              {
                "label": "a",
                "link": 447,
                "localized_name": "values.a",
                "name": "values.a",
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "b",
                "link": 541,
                "localized_name": "values.b",
                "name": "values.b",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "c",
                "link": 543,
                "localized_name": "values.c",
                "name": "values.c",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "d",
                "link": null,
                "localized_name": "values.d",
                "name": "values.d",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "link": null,
                "localized_name": "expression",
                "name": "expression",
                "type": "STRING",
                "widget": {
                  "name": "expression"
                }
              }
            ],
            "mode": 0,
            "order": 31,
            "outputs": [
              {
                "links": null,
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              },
              {
                "links": [
                  450
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "BOOL",
                "name": "BOOL",
                "type": "BOOLEAN"
              }
            ],
            "pos": [
              580,
              4590
            ],
            "properties": {
              "Node name for S&R": "ComfyMathExpression",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              230,
              220
            ],
            "type": "ComfyMathExpression",
            "widgets_values": [
              "(b - c) * (a - 1)"
            ]
          },
          {
            "flags": {},
            "id": 191,
            "inputs": [
              {
                "link": 454,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              },
              {
                "link": 513,
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                }
              }
            ],
            "mode": 0,
            "order": 32,
            "outputs": [
              {
                "links": [
                  461
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              660,
              5360
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.19.3"
            },
            "size": [
              380,
              160
            ],
            "type": "CLIPTextEncode",
            "widgets_values": [
              "human"
            ]
          },
          {
            "flags": {},
            "id": 193,
            "inputs": [
              {
                "link": 515,
                "localized_name": "ckpt_name",
                "name": "ckpt_name",
                "type": "COMBO",
                "widget": {
                  "name": "ckpt_name"
                }
              }
            ],
            "mode": 0,
            "order": 33,
            "outputs": [
              {
                "links": [
                  458,
                  463
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              },
              {
                "links": [
                  454,
                  489
                ],
                "localized_name": "CLIP",
                "name": "CLIP",
                "type": "CLIP"
              },
              {
                "links": [],
                "localized_name": "VAE",
                "name": "VAE",
                "type": "VAE"
              }
            ],
            "pos": [
              270,
              5340
            ],
            "properties": {
              "Node name for S&R": "CheckpointLoaderSimple",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "models": [
                {
                  "directory": "checkpoints",
                  "name": "sam3.1_multiplex_fp16.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors"
                }
              ],
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.19.3"
            },
            "size": [
              330,
              160
            ],
            "type": "CheckpointLoaderSimple",
            "widgets_values": [
              "sam3.1_multiplex_fp16.safetensors"
            ]
          },
          {
            "flags": {},
            "id": 196,
            "inputs": [
              {
                "label": "images",
                "link": 493,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "label": "model",
                "link": 458,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "label": "initial_mask",
                "link": null,
                "localized_name": "initial_mask",
                "name": "initial_mask",
                "shape": 7,
                "type": "MASK"
              },
              {
                "label": "conditioning",
                "link": 461,
                "localized_name": "conditioning",
                "name": "conditioning",
                "shape": 7,
                "type": "CONDITIONING"
              },
              {
                "link": null,
                "localized_name": "detection_threshold",
                "name": "detection_threshold",
                "type": "FLOAT",
                "widget": {
                  "name": "detection_threshold"
                }
              },
              {
                "link": null,
                "localized_name": "max_objects",
                "name": "max_objects",
                "type": "INT",
                "widget": {
                  "name": "max_objects"
                }
              },
              {
                "link": null,
                "localized_name": "detect_interval",
                "name": "detect_interval",
                "type": "INT",
                "widget": {
                  "name": "detect_interval"
                }
              }
            ],
            "mode": 0,
            "order": 34,
            "outputs": [
              {
                "links": [
                  460
                ],
                "localized_name": "track_data",
                "name": "track_data",
                "type": "SAM3_TRACK_DATA"
              }
            ],
            "pos": [
              1190,
              5320
            ],
            "properties": {
              "Node name for S&R": "SAM3_VideoTrack",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              280,
              250
            ],
            "type": "SAM3_VideoTrack",
            "widgets_values": [
              0.5,
              4,
              1
            ]
          },
          {
            "flags": {},
            "id": 197,
            "inputs": [
              {
                "link": 460,
                "localized_name": "driving_track_data",
                "name": "driving_track_data",
                "type": "SAM3_TRACK_DATA"
              },
              {
                "link": 464,
                "localized_name": "ref_track_data",
                "name": "ref_track_data",
                "shape": 7,
                "type": "SAM3_TRACK_DATA"
              },
              {
                "link": null,
                "localized_name": "object_indices",
                "name": "object_indices",
                "type": "STRING",
                "widget": {
                  "name": "object_indices"
                }
              },
              {
                "link": null,
                "localized_name": "sort_by",
                "name": "sort_by",
                "type": "COMBO",
                "widget": {
                  "name": "sort_by"
                }
              },
              {
                "link": 476,
                "localized_name": "replacement_mode",
                "name": "replacement_mode",
                "type": "BOOLEAN",
                "widget": {
                  "name": "replacement_mode"
                }
              }
            ],
            "mode": 0,
            "order": 35,
            "outputs": [
              {
                "links": [
                  466,
                  467
                ],
                "localized_name": "pose_video_mask",
                "name": "pose_video_mask",
                "type": "IMAGE"
              },
              {
                "links": [
                  465,
                  472
                ],
                "localized_name": "reference_image_mask",
                "name": "reference_image_mask",
                "type": "IMAGE"
              }
            ],
            "pos": [
              1550,
              5470
            ],
            "properties": {
              "Node name for S&R": "SCAIL2ColoredMask",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              370,
              200
            ],
            "type": "SCAIL2ColoredMask",
            "widgets_values": [
              "",
              "left_to_right",
              true
            ]
          },
          {
            "flags": {},
            "id": 198,
            "inputs": [
              {
                "label": "images",
                "link": 469,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "label": "model",
                "link": 463,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "label": "initial_mask",
                "link": null,
                "localized_name": "initial_mask",
                "name": "initial_mask",
                "shape": 7,
                "type": "MASK"
              },
              {
                "label": "conditioning",
                "link": 488,
                "localized_name": "conditioning",
                "name": "conditioning",
                "shape": 7,
                "type": "CONDITIONING"
              },
              {
                "link": null,
                "localized_name": "detection_threshold",
                "name": "detection_threshold",
                "type": "FLOAT",
                "widget": {
                  "name": "detection_threshold"
                }
              },
              {
                "link": null,
                "localized_name": "max_objects",
                "name": "max_objects",
                "type": "INT",
                "widget": {
                  "name": "max_objects"
                }
              },
              {
                "link": null,
                "localized_name": "detect_interval",
                "name": "detect_interval",
                "type": "INT",
                "widget": {
                  "name": "detect_interval"
                }
              }
            ],
            "mode": 0,
            "order": 36,
            "outputs": [
              {
                "links": [
                  464
                ],
                "localized_name": "track_data",
                "name": "track_data",
                "type": "SAM3_TRACK_DATA"
              }
            ],
            "pos": [
              1190,
              5620
            ],
            "properties": {
              "Node name for S&R": "SAM3_VideoTrack",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              280,
              250
            ],
            "type": "SAM3_VideoTrack",
            "widgets_values": [
              0.5,
              4,
              1
            ]
          },
          {
            "flags": {},
            "id": 203,
            "inputs": [
              {
                "link": 504,
                "localized_name": "value",
                "name": "value",
                "type": "BOOLEAN",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 39,
            "outputs": [
              {
                "links": [
                  475,
                  476
                ],
                "localized_name": "BOOLEAN",
                "name": "BOOLEAN",
                "type": "BOOLEAN"
              }
            ],
            "pos": [
              1660,
              4200
            ],
            "properties": {
              "Node name for S&R": "PrimitiveBoolean",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Boolean （Replace Mode）",
            "type": "PrimitiveBoolean",
            "widgets_values": [
              true
            ]
          },
          {
            "flags": {},
            "id": 200,
            "inputs": [
              {
                "link": 466,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              }
            ],
            "mode": 4,
            "order": 38,
            "outputs": [],
            "pos": [
              2040,
              4470
            ],
            "properties": {
              "Node name for S&R": "PreviewImage",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              350,
              1190
            ],
            "type": "PreviewImage",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 199,
            "inputs": [
              {
                "link": 465,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              }
            ],
            "mode": 4,
            "order": 37,
            "outputs": [],
            "pos": [
              2440,
              4470
            ],
            "properties": {
              "Node name for S&R": "PreviewImage",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              230,
              310
            ],
            "type": "PreviewImage",
            "widgets_values": []
          },
          {
            "flags": {
              "collapsed": false
            },
            "id": 6,
            "inputs": [
              {
                "link": 124,
                "localized_name": "samples",
                "name": "samples",
                "type": "LATENT"
              },
              {
                "link": 407,
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE"
              }
            ],
            "mode": 0,
            "order": 7,
            "outputs": [
              {
                "links": [
                  544
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              3080,
              4120
            ],
            "properties": {
              "Node name for S&R": "VAEDecode",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              100
            ],
            "type": "VAEDecode",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 172,
            "inputs": [
              {
                "link": 507,
                "localized_name": "value",
                "name": "value",
                "type": "BOOLEAN",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 24,
            "outputs": [
              {
                "links": [
                  432,
                  433,
                  434
                ],
                "localized_name": "BOOLEAN",
                "name": "BOOLEAN",
                "type": "BOOLEAN"
              }
            ],
            "pos": [
              2410,
              3940
            ],
            "properties": {
              "Node name for S&R": "PrimitiveBoolean",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Boolean (Enable Distill LoRA?)",
            "type": "PrimitiveBoolean",
            "widgets_values": [
              true
            ]
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 76,
            "inputs": [
              {
                "link": 196,
                "localized_name": "clip_vision",
                "name": "clip_vision",
                "type": "CLIP_VISION"
              },
              {
                "link": 408,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "crop",
                "name": "crop",
                "type": "COMBO",
                "widget": {
                  "name": "crop"
                }
              }
            ],
            "mode": 0,
            "order": 14,
            "outputs": [
              {
                "links": [
                  404
                ],
                "localized_name": "CLIP_VISION_OUTPUT",
                "name": "CLIP_VISION_OUTPUT",
                "type": "CLIP_VISION_OUTPUT"
              }
            ],
            "pos": [
              1200,
              4260
            ],
            "properties": {
              "Node name for S&R": "CLIPVisionEncode",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              230,
              60
            ],
            "type": "CLIPVisionEncode",
            "widgets_values": [
              "none"
            ]
          },
          {
            "bgcolor": "#335",
            "color": "#223",
            "flags": {},
            "id": 4,
            "inputs": [
              {
                "link": 8,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              },
              {
                "link": null,
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                }
              }
            ],
            "mode": 0,
            "order": 6,
            "outputs": [
              {
                "links": [
                  326
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              1000,
              3970
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              520,
              210
            ],
            "type": "CLIPTextEncode",
            "widgets_values": [
              ""
            ]
          },
          {
            "bgcolor": "#353",
            "color": "#232",
            "flags": {},
            "id": 3,
            "inputs": [
              {
                "link": 7,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              },
              {
                "link": 499,
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                }
              }
            ],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": [
                  325
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              990,
              3170
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              550,
              750
            ],
            "type": "CLIPTextEncode",
            "widgets_values": [
              "A young woman with dark hair tied in a neat high bun, with a few loose strands framing her face, is dancing outdoors on a sunny coastal hillside. She has a normal-sized head and a slim face, with no hat, no headwear, and no oversized hair volume. She wears a fitted black long-sleeve crop top with a shoulder cutout, extremely baggy black cargo pants with straps and pockets, and chunky black combat boots. She performs energetic dance moves with one leg lifted and arms extended, moving naturally in front of a large tree, a small white stone house with a terracotta roof, and a bright blue sea under a clear sky with light clouds."
            ]
          },
          {
            "bgcolor": "#533",
            "color": "#322",
            "flags": {},
            "id": 114,
            "inputs": [
              {
                "link": 325,
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "link": 326,
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "link": 406,
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE"
              },
              {
                "link": 420,
                "localized_name": "pose_video",
                "name": "pose_video",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 467,
                "localized_name": "pose_video_mask",
                "name": "pose_video_mask",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 473,
                "localized_name": "reference_image",
                "name": "reference_image",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 472,
                "localized_name": "reference_image_mask",
                "name": "reference_image_mask",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 404,
                "localized_name": "clip_vision_output",
                "name": "clip_vision_output",
                "shape": 7,
                "type": "CLIP_VISION_OUTPUT"
              },
              {
                "link": null,
                "localized_name": "previous_frames",
                "name": "previous_frames",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 414,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 415,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              },
              {
                "link": 416,
                "localized_name": "length",
                "name": "length",
                "type": "INT",
                "widget": {
                  "name": "length"
                }
              },
              {
                "link": null,
                "localized_name": "batch_size",
                "name": "batch_size",
                "type": "INT",
                "widget": {
                  "name": "batch_size"
                }
              },
              {
                "link": 547,
                "localized_name": "pose_strength",
                "name": "pose_strength",
                "type": "FLOAT",
                "widget": {
                  "name": "pose_strength"
                }
              },
              {
                "link": 548,
                "localized_name": "pose_start",
                "name": "pose_start",
                "type": "FLOAT",
                "widget": {
                  "name": "pose_start"
                }
              },
              {
                "link": 549,
                "localized_name": "pose_end",
                "name": "pose_end",
                "type": "FLOAT",
                "widget": {
                  "name": "pose_end"
                }
              },
              {
                "link": null,
                "localized_name": "video_frame_offset",
                "name": "video_frame_offset",
                "type": "INT",
                "widget": {
                  "name": "video_frame_offset"
                }
              },
              {
                "link": 542,
                "localized_name": "previous_frame_count",
                "name": "previous_frame_count",
                "type": "INT",
                "widget": {
                  "name": "previous_frame_count"
                }
              },
              {
                "link": 475,
                "localized_name": "replacement_mode",
                "name": "replacement_mode",
                "shape": 7,
                "type": "BOOLEAN",
                "widget": {
                  "name": "replacement_mode"
                }
              }
            ],
            "mode": 0,
            "order": 16,
            "outputs": [
              {
                "links": [
                  333
                ],
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "links": [
                  334
                ],
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "links": [
                  335
                ],
                "localized_name": "latent",
                "name": "latent",
                "type": "LATENT"
              },
              {
                "links": [],
                "localized_name": "video_frame_offset",
                "name": "video_frame_offset",
                "type": "INT"
              }
            ],
            "pos": [
              1640,
              3400
            ],
            "properties": {
              "Node name for S&R": "WanSCAILToVideo",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              310,
              580
            ],
            "type": "WanSCAILToVideo",
            "widgets_values": [
              512,
              896,
              65,
              1,
              1,
              0,
              1,
              0,
              5,
              true
            ]
          },
          {
            "flags": {},
            "id": 212,
            "inputs": [
              {
                "link": 489,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              },
              {
                "link": 514,
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                }
              }
            ],
            "mode": 0,
            "order": 40,
            "outputs": [
              {
                "links": [
                  488
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              670,
              5690
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.19.3"
            },
            "size": [
              380,
              160
            ],
            "type": "CLIPTextEncode",
            "widgets_values": [
              "human"
            ]
          },
          {
            "flags": {},
            "id": 318,
            "inputs": [
              {
                "link": 562,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": 565,
                "localized_name": "lora_name",
                "name": "lora_name",
                "type": "COMBO",
                "widget": {
                  "name": "lora_name"
                }
              },
              {
                "link": null,
                "localized_name": "strength_model",
                "name": "strength_model",
                "type": "FLOAT",
                "widget": {
                  "name": "strength_model"
                }
              }
            ],
            "mode": 0,
            "order": 41,
            "outputs": [
              {
                "links": [
                  563,
                  564
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              }
            ],
            "pos": [
              310,
              3390
            ],
            "properties": {
              "Node name for S&R": "LoraLoaderModelOnly",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "loras",
                  "name": "wan2.1_SCAIL_2_DPO_lora_bf16.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/SCAIL-2/resolve/main/loras/wan2.1_SCAIL_2_DPO_lora_bf16.safetensors"
                }
              ],
              "ver": "0.24.0"
            },
            "size": [
              580,
              140
            ],
            "type": "LoraLoaderModelOnly",
            "widgets_values": [
              "wan2.1_SCAIL_2_DPO_lora_bf16.safetensors",
              1
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            3980,
            3870,
            128,
            68
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "7ae88834-7553-45ec-a4e8-bab7d5276b45",
            "linkIds": [
              544
            ],
            "localized_name": "output",
            "name": "output",
            "pos": [
              4004,
              3894
            ],
            "type": "IMAGE"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 17,
          "lastLinkId": 569,
          "lastNodeId": 321,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      },
      {
        "config": {},
        "extra": {},
        "groups": [
          {
            "bounding": [
              240,
              3100,
              720,
              1300
            ],
            "color": "#3f789e",
            "flags": {},
            "id": 3,
            "title": "Models"
          },
          {
            "bounding": [
              990,
              3100,
              580,
              1300
            ],
            "color": "#3f789e",
            "flags": {},
            "id": 4,
            "title": "Prompt"
          },
          {
            "bounding": [
              2770,
              3100,
              700,
              1300
            ],
            "color": "#3f789e",
            "flags": {},
            "id": 5,
            "title": "Sampling"
          },
          {
            "bounding": [
              1590,
              3100,
              430,
              1300
            ],
            "color": "#3f789e",
            "flags": {},
            "id": 6,
            "title": "SCAIL Conditioning"
          },
          {
            "bounding": [
              2050,
              3100,
              690,
              1300
            ],
            "color": "#3f789e",
            "flags": {},
            "id": 9,
            "title": "Switch Settings"
          },
          {
            "bounding": [
              2080,
              3330,
              300,
              340
            ],
            "color": "#3f789e",
            "flags": {},
            "id": 7,
            "title": "Original Settings"
          },
          {
            "bounding": [
              2080,
              3690,
              300,
              370
            ],
            "color": "#3f789e",
            "flags": {},
            "id": 8,
            "title": "Distill LoRA Settings"
          },
          {
            "bounding": [
              240,
              5250,
              1780,
              670
            ],
            "flags": {},
            "id": 10,
            "title": "Create Mask"
          },
          {
            "bounding": [
              240,
              4770,
              1780,
              450
            ],
            "flags": {},
            "id": 11,
            "title": "Resize Images"
          },
          {
            "bounding": [
              240,
              4430,
              1780,
              310
            ],
            "flags": {},
            "id": 12,
            "title": "Trim Frames from Video"
          },
          {
            "bounding": [
              2050,
              4430,
              690,
              1490
            ],
            "flags": {},
            "id": 13,
            "title": "Preview Masks"
          },
          {
            "bounding": [
              2770,
              4430,
              700,
              1490
            ],
            "color": "#3f789e",
            "flags": {},
            "id": 14,
            "title": "Group"
          }
        ],
        "id": "56bf150b-bd14-4513-8e03-335e1972ba62",
        "inputNode": {
          "bounding": [
            -300,
            4240,
            173.015625,
            528
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "e9aedfaf-1991-4a75-ad9b-8c3a279b0488",
            "label": "pose_video",
            "linkIds": [
              409
            ],
            "localized_name": "video",
            "name": "video",
            "pos": [
              -150.984375,
              4264
            ],
            "type": "VIDEO"
          },
          {
            "id": "0badb26e-9abd-4e9c-b221-aab1237b8773",
            "label": "reference_image",
            "linkIds": [
              469,
              408,
              473
            ],
            "localized_name": "images",
            "name": "images",
            "pos": [
              -150.984375,
              4284
            ],
            "type": "IMAGE"
          },
          {
            "id": "9f424e9e-d5a2-4dd9-9934-cc6f6fc8da09",
            "label": "previous_frames",
            "linkIds": [
              486,
              485
            ],
            "localized_name": "image",
            "name": "image",
            "pos": [
              -150.984375,
              4304
            ],
            "type": "IMAGE"
          },
          {
            "id": "098f15aa-a066-422e-b491-eaf140bafb2c",
            "label": "prompt",
            "linkIds": [
              499
            ],
            "name": "text",
            "pos": [
              -150.984375,
              4324
            ],
            "type": "STRING"
          },
          {
            "id": "861ea850-8329-491b-9413-2588cdd77bbd",
            "label": "segment_index",
            "linkIds": [
              502
            ],
            "name": "value",
            "pos": [
              -150.984375,
              4344
            ],
            "type": "INT"
          },
          {
            "id": "dcf3ebf8-1263-458a-966b-9e77a5ad704a",
            "label": "replace_mode",
            "linkIds": [
              504
            ],
            "name": "value_2",
            "pos": [
              -150.984375,
              4364
            ],
            "type": "BOOLEAN"
          },
          {
            "id": "dbee10ce-bb98-4733-88a0-d4cd5b13c691",
            "label": "width",
            "linkIds": [
              505
            ],
            "name": "value_3",
            "pos": [
              -150.984375,
              4384
            ],
            "type": "INT"
          },
          {
            "id": "363e3ac7-0096-4480-b875-1d6ff1b8a2d9",
            "label": "height",
            "linkIds": [
              506
            ],
            "name": "value_4",
            "pos": [
              -150.984375,
              4404
            ],
            "type": "INT"
          },
          {
            "id": "dc19eaf1-dd24-4c1e-9b08-6d8d98e0e7f2",
            "label": "frame_count",
            "linkIds": [
              550,
              557
            ],
            "name": "length",
            "pos": [
              -150.984375,
              4424
            ],
            "type": "INT"
          },
          {
            "id": "39d2f098-1740-419e-9c29-e4c4e4a7c3fd",
            "linkIds": [
              551,
              556
            ],
            "name": "previous_frame_count",
            "pos": [
              -150.984375,
              4444
            ],
            "type": "INT"
          },
          {
            "id": "8d248225-a7f5-42c5-86bd-31eaf695f66e",
            "linkIds": [
              552
            ],
            "name": "pose_strength",
            "pos": [
              -150.984375,
              4464
            ],
            "type": "FLOAT"
          },
          {
            "id": "04c56360-963a-48ba-944e-4864e2c0349c",
            "linkIds": [
              553
            ],
            "name": "pose_start",
            "pos": [
              -150.984375,
              4484
            ],
            "type": "FLOAT"
          },
          {
            "id": "1ecd0315-d61f-4986-837c-27fb3f2d0470",
            "linkIds": [
              554
            ],
            "name": "pose_end",
            "pos": [
              -150.984375,
              4504
            ],
            "type": "FLOAT"
          },
          {
            "id": "ddf07ba4-2837-40ef-925f-5996ea436334",
            "label": "turbo_mode",
            "linkIds": [
              507
            ],
            "name": "value_5",
            "pos": [
              -150.984375,
              4524
            ],
            "type": "BOOLEAN"
          },
          {
            "id": "ee8c796d-b326-40c6-9f9d-65f564053974",
            "linkIds": [
              508
            ],
            "name": "unet_name",
            "pos": [
              -150.984375,
              4544
            ],
            "type": "COMBO"
          },
          {
            "id": "6ccae991-51d7-4c8e-adc8-c7f6377d681b",
            "label": "distill_lora",
            "linkIds": [
              509
            ],
            "name": "lora_name",
            "pos": [
              -150.984375,
              4564
            ],
            "type": "COMBO"
          },
          {
            "id": "1f1ac950-6ce5-4253-a266-edba58acd135",
            "label": "dpo_lora",
            "linkIds": [
              569
            ],
            "name": "lora_name_1",
            "pos": [
              -150.984375,
              4584
            ],
            "type": "COMBO"
          },
          {
            "id": "2e9c2347-93fe-462f-b5ef-51613fb52c85",
            "linkIds": [
              510
            ],
            "name": "clip_name",
            "pos": [
              -150.984375,
              4604
            ],
            "type": "COMBO"
          },
          {
            "id": "bc1822c0-7484-47b7-8d59-cf94788290f7",
            "linkIds": [
              511
            ],
            "name": "vae_name",
            "pos": [
              -150.984375,
              4624
            ],
            "type": "COMBO"
          },
          {
            "id": "bbf2ee19-58b3-46f4-af6a-cd1557d60c8d",
            "label": "clip_vision",
            "linkIds": [
              512
            ],
            "name": "clip_name_1",
            "pos": [
              -150.984375,
              4644
            ],
            "type": "COMBO"
          },
          {
            "id": "556415bd-8ef3-4cfa-b182-0d7e3e4cd572",
            "label": "sam3_video_object",
            "linkIds": [
              513
            ],
            "name": "text_1",
            "pos": [
              -150.984375,
              4664
            ],
            "type": "STRING"
          },
          {
            "id": "c577930c-85a3-4e92-ac44-8ed639937217",
            "label": "sam3_image_object",
            "linkIds": [
              514
            ],
            "name": "text_2",
            "pos": [
              -150.984375,
              4684
            ],
            "type": "STRING"
          },
          {
            "id": "8f542c5e-da91-4dad-8ff8-4e81a42d5140",
            "label": "sam3_model",
            "linkIds": [
              515
            ],
            "name": "ckpt_name",
            "pos": [
              -150.984375,
              4704
            ],
            "type": "COMBO"
          },
          {
            "id": "9764a497-f066-429c-b77c-bcd5b8c7a68d",
            "linkIds": [
              559
            ],
            "name": "noise_seed",
            "pos": [
              -150.984375,
              4724
            ],
            "type": "INT"
          }
        ],
        "links": [
          {
            "id": 491,
            "origin_id": 235,
            "origin_slot": 0,
            "target_id": 218,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 444,
            "origin_id": 238,
            "origin_slot": 1,
            "target_id": 218,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 446,
            "origin_id": 239,
            "origin_slot": 1,
            "target_id": 218,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 492,
            "origin_id": 218,
            "origin_slot": 0,
            "target_id": 220,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 424,
            "origin_id": 232,
            "origin_slot": 0,
            "target_id": 224,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 398,
            "origin_id": 216,
            "origin_slot": 0,
            "target_id": 226,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 428,
            "origin_id": 233,
            "origin_slot": 0,
            "target_id": 226,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 417,
            "origin_id": 224,
            "origin_slot": 0,
            "target_id": 227,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 333,
            "origin_id": 259,
            "origin_slot": 0,
            "target_id": 227,
            "target_slot": 1,
            "type": "CONDITIONING"
          },
          {
            "id": 334,
            "origin_id": 259,
            "origin_slot": 1,
            "target_id": 227,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 419,
            "origin_id": 225,
            "origin_slot": 0,
            "target_id": 227,
            "target_slot": 3,
            "type": "SAMPLER"
          },
          {
            "id": 418,
            "origin_id": 226,
            "origin_slot": 0,
            "target_id": 227,
            "target_slot": 4,
            "type": "SIGMAS"
          },
          {
            "id": 335,
            "origin_id": 259,
            "origin_slot": 2,
            "target_id": 227,
            "target_slot": 5,
            "type": "LATENT"
          },
          {
            "id": 431,
            "origin_id": 234,
            "origin_slot": 0,
            "target_id": 227,
            "target_slot": 8,
            "type": "FLOAT"
          },
          {
            "id": 425,
            "origin_id": 216,
            "origin_slot": 0,
            "target_id": 232,
            "target_slot": 1,
            "type": "MODEL"
          },
          {
            "id": 432,
            "origin_id": 255,
            "origin_slot": 0,
            "target_id": 232,
            "target_slot": 2,
            "type": "BOOLEAN"
          },
          {
            "id": 426,
            "origin_id": 230,
            "origin_slot": 0,
            "target_id": 233,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 427,
            "origin_id": 228,
            "origin_slot": 0,
            "target_id": 233,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 433,
            "origin_id": 255,
            "origin_slot": 0,
            "target_id": 233,
            "target_slot": 2,
            "type": "BOOLEAN"
          },
          {
            "id": 429,
            "origin_id": 231,
            "origin_slot": 0,
            "target_id": 234,
            "target_slot": 0,
            "type": "FLOAT"
          },
          {
            "id": 430,
            "origin_id": 229,
            "origin_slot": 0,
            "target_id": 234,
            "target_slot": 1,
            "type": "FLOAT"
          },
          {
            "id": 434,
            "origin_id": 255,
            "origin_slot": 0,
            "target_id": 234,
            "target_slot": 2,
            "type": "BOOLEAN"
          },
          {
            "id": 490,
            "origin_id": 219,
            "origin_slot": 0,
            "target_id": 235,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 450,
            "origin_id": 241,
            "origin_slot": 1,
            "target_id": 235,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 441,
            "origin_id": 236,
            "origin_slot": 0,
            "target_id": 238,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 445,
            "origin_id": 237,
            "origin_slot": 0,
            "target_id": 239,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 447,
            "origin_id": 240,
            "origin_slot": 0,
            "target_id": 241,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 454,
            "origin_id": 243,
            "origin_slot": 1,
            "target_id": 242,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 493,
            "origin_id": 218,
            "origin_slot": 0,
            "target_id": 244,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 458,
            "origin_id": 243,
            "origin_slot": 0,
            "target_id": 244,
            "target_slot": 1,
            "type": "MODEL"
          },
          {
            "id": 461,
            "origin_id": 242,
            "origin_slot": 0,
            "target_id": 244,
            "target_slot": 3,
            "type": "CONDITIONING"
          },
          {
            "id": 460,
            "origin_id": 244,
            "origin_slot": 0,
            "target_id": 245,
            "target_slot": 0,
            "type": "SAM3_TRACK_DATA"
          },
          {
            "id": 464,
            "origin_id": 246,
            "origin_slot": 0,
            "target_id": 245,
            "target_slot": 1,
            "type": "SAM3_TRACK_DATA"
          },
          {
            "id": 476,
            "origin_id": 247,
            "origin_slot": 0,
            "target_id": 245,
            "target_slot": 4,
            "type": "BOOLEAN"
          },
          {
            "id": 463,
            "origin_id": 243,
            "origin_slot": 0,
            "target_id": 246,
            "target_slot": 1,
            "type": "MODEL"
          },
          {
            "id": 488,
            "origin_id": 261,
            "origin_slot": 0,
            "target_id": 246,
            "target_slot": 3,
            "type": "CONDITIONING"
          },
          {
            "id": 466,
            "origin_id": 245,
            "origin_slot": 0,
            "target_id": 248,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 465,
            "origin_id": 245,
            "origin_slot": 1,
            "target_id": 249,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 124,
            "origin_id": 227,
            "origin_slot": 1,
            "target_id": 250,
            "target_slot": 0,
            "type": "LATENT"
          },
          {
            "id": 407,
            "origin_id": 217,
            "origin_slot": 0,
            "target_id": 250,
            "target_slot": 1,
            "type": "VAE"
          },
          {
            "id": 483,
            "origin_id": 250,
            "origin_slot": 0,
            "target_id": 251,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 484,
            "origin_id": 251,
            "origin_slot": 0,
            "target_id": 252,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 482,
            "origin_id": 253,
            "origin_slot": 0,
            "target_id": 252,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 196,
            "origin_id": 222,
            "origin_slot": 0,
            "target_id": 256,
            "target_slot": 0,
            "type": "CLIP_VISION"
          },
          {
            "id": 8,
            "origin_id": 221,
            "origin_slot": 0,
            "target_id": 257,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 7,
            "origin_id": 221,
            "origin_slot": 0,
            "target_id": 258,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 325,
            "origin_id": 258,
            "origin_slot": 0,
            "target_id": 259,
            "target_slot": 0,
            "type": "CONDITIONING"
          },
          {
            "id": 326,
            "origin_id": 257,
            "origin_slot": 0,
            "target_id": 259,
            "target_slot": 1,
            "type": "CONDITIONING"
          },
          {
            "id": 406,
            "origin_id": 217,
            "origin_slot": 0,
            "target_id": 259,
            "target_slot": 2,
            "type": "VAE"
          },
          {
            "id": 420,
            "origin_id": 218,
            "origin_slot": 0,
            "target_id": 259,
            "target_slot": 3,
            "type": "IMAGE"
          },
          {
            "id": 467,
            "origin_id": 245,
            "origin_slot": 0,
            "target_id": 259,
            "target_slot": 4,
            "type": "IMAGE"
          },
          {
            "id": 472,
            "origin_id": 245,
            "origin_slot": 1,
            "target_id": 259,
            "target_slot": 6,
            "type": "IMAGE"
          },
          {
            "id": 404,
            "origin_id": 256,
            "origin_slot": 0,
            "target_id": 259,
            "target_slot": 7,
            "type": "CLIP_VISION_OUTPUT"
          },
          {
            "id": 414,
            "origin_id": 220,
            "origin_slot": 0,
            "target_id": 259,
            "target_slot": 9,
            "type": "INT"
          },
          {
            "id": 415,
            "origin_id": 220,
            "origin_slot": 1,
            "target_id": 259,
            "target_slot": 10,
            "type": "INT"
          },
          {
            "id": 416,
            "origin_id": 220,
            "origin_slot": 2,
            "target_id": 259,
            "target_slot": 11,
            "type": "INT"
          },
          {
            "id": 475,
            "origin_id": 247,
            "origin_slot": 0,
            "target_id": 259,
            "target_slot": 18,
            "type": "BOOLEAN"
          },
          {
            "id": 489,
            "origin_id": 243,
            "origin_slot": 1,
            "target_id": 261,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 409,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 219,
            "target_slot": 0,
            "type": "VIDEO"
          },
          {
            "id": 469,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 246,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 408,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 256,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 473,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 259,
            "target_slot": 5,
            "type": "IMAGE"
          },
          {
            "id": 486,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 253,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 485,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 259,
            "target_slot": 8,
            "type": "IMAGE"
          },
          {
            "id": 499,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 258,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 502,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 240,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 504,
            "origin_id": -10,
            "origin_slot": 5,
            "target_id": 247,
            "target_slot": 0,
            "type": "BOOLEAN"
          },
          {
            "id": 505,
            "origin_id": -10,
            "origin_slot": 6,
            "target_id": 236,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 506,
            "origin_id": -10,
            "origin_slot": 7,
            "target_id": 237,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 507,
            "origin_id": -10,
            "origin_slot": 13,
            "target_id": 255,
            "target_slot": 0,
            "type": "BOOLEAN"
          },
          {
            "id": 508,
            "origin_id": -10,
            "origin_slot": 14,
            "target_id": 223,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 509,
            "origin_id": -10,
            "origin_slot": 15,
            "target_id": 216,
            "target_slot": 1,
            "type": "COMBO"
          },
          {
            "id": 510,
            "origin_id": -10,
            "origin_slot": 17,
            "target_id": 221,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 511,
            "origin_id": -10,
            "origin_slot": 18,
            "target_id": 217,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 512,
            "origin_id": -10,
            "origin_slot": 19,
            "target_id": 222,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 513,
            "origin_id": -10,
            "origin_slot": 20,
            "target_id": 242,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 514,
            "origin_id": -10,
            "origin_slot": 21,
            "target_id": 261,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 515,
            "origin_id": -10,
            "origin_slot": 22,
            "target_id": 243,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 546,
            "origin_id": 252,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 550,
            "origin_id": -10,
            "origin_slot": 8,
            "target_id": 235,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 551,
            "origin_id": -10,
            "origin_slot": 9,
            "target_id": 259,
            "target_slot": 17,
            "type": "INT"
          },
          {
            "id": 552,
            "origin_id": -10,
            "origin_slot": 10,
            "target_id": 259,
            "target_slot": 13,
            "type": "FLOAT"
          },
          {
            "id": 553,
            "origin_id": -10,
            "origin_slot": 11,
            "target_id": 259,
            "target_slot": 14,
            "type": "FLOAT"
          },
          {
            "id": 554,
            "origin_id": -10,
            "origin_slot": 12,
            "target_id": 259,
            "target_slot": 15,
            "type": "FLOAT"
          },
          {
            "id": 556,
            "origin_id": -10,
            "origin_slot": 9,
            "target_id": 241,
            "target_slot": 2,
            "type": "FLOAT,INT,BOOLEAN"
          },
          {
            "id": 557,
            "origin_id": -10,
            "origin_slot": 8,
            "target_id": 241,
            "target_slot": 1,
            "type": "FLOAT,INT,BOOLEAN"
          },
          {
            "id": 559,
            "origin_id": -10,
            "origin_slot": 23,
            "target_id": 227,
            "target_slot": 7,
            "type": "INT"
          },
          {
            "id": 566,
            "origin_id": 319,
            "origin_slot": 0,
            "target_id": 216,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 567,
            "origin_id": 319,
            "origin_slot": 0,
            "target_id": 232,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 568,
            "origin_id": 223,
            "origin_slot": 0,
            "target_id": 319,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 569,
            "origin_id": -10,
            "origin_slot": 16,
            "target_id": 319,
            "target_slot": 1,
            "type": "COMBO"
          }
        ],
        "name": "Character Replacement (SCAIL-2 Extend)",
        "nodes": [
          {
            "bgcolor": "#335",
            "color": "#223",
            "flags": {},
            "id": 216,
            "inputs": [
              {
                "link": 566,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": 509,
                "localized_name": "lora_name",
                "name": "lora_name",
                "type": "COMBO",
                "widget": {
                  "name": "lora_name"
                }
              },
              {
                "link": null,
                "localized_name": "strength_model",
                "name": "strength_model",
                "type": "FLOAT",
                "widget": {
                  "name": "strength_model"
                }
              }
            ],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": [
                  398,
                  425
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              }
            ],
            "pos": [
              300,
              3590
            ],
            "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.24.0"
            },
            "size": [
              590,
              140
            ],
            "type": "LoraLoaderModelOnly",
            "widgets_values": [
              "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
              0.8
            ]
          },
          {
            "flags": {},
            "id": 217,
            "inputs": [
              {
                "link": 511,
                "localized_name": "vae_name",
                "name": "vae_name",
                "type": "COMBO",
                "widget": {
                  "name": "vae_name"
                }
              }
            ],
            "mode": 0,
            "order": 6,
            "outputs": [
              {
                "links": [
                  406,
                  407
                ],
                "localized_name": "VAE",
                "name": "VAE",
                "type": "VAE"
              }
            ],
            "pos": [
              300,
              4020
            ],
            "properties": {
              "Node name for S&R": "VAELoader",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "vae",
                  "name": "Wan2_1_VAE_bf16.safetensors",
                  "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Wan2_1_VAE_bf16.safetensors"
                }
              ],
              "ver": "0.24.0"
            },
            "size": [
              590,
              140
            ],
            "type": "VAELoader",
            "widgets_values": [
              "Wan2_1_VAE_bf16.safetensors"
            ]
          },
          {
            "flags": {},
            "id": 218,
            "inputs": [
              {
                "link": 491,
                "localized_name": "input",
                "name": "input",
                "type": "IMAGE,MASK"
              },
              {
                "link": null,
                "localized_name": "resize_type",
                "name": "resize_type",
                "type": "COMFY_DYNAMICCOMBO_V3",
                "widget": {
                  "name": "resize_type"
                }
              },
              {
                "link": 444,
                "localized_name": "width",
                "name": "resize_type.width",
                "type": "INT",
                "widget": {
                  "name": "resize_type.width"
                }
              },
              {
                "link": 446,
                "localized_name": "height",
                "name": "resize_type.height",
                "type": "INT",
                "widget": {
                  "name": "resize_type.height"
                }
              },
              {
                "link": null,
                "localized_name": "crop",
                "name": "resize_type.crop",
                "type": "COMBO",
                "widget": {
                  "name": "resize_type.crop"
                }
              },
              {
                "link": null,
                "localized_name": "scale_method",
                "name": "scale_method",
                "type": "COMBO",
                "widget": {
                  "name": "scale_method"
                }
              }
            ],
            "mode": 0,
            "order": 7,
            "outputs": [
              {
                "links": [
                  420,
                  492,
                  493
                ],
                "localized_name": "resized",
                "name": "resized",
                "type": "IMAGE"
              }
            ],
            "pos": [
              1280,
              4880
            ],
            "properties": {
              "Node name for S&R": "ResizeImageMaskNode",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              154
            ],
            "type": "ResizeImageMaskNode",
            "widgets_values": [
              "scale dimensions",
              512,
              512,
              "center",
              "area"
            ]
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 219,
            "inputs": [
              {
                "link": 409,
                "localized_name": "video",
                "name": "video",
                "type": "VIDEO"
              }
            ],
            "mode": 0,
            "order": 8,
            "outputs": [
              {
                "links": [
                  490
                ],
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "links": null,
                "localized_name": "audio",
                "name": "audio",
                "type": "AUDIO"
              },
              {
                "links": [],
                "localized_name": "fps",
                "name": "fps",
                "type": "FLOAT"
              },
              {
                "links": null,
                "localized_name": "bit_depth",
                "name": "bit_depth",
                "type": "INT"
              }
            ],
            "pos": [
              270,
              4520
            ],
            "properties": {
              "Node name for S&R": "GetVideoComponents",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              230,
              90
            ],
            "type": "GetVideoComponents",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 220,
            "inputs": [
              {
                "link": 492,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 9,
            "outputs": [
              {
                "links": [
                  414
                ],
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "links": [
                  415
                ],
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "links": [
                  416
                ],
                "localized_name": "batch_size",
                "name": "batch_size",
                "type": "INT"
              }
            ],
            "pos": [
              1640,
              4520
            ],
            "properties": {
              "Node name for S&R": "GetImageSize",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              240,
              190
            ],
            "type": "GetImageSize",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 221,
            "inputs": [
              {
                "link": 510,
                "localized_name": "clip_name",
                "name": "clip_name",
                "type": "COMBO",
                "widget": {
                  "name": "clip_name"
                }
              },
              {
                "link": null,
                "localized_name": "type",
                "name": "type",
                "type": "COMBO",
                "widget": {
                  "name": "type"
                }
              },
              {
                "link": null,
                "localized_name": "device",
                "name": "device",
                "shape": 7,
                "type": "COMBO",
                "widget": {
                  "name": "device"
                }
              }
            ],
            "mode": 0,
            "order": 10,
            "outputs": [
              {
                "links": [
                  7,
                  8
                ],
                "localized_name": "CLIP",
                "name": "CLIP",
                "type": "CLIP"
              }
            ],
            "pos": [
              300,
              3790
            ],
            "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.24.0"
            },
            "size": [
              590,
              170
            ],
            "type": "CLIPLoader",
            "widgets_values": [
              "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
              "wan",
              "default"
            ]
          },
          {
            "flags": {},
            "id": 222,
            "inputs": [
              {
                "link": 512,
                "localized_name": "clip_name",
                "name": "clip_name",
                "type": "COMBO",
                "widget": {
                  "name": "clip_name"
                }
              }
            ],
            "mode": 0,
            "order": 11,
            "outputs": [
              {
                "links": [
                  196
                ],
                "localized_name": "CLIP_VISION",
                "name": "CLIP_VISION",
                "type": "CLIP_VISION"
              }
            ],
            "pos": [
              300,
              4230
            ],
            "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.24.0"
            },
            "size": [
              590,
              110
            ],
            "type": "CLIPVisionLoader",
            "widgets_values": [
              "clip_vision_h.safetensors"
            ]
          },
          {
            "flags": {},
            "id": 223,
            "inputs": [
              {
                "link": 508,
                "localized_name": "unet_name",
                "name": "unet_name",
                "type": "COMBO",
                "widget": {
                  "name": "unet_name"
                }
              },
              {
                "link": null,
                "localized_name": "weight_dtype",
                "name": "weight_dtype",
                "type": "COMBO",
                "widget": {
                  "name": "weight_dtype"
                }
              }
            ],
            "mode": 0,
            "order": 12,
            "outputs": [
              {
                "links": [
                  568
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              }
            ],
            "pos": [
              300,
              3190
            ],
            "properties": {
              "Node name for S&R": "UNETLoader",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "diffusion_models",
                  "name": "wan2.1_14B_SCAIL_2_fp16.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/SCAIL-2/resolve/main/diffusion_models/wan2.1_14B_SCAIL_2_fp16.safetensors"
                }
              ],
              "ver": "0.24.0"
            },
            "size": [
              590,
              140
            ],
            "type": "UNETLoader",
            "widgets_values": [
              "wan2.1_14B_SCAIL_2_fp16.safetensors",
              "default"
            ]
          },
          {
            "flags": {},
            "id": 224,
            "inputs": [
              {
                "link": 424,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": null,
                "localized_name": "shift",
                "name": "shift",
                "type": "FLOAT",
                "widget": {
                  "name": "shift"
                }
              }
            ],
            "mode": 0,
            "order": 13,
            "outputs": [
              {
                "links": [
                  417
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              }
            ],
            "pos": [
              2820,
              3430
            ],
            "properties": {
              "Node name for S&R": "ModelSamplingSD3",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "type": "ModelSamplingSD3",
            "widgets_values": [
              5
            ]
          },
          {
            "flags": {},
            "id": 225,
            "inputs": [
              {
                "link": null,
                "localized_name": "sampler_name",
                "name": "sampler_name",
                "type": "COMBO",
                "widget": {
                  "name": "sampler_name"
                }
              }
            ],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  419
                ],
                "localized_name": "SAMPLER",
                "name": "SAMPLER",
                "type": "SAMPLER"
              }
            ],
            "pos": [
              2830,
              3580
            ],
            "properties": {
              "Node name for S&R": "KSamplerSelect",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              260,
              110
            ],
            "type": "KSamplerSelect",
            "widgets_values": [
              "euler"
            ]
          },
          {
            "flags": {},
            "id": 226,
            "inputs": [
              {
                "link": 398,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": null,
                "localized_name": "scheduler",
                "name": "scheduler",
                "type": "COMBO",
                "widget": {
                  "name": "scheduler"
                }
              },
              {
                "link": 428,
                "localized_name": "steps",
                "name": "steps",
                "type": "INT",
                "widget": {
                  "name": "steps"
                }
              },
              {
                "link": null,
                "localized_name": "denoise",
                "name": "denoise",
                "type": "FLOAT",
                "widget": {
                  "name": "denoise"
                }
              }
            ],
            "mode": 0,
            "order": 14,
            "outputs": [
              {
                "links": [
                  418
                ],
                "localized_name": "SIGMAS",
                "name": "SIGMAS",
                "type": "SIGMAS"
              }
            ],
            "pos": [
              2830,
              3730
            ],
            "properties": {
              "Node name for S&R": "BasicScheduler",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              260,
              170
            ],
            "type": "BasicScheduler",
            "widgets_values": [
              "simple",
              6,
              1
            ]
          },
          {
            "flags": {},
            "id": 227,
            "inputs": [
              {
                "link": 417,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": 333,
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "link": 334,
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "link": 419,
                "localized_name": "sampler",
                "name": "sampler",
                "type": "SAMPLER"
              },
              {
                "link": 418,
                "localized_name": "sigmas",
                "name": "sigmas",
                "type": "SIGMAS"
              },
              {
                "link": 335,
                "localized_name": "latent_image",
                "name": "latent_image",
                "type": "LATENT"
              },
              {
                "link": null,
                "localized_name": "add_noise",
                "name": "add_noise",
                "type": "BOOLEAN",
                "widget": {
                  "name": "add_noise"
                }
              },
              {
                "link": 559,
                "localized_name": "noise_seed",
                "name": "noise_seed",
                "type": "INT",
                "widget": {
                  "name": "noise_seed"
                }
              },
              {
                "link": 431,
                "localized_name": "cfg",
                "name": "cfg",
                "type": "FLOAT",
                "widget": {
                  "name": "cfg"
                }
              }
            ],
            "mode": 0,
            "order": 15,
            "outputs": [
              {
                "links": [],
                "localized_name": "output",
                "name": "output",
                "type": "LATENT"
              },
              {
                "links": [
                  124
                ],
                "localized_name": "denoised_output",
                "name": "denoised_output",
                "type": "LATENT"
              }
            ],
            "pos": [
              3140,
              3430
            ],
            "properties": {
              "Node name for S&R": "SamplerCustom",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              670
            ],
            "type": "SamplerCustom",
            "widgets_values": [
              true,
              1,
              "fixed",
              1
            ]
          },
          {
            "flags": {},
            "id": 228,
            "inputs": [
              {
                "link": null,
                "localized_name": "value",
                "name": "value",
                "type": "INT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  427
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              }
            ],
            "pos": [
              2090,
              3760
            ],
            "properties": {
              "Node name for S&R": "PrimitiveInt",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Int (Steps)",
            "type": "PrimitiveInt",
            "widgets_values": [
              6,
              "fixed"
            ]
          },
          {
            "flags": {},
            "id": 229,
            "inputs": [
              {
                "link": null,
                "localized_name": "value",
                "name": "value",
                "type": "FLOAT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  430
                ],
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              }
            ],
            "pos": [
              2090,
              3930
            ],
            "properties": {
              "Node name for S&R": "PrimitiveFloat",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Float (CFG)",
            "type": "PrimitiveFloat",
            "widgets_values": [
              1
            ]
          },
          {
            "flags": {},
            "id": 230,
            "inputs": [
              {
                "link": null,
                "localized_name": "value",
                "name": "value",
                "type": "INT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  426
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              }
            ],
            "pos": [
              2090,
              3390
            ],
            "properties": {
              "Node name for S&R": "PrimitiveInt",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Int (Steps)",
            "type": "PrimitiveInt",
            "widgets_values": [
              40,
              "fixed"
            ]
          },
          {
            "flags": {},
            "id": 231,
            "inputs": [
              {
                "link": null,
                "localized_name": "value",
                "name": "value",
                "type": "FLOAT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  429
                ],
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              }
            ],
            "pos": [
              2090,
              3540
            ],
            "properties": {
              "Node name for S&R": "PrimitiveFloat",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Float (CFG)",
            "type": "PrimitiveFloat",
            "widgets_values": [
              5
            ]
          },
          {
            "flags": {},
            "id": 232,
            "inputs": [
              {
                "link": 567,
                "localized_name": "on_false",
                "name": "on_false",
                "type": "MODEL"
              },
              {
                "link": 425,
                "localized_name": "on_true",
                "name": "on_true",
                "type": "MODEL"
              },
              {
                "link": 432,
                "localized_name": "switch",
                "name": "switch",
                "type": "BOOLEAN",
                "widget": {
                  "name": "switch"
                }
              }
            ],
            "mode": 0,
            "order": 16,
            "outputs": [
              {
                "links": [
                  424
                ],
                "localized_name": "output",
                "name": "output",
                "type": "MODEL"
              }
            ],
            "pos": [
              2430,
              3370
            ],
            "properties": {
              "Node name for S&R": "ComfySwitchNode",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              130
            ],
            "title": "Switch (Model)",
            "type": "ComfySwitchNode",
            "widgets_values": [
              false
            ]
          },
          {
            "flags": {},
            "id": 233,
            "inputs": [
              {
                "link": 426,
                "localized_name": "on_false",
                "name": "on_false",
                "type": "INT"
              },
              {
                "link": 427,
                "localized_name": "on_true",
                "name": "on_true",
                "type": "INT"
              },
              {
                "link": 433,
                "localized_name": "switch",
                "name": "switch",
                "type": "BOOLEAN",
                "widget": {
                  "name": "switch"
                }
              }
            ],
            "mode": 0,
            "order": 17,
            "outputs": [
              {
                "links": [
                  428
                ],
                "localized_name": "output",
                "name": "output",
                "type": "INT"
              }
            ],
            "pos": [
              2430,
              3560
            ],
            "properties": {
              "Node name for S&R": "ComfySwitchNode",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              130
            ],
            "title": "Switch (Steps)",
            "type": "ComfySwitchNode",
            "widgets_values": [
              false
            ]
          },
          {
            "flags": {},
            "id": 234,
            "inputs": [
              {
                "link": 429,
                "localized_name": "on_false",
                "name": "on_false",
                "type": "FLOAT"
              },
              {
                "link": 430,
                "localized_name": "on_true",
                "name": "on_true",
                "type": "FLOAT"
              },
              {
                "link": 434,
                "localized_name": "switch",
                "name": "switch",
                "type": "BOOLEAN",
                "widget": {
                  "name": "switch"
                }
              }
            ],
            "mode": 0,
            "order": 18,
            "outputs": [
              {
                "links": [
                  431
                ],
                "localized_name": "output",
                "name": "output",
                "type": "FLOAT"
              }
            ],
            "pos": [
              2430,
              3740
            ],
            "properties": {
              "Node name for S&R": "ComfySwitchNode",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              130
            ],
            "title": "Switch (Steps)",
            "type": "ComfySwitchNode",
            "widgets_values": [
              false
            ]
          },
          {
            "flags": {},
            "id": 235,
            "inputs": [
              {
                "link": 490,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 450,
                "localized_name": "batch_index",
                "name": "batch_index",
                "type": "INT",
                "widget": {
                  "name": "batch_index"
                }
              },
              {
                "link": 550,
                "localized_name": "length",
                "name": "length",
                "type": "INT",
                "widget": {
                  "name": "length"
                }
              }
            ],
            "mode": 0,
            "order": 19,
            "outputs": [
              {
                "links": [
                  491
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              880,
              4510
            ],
            "properties": {
              "Node name for S&R": "ImageFromBatch",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              140
            ],
            "type": "ImageFromBatch",
            "widgets_values": [
              0,
              81
            ]
          },
          {
            "flags": {},
            "id": 236,
            "inputs": [
              {
                "link": 505,
                "localized_name": "value",
                "name": "value",
                "type": "INT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 20,
            "outputs": [
              {
                "links": [
                  441
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              }
            ],
            "pos": [
              250,
              4840
            ],
            "properties": {
              "Node name for S&R": "PrimitiveInt",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Int (Width)",
            "type": "PrimitiveInt",
            "widgets_values": [
              896,
              "fixed"
            ]
          },
          {
            "flags": {},
            "id": 237,
            "inputs": [
              {
                "link": 506,
                "localized_name": "value",
                "name": "value",
                "type": "INT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 21,
            "outputs": [
              {
                "links": [
                  445
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              }
            ],
            "pos": [
              250,
              5020
            ],
            "properties": {
              "Node name for S&R": "PrimitiveInt",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Int (Height)",
            "type": "PrimitiveInt",
            "widgets_values": [
              512,
              "fixed"
            ]
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 238,
            "inputs": [
              {
                "label": "a",
                "link": 441,
                "localized_name": "values.a",
                "name": "values.a",
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "b",
                "link": null,
                "localized_name": "values.b",
                "name": "values.b",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "link": null,
                "localized_name": "expression",
                "name": "expression",
                "type": "STRING",
                "widget": {
                  "name": "expression"
                }
              }
            ],
            "mode": 0,
            "order": 22,
            "outputs": [
              {
                "links": [],
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              },
              {
                "links": [
                  444
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "BOOL",
                "name": "BOOL",
                "type": "BOOLEAN"
              }
            ],
            "pos": [
              690,
              4870
            ],
            "properties": {
              "Node name for S&R": "ComfyMathExpression",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              230,
              80
            ],
            "type": "ComfyMathExpression",
            "widgets_values": [
              "(a // 32) * 32"
            ]
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 239,
            "inputs": [
              {
                "label": "a",
                "link": 445,
                "localized_name": "values.a",
                "name": "values.a",
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "b",
                "link": null,
                "localized_name": "values.b",
                "name": "values.b",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "link": null,
                "localized_name": "expression",
                "name": "expression",
                "type": "STRING",
                "widget": {
                  "name": "expression"
                }
              }
            ],
            "mode": 0,
            "order": 23,
            "outputs": [
              {
                "links": [],
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              },
              {
                "links": [
                  446
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "BOOL",
                "name": "BOOL",
                "type": "BOOLEAN"
              }
            ],
            "pos": [
              690,
              5050
            ],
            "properties": {
              "Node name for S&R": "ComfyMathExpression",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              230,
              80
            ],
            "type": "ComfyMathExpression",
            "widgets_values": [
              "(a // 32) * 32"
            ]
          },
          {
            "flags": {},
            "id": 240,
            "inputs": [
              {
                "link": 502,
                "localized_name": "value",
                "name": "value",
                "type": "INT",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 24,
            "outputs": [
              {
                "links": [
                  447
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              }
            ],
            "pos": [
              270,
              4580
            ],
            "properties": {
              "Node name for S&R": "PrimitiveInt",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Int (segment index)",
            "type": "PrimitiveInt",
            "widgets_values": [
              2,
              "fixed"
            ]
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 241,
            "inputs": [
              {
                "label": "a",
                "link": 447,
                "localized_name": "values.a",
                "name": "values.a",
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "b",
                "link": 557,
                "localized_name": "values.b",
                "name": "values.b",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "c",
                "link": 556,
                "localized_name": "values.c",
                "name": "values.c",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "label": "d",
                "link": null,
                "localized_name": "values.d",
                "name": "values.d",
                "shape": 7,
                "type": "FLOAT,INT,BOOLEAN"
              },
              {
                "link": null,
                "localized_name": "expression",
                "name": "expression",
                "type": "STRING",
                "widget": {
                  "name": "expression"
                }
              }
            ],
            "mode": 0,
            "order": 25,
            "outputs": [
              {
                "links": null,
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              },
              {
                "links": [
                  450
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "BOOL",
                "name": "BOOL",
                "type": "BOOLEAN"
              }
            ],
            "pos": [
              580,
              4610
            ],
            "properties": {
              "Node name for S&R": "ComfyMathExpression",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              230,
              120
            ],
            "type": "ComfyMathExpression",
            "widgets_values": [
              "(b - c) * (a - 1)"
            ]
          },
          {
            "flags": {},
            "id": 242,
            "inputs": [
              {
                "link": 454,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              },
              {
                "link": 513,
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                }
              }
            ],
            "mode": 0,
            "order": 26,
            "outputs": [
              {
                "links": [
                  461
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              660,
              5380
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.19.3"
            },
            "size": [
              380,
              160
            ],
            "type": "CLIPTextEncode",
            "widgets_values": [
              "human"
            ]
          },
          {
            "flags": {},
            "id": 243,
            "inputs": [
              {
                "link": 515,
                "localized_name": "ckpt_name",
                "name": "ckpt_name",
                "type": "COMBO",
                "widget": {
                  "name": "ckpt_name"
                }
              }
            ],
            "mode": 0,
            "order": 27,
            "outputs": [
              {
                "links": [
                  458,
                  463
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              },
              {
                "links": [
                  454,
                  489
                ],
                "localized_name": "CLIP",
                "name": "CLIP",
                "type": "CLIP"
              },
              {
                "links": [],
                "localized_name": "VAE",
                "name": "VAE",
                "type": "VAE"
              }
            ],
            "pos": [
              270,
              5360
            ],
            "properties": {
              "Node name for S&R": "CheckpointLoaderSimple",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "models": [
                {
                  "directory": "checkpoints",
                  "name": "sam3.1_multiplex_fp16.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors"
                }
              ],
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.19.3"
            },
            "size": [
              330,
              160
            ],
            "type": "CheckpointLoaderSimple",
            "widgets_values": [
              "sam3.1_multiplex_fp16.safetensors"
            ]
          },
          {
            "flags": {},
            "id": 244,
            "inputs": [
              {
                "label": "images",
                "link": 493,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "label": "model",
                "link": 458,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "label": "initial_mask",
                "link": null,
                "localized_name": "initial_mask",
                "name": "initial_mask",
                "shape": 7,
                "type": "MASK"
              },
              {
                "label": "conditioning",
                "link": 461,
                "localized_name": "conditioning",
                "name": "conditioning",
                "shape": 7,
                "type": "CONDITIONING"
              },
              {
                "link": null,
                "localized_name": "detection_threshold",
                "name": "detection_threshold",
                "type": "FLOAT",
                "widget": {
                  "name": "detection_threshold"
                }
              },
              {
                "link": null,
                "localized_name": "max_objects",
                "name": "max_objects",
                "type": "INT",
                "widget": {
                  "name": "max_objects"
                }
              },
              {
                "link": null,
                "localized_name": "detect_interval",
                "name": "detect_interval",
                "type": "INT",
                "widget": {
                  "name": "detect_interval"
                }
              }
            ],
            "mode": 0,
            "order": 28,
            "outputs": [
              {
                "links": [
                  460
                ],
                "localized_name": "track_data",
                "name": "track_data",
                "type": "SAM3_TRACK_DATA"
              }
            ],
            "pos": [
              1190,
              5340
            ],
            "properties": {
              "Node name for S&R": "SAM3_VideoTrack",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              280,
              250
            ],
            "type": "SAM3_VideoTrack",
            "widgets_values": [
              0.5,
              4,
              1
            ]
          },
          {
            "flags": {},
            "id": 245,
            "inputs": [
              {
                "link": 460,
                "localized_name": "driving_track_data",
                "name": "driving_track_data",
                "type": "SAM3_TRACK_DATA"
              },
              {
                "link": 464,
                "localized_name": "ref_track_data",
                "name": "ref_track_data",
                "shape": 7,
                "type": "SAM3_TRACK_DATA"
              },
              {
                "link": null,
                "localized_name": "object_indices",
                "name": "object_indices",
                "type": "STRING",
                "widget": {
                  "name": "object_indices"
                }
              },
              {
                "link": null,
                "localized_name": "sort_by",
                "name": "sort_by",
                "type": "COMBO",
                "widget": {
                  "name": "sort_by"
                }
              },
              {
                "link": 476,
                "localized_name": "replacement_mode",
                "name": "replacement_mode",
                "type": "BOOLEAN",
                "widget": {
                  "name": "replacement_mode"
                }
              }
            ],
            "mode": 0,
            "order": 29,
            "outputs": [
              {
                "links": [
                  466,
                  467
                ],
                "localized_name": "pose_video_mask",
                "name": "pose_video_mask",
                "type": "IMAGE"
              },
              {
                "links": [
                  465,
                  472
                ],
                "localized_name": "reference_image_mask",
                "name": "reference_image_mask",
                "type": "IMAGE"
              }
            ],
            "pos": [
              1550,
              5490
            ],
            "properties": {
              "Node name for S&R": "SCAIL2ColoredMask",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              370,
              200
            ],
            "type": "SCAIL2ColoredMask",
            "widgets_values": [
              "",
              "left_to_right",
              true
            ]
          },
          {
            "flags": {},
            "id": 246,
            "inputs": [
              {
                "label": "images",
                "link": 469,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "label": "model",
                "link": 463,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "label": "initial_mask",
                "link": null,
                "localized_name": "initial_mask",
                "name": "initial_mask",
                "shape": 7,
                "type": "MASK"
              },
              {
                "label": "conditioning",
                "link": 488,
                "localized_name": "conditioning",
                "name": "conditioning",
                "shape": 7,
                "type": "CONDITIONING"
              },
              {
                "link": null,
                "localized_name": "detection_threshold",
                "name": "detection_threshold",
                "type": "FLOAT",
                "widget": {
                  "name": "detection_threshold"
                }
              },
              {
                "link": null,
                "localized_name": "max_objects",
                "name": "max_objects",
                "type": "INT",
                "widget": {
                  "name": "max_objects"
                }
              },
              {
                "link": null,
                "localized_name": "detect_interval",
                "name": "detect_interval",
                "type": "INT",
                "widget": {
                  "name": "detect_interval"
                }
              }
            ],
            "mode": 0,
            "order": 30,
            "outputs": [
              {
                "links": [
                  464
                ],
                "localized_name": "track_data",
                "name": "track_data",
                "type": "SAM3_TRACK_DATA"
              }
            ],
            "pos": [
              1190,
              5640
            ],
            "properties": {
              "Node name for S&R": "SAM3_VideoTrack",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              280,
              250
            ],
            "type": "SAM3_VideoTrack",
            "widgets_values": [
              0.5,
              4,
              1
            ]
          },
          {
            "flags": {},
            "id": 247,
            "inputs": [
              {
                "link": 504,
                "localized_name": "value",
                "name": "value",
                "type": "BOOLEAN",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 31,
            "outputs": [
              {
                "links": [
                  475,
                  476
                ],
                "localized_name": "BOOLEAN",
                "name": "BOOLEAN",
                "type": "BOOLEAN"
              }
            ],
            "pos": [
              1660,
              4030
            ],
            "properties": {
              "Node name for S&R": "PrimitiveBoolean",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Boolean （Replace Mode）",
            "type": "PrimitiveBoolean",
            "widgets_values": [
              true
            ]
          },
          {
            "flags": {},
            "id": 248,
            "inputs": [
              {
                "link": 466,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              }
            ],
            "mode": 4,
            "order": 32,
            "outputs": [],
            "pos": [
              2060,
              4500
            ],
            "properties": {
              "Node name for S&R": "PreviewImage",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              350,
              1190
            ],
            "type": "PreviewImage",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 249,
            "inputs": [
              {
                "link": 465,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              }
            ],
            "mode": 4,
            "order": 33,
            "outputs": [],
            "pos": [
              2460,
              4500
            ],
            "properties": {
              "Node name for S&R": "PreviewImage",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              230,
              310
            ],
            "type": "PreviewImage",
            "widgets_values": []
          },
          {
            "flags": {
              "collapsed": false
            },
            "id": 250,
            "inputs": [
              {
                "link": 124,
                "localized_name": "samples",
                "name": "samples",
                "type": "LATENT"
              },
              {
                "link": 407,
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE"
              }
            ],
            "mode": 0,
            "order": 34,
            "outputs": [
              {
                "links": [
                  483
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              2920,
              4510
            ],
            "properties": {
              "Node name for S&R": "VAEDecode",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              100
            ],
            "type": "VAEDecode",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 251,
            "inputs": [
              {
                "link": 483,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "batch_index",
                "name": "batch_index",
                "type": "INT",
                "widget": {
                  "name": "batch_index"
                }
              },
              {
                "link": null,
                "localized_name": "length",
                "name": "length",
                "type": "INT",
                "widget": {
                  "name": "length"
                }
              }
            ],
            "mode": 0,
            "order": 35,
            "outputs": [
              {
                "links": [
                  484
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              2920,
              4680
            ],
            "properties": {
              "Node name for S&R": "ImageFromBatch",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              140
            ],
            "type": "ImageFromBatch",
            "widgets_values": [
              5,
              4096
            ]
          },
          {
            "flags": {},
            "id": 252,
            "inputs": [
              {
                "link": 484,
                "localized_name": "image_target",
                "name": "image_target",
                "type": "IMAGE"
              },
              {
                "link": 482,
                "localized_name": "image_ref",
                "name": "image_ref",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "method",
                "name": "method",
                "type": "COMBO",
                "widget": {
                  "name": "method"
                }
              },
              {
                "link": null,
                "localized_name": "source_stats",
                "name": "source_stats",
                "type": "COMFY_DYNAMICCOMBO_V3",
                "widget": {
                  "name": "source_stats"
                }
              },
              {
                "link": null,
                "localized_name": "strength",
                "name": "strength",
                "type": "FLOAT",
                "widget": {
                  "name": "strength"
                }
              }
            ],
            "mode": 0,
            "order": 36,
            "outputs": [
              {
                "links": [
                  546
                ],
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "pos": [
              2920,
              5050
            ],
            "properties": {
              "Node name for S&R": "ColorTransfer",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              126
            ],
            "type": "ColorTransfer",
            "widgets_values": [
              "reinhard_lab",
              "per_frame",
              1
            ]
          },
          {
            "flags": {},
            "id": 253,
            "inputs": [
              {
                "link": 486,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "batch_index",
                "name": "batch_index",
                "type": "INT",
                "widget": {
                  "name": "batch_index"
                }
              },
              {
                "link": null,
                "localized_name": "length",
                "name": "length",
                "type": "INT",
                "widget": {
                  "name": "length"
                }
              }
            ],
            "mode": 0,
            "order": 37,
            "outputs": [
              {
                "links": [
                  482
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              2920,
              4870
            ],
            "properties": {
              "Node name for S&R": "ImageFromBatch",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              140
            ],
            "type": "ImageFromBatch",
            "widgets_values": [
              -1,
              1
            ]
          },
          {
            "flags": {},
            "id": 255,
            "inputs": [
              {
                "link": 507,
                "localized_name": "value",
                "name": "value",
                "type": "BOOLEAN",
                "widget": {
                  "name": "value"
                }
              }
            ],
            "mode": 0,
            "order": 38,
            "outputs": [
              {
                "links": [
                  432,
                  433,
                  434
                ],
                "localized_name": "BOOLEAN",
                "name": "BOOLEAN",
                "type": "BOOLEAN"
              }
            ],
            "pos": [
              2440,
              3950
            ],
            "properties": {
              "Node name for S&R": "PrimitiveBoolean",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              270,
              110
            ],
            "title": "Boolean (Enable Distill LoRA?)",
            "type": "PrimitiveBoolean",
            "widgets_values": [
              true
            ]
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 256,
            "inputs": [
              {
                "link": 196,
                "localized_name": "clip_vision",
                "name": "clip_vision",
                "type": "CLIP_VISION"
              },
              {
                "link": 408,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "crop",
                "name": "crop",
                "type": "COMBO",
                "widget": {
                  "name": "crop"
                }
              }
            ],
            "mode": 0,
            "order": 39,
            "outputs": [
              {
                "links": [
                  404
                ],
                "localized_name": "CLIP_VISION_OUTPUT",
                "name": "CLIP_VISION_OUTPUT",
                "type": "CLIP_VISION_OUTPUT"
              }
            ],
            "pos": [
              1230,
              4310
            ],
            "properties": {
              "Node name for S&R": "CLIPVisionEncode",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              230,
              60
            ],
            "type": "CLIPVisionEncode",
            "widgets_values": [
              "none"
            ]
          },
          {
            "bgcolor": "#335",
            "color": "#223",
            "flags": {},
            "id": 257,
            "inputs": [
              {
                "link": 8,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              },
              {
                "link": null,
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                }
              }
            ],
            "mode": 0,
            "order": 40,
            "outputs": [
              {
                "links": [
                  326
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              1030,
              4020
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              520,
              210
            ],
            "type": "CLIPTextEncode",
            "widgets_values": [
              ""
            ]
          },
          {
            "bgcolor": "#353",
            "color": "#232",
            "flags": {},
            "id": 258,
            "inputs": [
              {
                "link": 7,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              },
              {
                "link": 499,
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                }
              }
            ],
            "mode": 0,
            "order": 41,
            "outputs": [
              {
                "links": [
                  325
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              1020,
              3180
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              520,
              720
            ],
            "type": "CLIPTextEncode",
            "widgets_values": [
              "A young woman with dark hair tied in a neat high bun, with a few loose strands framing her face, is dancing outdoors on a sunny coastal hillside. She has a normal-sized head and a slim face, with no hat, no headwear, and no oversized hair volume. She wears a fitted black long-sleeve crop top with a shoulder cutout, extremely baggy black cargo pants with straps and pockets, and chunky black combat boots. She performs energetic dance moves with one leg lifted and arms extended, moving naturally in front of a large tree, a small white stone house with a terracotta roof, and a bright blue sea under a clear sky with light clouds."
            ]
          },
          {
            "bgcolor": "#533",
            "color": "#322",
            "flags": {},
            "id": 259,
            "inputs": [
              {
                "link": 325,
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "link": 326,
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "link": 406,
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE"
              },
              {
                "link": 420,
                "localized_name": "pose_video",
                "name": "pose_video",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 467,
                "localized_name": "pose_video_mask",
                "name": "pose_video_mask",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 473,
                "localized_name": "reference_image",
                "name": "reference_image",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 472,
                "localized_name": "reference_image_mask",
                "name": "reference_image_mask",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 404,
                "localized_name": "clip_vision_output",
                "name": "clip_vision_output",
                "shape": 7,
                "type": "CLIP_VISION_OUTPUT"
              },
              {
                "link": 485,
                "localized_name": "previous_frames",
                "name": "previous_frames",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": 414,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 415,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              },
              {
                "link": 416,
                "localized_name": "length",
                "name": "length",
                "type": "INT",
                "widget": {
                  "name": "length"
                }
              },
              {
                "link": null,
                "localized_name": "batch_size",
                "name": "batch_size",
                "type": "INT",
                "widget": {
                  "name": "batch_size"
                }
              },
              {
                "link": 552,
                "localized_name": "pose_strength",
                "name": "pose_strength",
                "type": "FLOAT",
                "widget": {
                  "name": "pose_strength"
                }
              },
              {
                "link": 553,
                "localized_name": "pose_start",
                "name": "pose_start",
                "type": "FLOAT",
                "widget": {
                  "name": "pose_start"
                }
              },
              {
                "link": 554,
                "localized_name": "pose_end",
                "name": "pose_end",
                "type": "FLOAT",
                "widget": {
                  "name": "pose_end"
                }
              },
              {
                "link": null,
                "localized_name": "video_frame_offset",
                "name": "video_frame_offset",
                "type": "INT",
                "widget": {
                  "name": "video_frame_offset"
                }
              },
              {
                "link": 551,
                "localized_name": "previous_frame_count",
                "name": "previous_frame_count",
                "type": "INT",
                "widget": {
                  "name": "previous_frame_count"
                }
              },
              {
                "link": 475,
                "localized_name": "replacement_mode",
                "name": "replacement_mode",
                "shape": 7,
                "type": "BOOLEAN",
                "widget": {
                  "name": "replacement_mode"
                }
              }
            ],
            "mode": 0,
            "order": 42,
            "outputs": [
              {
                "links": [
                  333
                ],
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "links": [
                  334
                ],
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "links": [
                  335
                ],
                "localized_name": "latent",
                "name": "latent",
                "type": "LATENT"
              },
              {
                "links": [],
                "localized_name": "video_frame_offset",
                "name": "video_frame_offset",
                "type": "INT"
              }
            ],
            "pos": [
              1650,
              3310
            ],
            "properties": {
              "Node name for S&R": "WanSCAILToVideo",
              "cnr_id": "comfy-core",
              "ver": "0.24.0"
            },
            "size": [
              310,
              580
            ],
            "type": "WanSCAILToVideo",
            "widgets_values": [
              512,
              896,
              65,
              1,
              1,
              0,
              1,
              0,
              5,
              true
            ]
          },
          {
            "flags": {},
            "id": 261,
            "inputs": [
              {
                "link": 489,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              },
              {
                "link": 514,
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                }
              }
            ],
            "mode": 0,
            "order": 43,
            "outputs": [
              {
                "links": [
                  488
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              670,
              5710
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.19.3"
            },
            "size": [
              380,
              160
            ],
            "type": "CLIPTextEncode",
            "widgets_values": [
              "human"
            ]
          },
          {
            "flags": {},
            "id": 319,
            "inputs": [
              {
                "link": 568,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": 569,
                "localized_name": "lora_name",
                "name": "lora_name",
                "type": "COMBO",
                "widget": {
                  "name": "lora_name"
                }
              },
              {
                "link": null,
                "localized_name": "strength_model",
                "name": "strength_model",
                "type": "FLOAT",
                "widget": {
                  "name": "strength_model"
                }
              }
            ],
            "mode": 0,
            "order": 44,
            "outputs": [
              {
                "links": [
                  566,
                  567
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              }
            ],
            "pos": [
              300,
              3390
            ],
            "properties": {
              "Node name for S&R": "LoraLoaderModelOnly",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "loras",
                  "name": "wan2.1_SCAIL_2_DPO_lora_bf16.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/SCAIL-2/resolve/main/loras/wan2.1_SCAIL_2_DPO_lora_bf16.safetensors"
                }
              ],
              "ver": "0.24.0"
            },
            "size": [
              580,
              140
            ],
            "type": "LoraLoaderModelOnly",
            "widgets_values": [
              "wan2.1_SCAIL_2_DPO_lora_bf16.safetensors",
              1
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            3570,
            4500,
            128,
            68
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "7ae88834-7553-45ec-a4e8-bab7d5276b45",
            "linkIds": [
              546
            ],
            "localized_name": "output",
            "name": "output",
            "pos": [
              3594,
              4524
            ],
            "type": "IMAGE"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 17,
          "lastLinkId": 569,
          "lastNodeId": 321,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      }
    ]
  },
  "extra": {
    "VHS_KeepIntermediate": true,
    "VHS_MetadataImage": true,
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "ds": {
      "offset": [
        1165.1145609902678,
        -3753.2996089069056
      ],
      "scale": 0.33372180142770935
    },
    "frontendVersion": "1.45.15"
  },
  "groups": [
    {
      "bounding": [
        630,
        5660,
        689.984375,
        409.96875
      ],
      "color": "#3f789e",
      "flags": {},
      "id": 15,
      "title": "Estimate Segment Count  (frame count: 81, previous frame count: 5)"
    },
    {
      "bounding": [
        1420,
        5490,
        520,
        640
      ],
      "color": "#3f789e",
      "flags": {},
      "id": 16,
      "title": "First segment Preview"
    },
    {
      "bounding": [
        600,
        4300,
        760,
        1840
      ],
      "color": "#3f789e",
      "flags": {},
      "id": 17,
      "title": "Source Video and Reference image"
    }
  ],
  "id": "5e3b2cd8-2119-4be4-87d6-b524515abe69",
  "last_link_id": 569,
  "last_node_id": 321,
  "links": [
    [
      471,
      201,
      0,
      202,
      0,
      "VIDEO"
    ],
    [
      494,
      155,
      0,
      213,
      0,
      "VIDEO"
    ],
    [
      495,
      30,
      0,
      213,
      1,
      "IMAGE"
    ],
    [
      498,
      213,
      0,
      201,
      0,
      "IMAGE"
    ],
    [
      516,
      155,
      0,
      215,
      0,
      "VIDEO"
    ],
    [
      517,
      215,
      1,
      201,
      1,
      "AUDIO"
    ],
    [
      518,
      215,
      2,
      201,
      2,
      "FLOAT"
    ],
    [
      519,
      155,
      0,
      262,
      0,
      "VIDEO"
    ],
    [
      520,
      30,
      0,
      262,
      1,
      "IMAGE"
    ],
    [
      521,
      213,
      0,
      262,
      2,
      "IMAGE"
    ],
    [
      523,
      215,
      0,
      263,
      0,
      "IMAGE"
    ],
    [
      524,
      263,
      2,
      264,
      0,
      "INT"
    ],
    [
      525,
      264,
      1,
      265,
      0,
      "INT"
    ],
    [
      528,
      213,
      0,
      269,
      0,
      "IMAGE"
    ],
    [
      529,
      262,
      0,
      269,
      1,
      "IMAGE"
    ],
    [
      530,
      269,
      0,
      270,
      0,
      "IMAGE"
    ],
    [
      531,
      215,
      1,
      270,
      1,
      "AUDIO"
    ],
    [
      532,
      215,
      2,
      270,
      2,
      "FLOAT"
    ],
    [
      533,
      270,
      0,
      271,
      0,
      "VIDEO"
    ]
  ],
  "nodes": [
    {
      "flags": {},
      "id": 155,
      "inputs": [
        {
          "link": null,
          "localized_name": "file",
          "name": "file",
          "type": "COMBO",
          "widget": {
            "name": "file"
          }
        },
        {
          "link": null,
          "localized_name": "choose file to upload",
          "name": "upload",
          "type": "IMAGEUPLOAD",
          "widget": {
            "name": "upload"
          }
        }
      ],
      "mode": 0,
      "order": 0,
      "outputs": [
        {
          "links": [
            494,
            516,
            519
          ],
          "localized_name": "VIDEO",
          "name": "VIDEO",
          "type": "VIDEO"
        }
      ],
      "pos": [
        610,
        4370
      ],
      "properties": {
        "Node name for S&R": "LoadVideo",
        "cnr_id": "comfy-core",
        "ver": "0.24.0"
      },
      "size": [
        619.96875,
        540
      ],
      "type": "LoadVideo",
      "widgets_values": [
        "driving_outdoor_dance.mp4",
        "image"
      ]
    },
    {
      "flags": {},
      "id": 202,
      "inputs": [
        {
          "link": 471,
          "localized_name": "video",
          "name": "video",
          "type": "VIDEO"
        },
        {
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        },
        {
          "link": null,
          "localized_name": "format",
          "name": "format",
          "type": "COMBO",
          "widget": {
            "name": "format"
          }
        },
        {
          "link": null,
          "localized_name": "codec",
          "name": "codec",
          "type": "COMBO",
          "widget": {
            "name": "codec"
          }
        }
      ],
      "mode": 0,
      "order": 10,
      "outputs": [],
      "pos": [
        1440,
        5630
      ],
      "properties": {
        "Node name for S&R": "SaveVideo",
        "cnr_id": "comfy-core",
        "ver": "0.24.0"
      },
      "size": [
        499.96875,
        489.984375
      ],
      "title": "Save Video (First Segement)",
      "type": "SaveVideo",
      "widgets_values": [
        "video/ComfyUI",
        "auto",
        "auto"
      ]
    },
    {
      "flags": {},
      "id": 30,
      "inputs": [
        {
          "link": null,
          "localized_name": "image",
          "name": "image",
          "type": "COMBO",
          "widget": {
            "name": "image"
          }
        },
        {
          "link": null,
          "localized_name": "choose file to upload",
          "name": "upload",
          "type": "IMAGEUPLOAD",
          "widget": {
            "name": "upload"
          }
        }
      ],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            495,
            520
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "localized_name": "MASK",
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        630,
        4960
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "ver": "0.24.0"
      },
      "size": [
        600,
        459.984375
      ],
      "type": "LoadImage",
      "widgets_values": [
        "reference_streetwear_character.png",
        "image"
      ]
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 201,
      "inputs": [
        {
          "link": 498,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": 517,
          "localized_name": "audio",
          "name": "audio",
          "shape": 7,
          "type": "AUDIO"
        },
        {
          "link": 518,
          "localized_name": "fps",
          "name": "fps",
          "type": "FLOAT",
          "widget": {
            "name": "fps"
          }
        },
        {
          "link": null,
          "localized_name": "bit_depth",
          "name": "bit_depth",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "bit_depth"
          }
        }
      ],
      "mode": 0,
      "order": 7,
      "outputs": [
        {
          "links": [
            471
          ],
          "localized_name": "VIDEO",
          "name": "VIDEO",
          "type": "VIDEO"
        }
      ],
      "pos": [
        1430,
        5560
      ],
      "properties": {
        "Node name for S&R": "CreateVideo",
        "cnr_id": "comfy-core",
        "ver": "0.24.0"
      },
      "size": [
        225,
        8
      ],
      "type": "CreateVideo",
      "widgets_values": [
        30,
        8
      ]
    },
    {
      "flags": {
        "collapsed": false
      },
      "id": 215,
      "inputs": [
        {
          "link": 516,
          "localized_name": "video",
          "name": "video",
          "type": "VIDEO"
        }
      ],
      "mode": 0,
      "order": 4,
      "outputs": [
        {
          "links": [
            523
          ],
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "links": [
            517,
            531
          ],
          "localized_name": "audio",
          "name": "audio",
          "type": "AUDIO"
        },
        {
          "links": [
            518,
            532
          ],
          "localized_name": "fps",
          "name": "fps",
          "type": "FLOAT"
        },
        {
          "links": null,
          "localized_name": "bit_depth",
          "name": "bit_depth",
          "type": "INT"
        }
      ],
      "pos": [
        640,
        5480
      ],
      "properties": {
        "Node name for S&R": "GetVideoComponents",
        "cnr_id": "comfy-core",
        "ver": "0.24.0"
      },
      "size": [
        229.96875,
        150
      ],
      "type": "GetVideoComponents",
      "widgets_values": []
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 263,
      "inputs": [
        {
          "link": 523,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 6,
      "outputs": [
        {
          "links": null,
          "localized_name": "width",
          "name": "width",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "height",
          "name": "height",
          "type": "INT"
        },
        {
          "links": [
            524
          ],
          "localized_name": "batch_size",
          "name": "batch_size",
          "type": "INT"
        }
      ],
      "pos": [
        650,
        5730
      ],
      "properties": {
        "Node name for S&R": "GetImageSize",
        "cnr_id": "comfy-core",
        "ver": "0.24.0"
      },
      "size": [
        225,
        8
      ],
      "type": "GetImageSize",
      "widgets_values": []
    },
    {
      "flags": {
        "collapsed": false
      },
      "id": 264,
      "inputs": [
        {
          "label": "a",
          "link": 524,
          "localized_name": "values.a",
          "name": "values.a",
          "type": "FLOAT,INT,BOOLEAN"
        },
        {
          "label": "b",
          "link": null,
          "localized_name": "values.b",
          "name": "values.b",
          "shape": 7,
          "type": "FLOAT,INT,BOOLEAN"
        },
        {
          "link": null,
          "localized_name": "expression",
          "name": "expression",
          "type": "STRING",
          "widget": {
            "name": "expression"
          }
        }
      ],
      "mode": 0,
      "order": 9,
      "outputs": [
        {
          "links": null,
          "localized_name": "FLOAT",
          "name": "FLOAT",
          "type": "FLOAT"
        },
        {
          "links": [
            525
          ],
          "localized_name": "INT",
          "name": "INT",
          "type": "INT"
        },
        {
          "links": null,
          "localized_name": "BOOL",
          "name": "BOOL",
          "type": "BOOLEAN"
        }
      ],
      "pos": [
        650,
        5800
      ],
      "properties": {
        "Node name for S&R": "ComfyMathExpression",
        "cnr_id": "comfy-core",
        "ver": "0.24.0"
      },
      "size": [
        249.984375,
        189.984375
      ],
      "type": "ComfyMathExpression",
      "widgets_values": [
        "ceil(a / (81 - 5))"
      ]
    },
    {
      "flags": {},
      "id": 265,
      "inputs": [
        {
          "link": 525,
          "localized_name": "source",
          "name": "source",
          "type": "*"
        }
      ],
      "mode": 0,
      "order": 12,
      "outputs": [
        {
          "links": null,
          "localized_name": "STRING",
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        920,
        5800
      ],
      "properties": {
        "Node name for S&R": "PreviewAny",
        "cnr_id": "comfy-core",
        "ver": "0.24.0"
      },
      "size": [
        399.984375,
        259.96875
      ],
      "title": "Preview as Text ()",
      "type": "PreviewAny",
      "widgets_values": [
        null,
        null,
        null
      ]
    },
    {
      "flags": {},
      "id": 269,
      "inputs": [
        {
          "label": "image0",
          "link": 528,
          "localized_name": "images.image0",
          "name": "images.image0",
          "type": "IMAGE"
        },
        {
          "label": "image1",
          "link": 529,
          "localized_name": "images.image1",
          "name": "images.image1",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "label": "image2",
          "link": null,
          "localized_name": "images.image2",
          "name": "images.image2",
          "shape": 7,
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 11,
      "outputs": [
        {
          "links": [
            530
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        2560,
        4340
      ],
      "properties": {
        "Node name for S&R": "BatchImagesNode",
        "cnr_id": "comfy-core",
        "ver": "0.24.0"
      },
      "size": [
        229.96875,
        120
      ],
      "type": "BatchImagesNode",
      "widgets_values": []
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 270,
      "inputs": [
        {
          "link": 530,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": 531,
          "localized_name": "audio",
          "name": "audio",
          "shape": 7,
          "type": "AUDIO"
        },
        {
          "link": 532,
          "localized_name": "fps",
          "name": "fps",
          "type": "FLOAT",
          "widget": {
            "name": "fps"
          }
        },
        {
          "link": null,
          "localized_name": "bit_depth",
          "name": "bit_depth",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "bit_depth"
          }
        }
      ],
      "mode": 0,
      "order": 13,
      "outputs": [
        {
          "links": [
            533
          ],
          "localized_name": "VIDEO",
          "name": "VIDEO",
          "type": "VIDEO"
        }
      ],
      "pos": [
        2560,
        4510
      ],
      "properties": {
        "Node name for S&R": "CreateVideo",
        "cnr_id": "comfy-core",
        "ver": "0.24.0"
      },
      "size": [
        225,
        8
      ],
      "type": "CreateVideo",
      "widgets_values": [
        30,
        8
      ]
    },
    {
      "flags": {},
      "id": 271,
      "inputs": [
        {
          "link": 533,
          "localized_name": "video",
          "name": "video",
          "type": "VIDEO"
        },
        {
          "link": null,
          "localized_name": "filename_prefix",
          "name": "filename_prefix",
          "type": "STRING",
          "widget": {
            "name": "filename_prefix"
          }
        },
        {
          "link": null,
          "localized_name": "format",
          "name": "format",
          "type": "COMBO",
          "widget": {
            "name": "format"
          }
        },
        {
          "link": null,
          "localized_name": "codec",
          "name": "codec",
          "type": "COMBO",
          "widget": {
            "name": "codec"
          }
        }
      ],
      "mode": 0,
      "order": 14,
      "outputs": [],
      "pos": [
        2830,
        4340
      ],
      "properties": {
        "Node name for S&R": "SaveVideo",
        "cnr_id": "comfy-core",
        "ver": "0.24.0"
      },
      "size": [
        1149.984375,
        1110
      ],
      "title": "Save Video (Final output)",
      "type": "SaveVideo",
      "widgets_values": [
        "video/SCAIL2",
        "auto",
        "auto"
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#222",
      "flags": {},
      "id": 274,
      "inputs": [],
      "mode": 0,
      "order": 2,
      "outputs": [],
      "pos": [
        -430,
        4330
      ],
      "properties": {},
      "size": [
        969.984375,
        2199.984375
      ],
      "title": "Note: About SCAIL-2",
      "type": "MarkdownNote",
      "widgets_values": [
        "# SCAIL-2 Character Replacement\n\nThis workflow is using subgraph, please check [here](https://docs.comfy.org/interface/features/subgraph) for more details\n\n## About SCAIL-2\n\n[SCAIL-2](https://huggingface.co/zai-org/SCAIL-2) is an end-to-end character animation model that drives a reference character image with a driving video for character animation or in-video character replacement.\n\n\n---\n\n## Parameters\n\n### Shared (Base & Extend)\n\n| Input | Notes |\n|---|---|\n| `pose_video` | Driving video |\n| `reference_image` | Character to use |\n| `prompt` | Output video description — see **Prompt Writing** below |\n| `replace_mode` | `true` = Replacement (default), `false` = Animation |\n| `segment_index` | `1` first chunk; `2+` continue. Pose offset = `76 × (index − 1)` |\n| `width` / `height` | e.g. 896×512 |\n| `frame_count` | Default **81** (4n+1) |\n| `previous_frame_count` | Overlap **5** |\n| `pose_strength` / `pose_start` / `pose_end` | Pose conditioning |\n| `turbo_mode` | Lightx2v fast preset |\n| `distill_lora` / `dpo_lora` | Speed / quality LoRA strength |\n| `sam3_video_object` | SAM3 text for driving video — see **SAM3** below |\n| `sam3_image_object` | SAM3 text for reference image |\n\n### Extend only\n\n| Input | Notes |\n|---|---|\n| `previous_frames` | IMAGE from previous segment; only last `previous_frame_count` frames used |\n\n---\n\n## Two Modes (`replace_mode`)\n\n| Value | Mode | Summary |\n|---|---|---|\n| `true` | **Replacement** | Swap tracked person in driving video with reference character. Driving mask bg: **white**. **This workflow default.** |\n| `false` | **Animation** | Reference character performs driving motion. Driving mask bg: **black**. |\n\nSet on **both** subgraphs. Animation still needs masks; rewrite `prompt` accordingly.\n\n---\n\n## SAM3 (two inputs)\n\nNot the SCAIL-2 `prompt` — only for mask track/segment:\n\n| Pin | Target | Output mask |\n|---|---|---|\n| `sam3_video_object` | Driving video | `pose_video_mask` |\n| `sam3_image_object` | Reference image | `reference_image_mask` |\n\nOpen-vocabulary text (default `human`). Use the same word when subject matches; use different words if video/ref need different focus (e.g. crowded scene → be more specific).\n\nColored masks bind body regions between ref and driving. Main `prompt` controls final appearance.\n\n---\n\n\n## How This Workflow Works\n\n1. Load `pose_video` + `reference_image`.\n2. **Base** subgraph — segment 1 (`segment_index = 1`, no `previous_frames`).\n3. **Extend** subgraph — segment 2+ (`previous_frames` from prior output, increment `segment_index`).\n4. Preview / save; stitch segments if needed.\n\n\n---\n\n## Long Videos\n\n`ceil(total_frames / 76)` segments — see **Estimate Segment Count** group.\n\n| Segments | Action |\n|---|---|\n| 1 | Base only |\n| 2+ | Base + Extend(s); duplicate Extend, chain `previous_frames`, increase `segment_index` |\n\n**No auto loop:** `WanSCAILToVideo` cannot queue all segments automatically — run each segment manually.\n\n---\n\nRequires ComfyUI [PR#14373](https://github.com/Comfy-Org/ComfyUI/pull/14373)\n"
      ]
    },
    {
      "flags": {},
      "id": 213,
      "inputs": [
        {
          "label": "pose_video",
          "link": 494,
          "localized_name": "video",
          "name": "video",
          "type": "VIDEO"
        },
        {
          "label": "reference_image",
          "link": 495,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "label": "prompt",
          "link": null,
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          }
        },
        {
          "label": "segment_index",
          "link": null,
          "name": "value",
          "type": "INT",
          "widget": {
            "name": "value"
          }
        },
        {
          "label": "replace_mode",
          "link": null,
          "name": "value_2",
          "type": "BOOLEAN",
          "widget": {
            "name": "value_2"
          }
        },
        {
          "label": "width",
          "link": null,
          "name": "value_3",
          "type": "INT",
          "widget": {
            "name": "value_3"
          }
        },
        {
          "label": "height",
          "link": null,
          "name": "value_4",
          "type": "INT",
          "widget": {
            "name": "value_4"
          }
        },
        {
          "label": "frame_count",
          "link": null,
          "name": "length",
          "type": "INT",
          "widget": {
            "name": "length"
          }
        },
        {
          "link": null,
          "name": "previous_frame_count",
          "type": "INT",
          "widget": {
            "name": "previous_frame_count"
          }
        },
        {
          "link": null,
          "name": "pose_strength",
          "type": "FLOAT",
          "widget": {
            "name": "pose_strength"
          }
        },
        {
          "link": null,
          "name": "pose_start",
          "type": "FLOAT",
          "widget": {
            "name": "pose_start"
          }
        },
        {
          "link": null,
          "name": "pose_end",
          "type": "FLOAT",
          "widget": {
            "name": "pose_end"
          }
        },
        {
          "label": "turbo_mode",
          "link": null,
          "name": "value_5",
          "type": "BOOLEAN",
          "widget": {
            "name": "value_5"
          }
        },
        {
          "link": null,
          "name": "unet_name",
          "type": "COMBO",
          "widget": {
            "name": "unet_name"
          }
        },
        {
          "label": "distill_lora",
          "link": null,
          "name": "lora_name",
          "type": "COMBO",
          "widget": {
            "name": "lora_name"
          }
        },
        {
          "label": "dpo_lora",
          "link": null,
          "name": "lora_name_1",
          "type": "COMBO",
          "widget": {
            "name": "lora_name_1"
          }
        },
        {
          "link": null,
          "name": "clip_name",
          "type": "COMBO",
          "widget": {
            "name": "clip_name"
          }
        },
        {
          "link": null,
          "name": "vae_name",
          "type": "COMBO",
          "widget": {
            "name": "vae_name"
          }
        },
        {
          "label": "clip_vision",
          "link": null,
          "name": "clip_name_1",
          "type": "COMBO",
          "widget": {
            "name": "clip_name_1"
          }
        },
        {
          "label": "sam3_video_object",
          "link": null,
          "name": "text_1",
          "type": "STRING",
          "widget": {
            "name": "text_1"
          }
        },
        {
          "label": "sam3_image_object",
          "link": null,
          "name": "text_2",
          "type": "STRING",
          "widget": {
            "name": "text_2"
          }
        },
        {
          "label": "sam3_model",
          "link": null,
          "name": "ckpt_name",
          "type": "COMBO",
          "widget": {
            "name": "ckpt_name"
          }
        },
        {
          "link": null,
          "name": "noise_seed",
          "type": "INT",
          "widget": {
            "name": "noise_seed"
          }
        }
      ],
      "mode": 0,
      "order": 5,
      "outputs": [
        {
          "links": [
            498,
            521,
            528
          ],
          "localized_name": "output",
          "name": "output",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1440,
        4340
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "proxyWidgets": [
          [
            "3",
            "text"
          ],
          [
            "183",
            "value"
          ],
          [
            "203",
            "value"
          ],
          [
            "178",
            "value"
          ],
          [
            "179",
            "value"
          ],
          [
            "177",
            "length"
          ],
          [
            "114",
            "previous_frame_count"
          ],
          [
            "114",
            "pose_strength"
          ],
          [
            "114",
            "pose_start"
          ],
          [
            "114",
            "pose_end"
          ],
          [
            "172",
            "value"
          ],
          [
            "154",
            "unet_name"
          ],
          [
            "11",
            "lora_name"
          ],
          [
            "318",
            "lora_name"
          ],
          [
            "9",
            "clip_name"
          ],
          [
            "7",
            "vae_name"
          ],
          [
            "75",
            "clip_name"
          ],
          [
            "191",
            "text"
          ],
          [
            "212",
            "text"
          ],
          [
            "193",
            "ckpt_name"
          ],
          [
            "19",
            "noise_seed"
          ],
          [
            "200",
            "$$canvas-image-preview"
          ],
          [
            "199",
            "$$canvas-image-preview"
          ]
        ],
        "ver": "0.24.0"
      },
      "size": [
        489.984375,
        1119.984375
      ],
      "type": "d1ab1953-6167-4827-b44e-b4108cea5702",
      "widgets_values": []
    },
    {
      "flags": {
        "collapsed": false
      },
      "id": 262,
      "inputs": [
        {
          "label": "pose_video",
          "link": 519,
          "localized_name": "video",
          "name": "video",
          "type": "VIDEO"
        },
        {
          "label": "reference_image",
          "link": 520,
          "localized_name": "images",
          "name": "images",
          "type": "IMAGE"
        },
        {
          "label": "previous_frames",
          "link": 521,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        },
        {
          "label": "prompt",
          "link": null,
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          }
        },
        {
          "label": "segment_index",
          "link": null,
          "name": "value",
          "type": "INT",
          "widget": {
            "name": "value"
          }
        },
        {
          "label": "replace_mode",
          "link": null,
          "name": "value_2",
          "type": "BOOLEAN",
          "widget": {
            "name": "value_2"
          }
        },
        {
          "label": "width",
          "link": null,
          "name": "value_3",
          "type": "INT",
          "widget": {
            "name": "value_3"
          }
        },
        {
          "label": "height",
          "link": null,
          "name": "value_4",
          "type": "INT",
          "widget": {
            "name": "value_4"
          }
        },
        {
          "label": "frame_count",
          "link": null,
          "name": "length",
          "type": "INT",
          "widget": {
            "name": "length"
          }
        },
        {
          "link": null,
          "name": "previous_frame_count",
          "type": "INT",
          "widget": {
            "name": "previous_frame_count"
          }
        },
        {
          "link": null,
          "name": "pose_strength",
          "type": "FLOAT",
          "widget": {
            "name": "pose_strength"
          }
        },
        {
          "link": null,
          "name": "pose_start",
          "type": "FLOAT",
          "widget": {
            "name": "pose_start"
          }
        },
        {
          "link": null,
          "name": "pose_end",
          "type": "FLOAT",
          "widget": {
            "name": "pose_end"
          }
        },
        {
          "label": "turbo_mode",
          "link": null,
          "name": "value_5",
          "type": "BOOLEAN",
          "widget": {
            "name": "value_5"
          }
        },
        {
          "link": null,
          "name": "unet_name",
          "type": "COMBO",
          "widget": {
            "name": "unet_name"
          }
        },
        {
          "label": "distill_lora",
          "link": null,
          "name": "lora_name",
          "type": "COMBO",
          "widget": {
            "name": "lora_name"
          }
        },
        {
          "label": "dpo_lora",
          "link": null,
          "name": "lora_name_1",
          "type": "COMBO",
          "widget": {
            "name": "lora_name_1"
          }
        },
        {
          "link": null,
          "name": "clip_name",
          "type": "COMBO",
          "widget": {
            "name": "clip_name"
          }
        },
        {
          "link": null,
          "name": "vae_name",
          "type": "COMBO",
          "widget": {
            "name": "vae_name"
          }
        },
        {
          "label": "clip_vision",
          "link": null,
          "name": "clip_name_1",
          "type": "COMBO",
          "widget": {
            "name": "clip_name_1"
          }
        },
        {
          "label": "sam3_video_object",
          "link": null,
          "name": "text_1",
          "type": "STRING",
          "widget": {
            "name": "text_1"
          }
        },
        {
          "label": "sam3_image_object",
          "link": null,
          "name": "text_2",
          "type": "STRING",
          "widget": {
            "name": "text_2"
          }
        },
        {
          "label": "sam3_model",
          "link": null,
          "name": "ckpt_name",
          "type": "COMBO",
          "widget": {
            "name": "ckpt_name"
          }
        },
        {
          "link": null,
          "name": "noise_seed",
          "type": "INT",
          "widget": {
            "name": "noise_seed"
          }
        }
      ],
      "mode": 0,
      "order": 8,
      "outputs": [
        {
          "links": [
            529
          ],
          "localized_name": "output",
          "name": "output",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1980,
        4340
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "proxyWidgets": [
          [
            "258",
            "text"
          ],
          [
            "240",
            "value"
          ],
          [
            "247",
            "value"
          ],
          [
            "236",
            "value"
          ],
          [
            "237",
            "value"
          ],
          [
            "235",
            "length"
          ],
          [
            "259",
            "previous_frame_count"
          ],
          [
            "259",
            "pose_strength"
          ],
          [
            "259",
            "pose_start"
          ],
          [
            "259",
            "pose_end"
          ],
          [
            "255",
            "value"
          ],
          [
            "223",
            "unet_name"
          ],
          [
            "216",
            "lora_name"
          ],
          [
            "319",
            "lora_name"
          ],
          [
            "221",
            "clip_name"
          ],
          [
            "217",
            "vae_name"
          ],
          [
            "222",
            "clip_name"
          ],
          [
            "242",
            "text"
          ],
          [
            "261",
            "text"
          ],
          [
            "243",
            "ckpt_name"
          ],
          [
            "227",
            "noise_seed"
          ],
          [
            "248",
            "$$canvas-image-preview"
          ],
          [
            "249",
            "$$canvas-image-preview"
          ]
        ],
        "ver": "0.24.0"
      },
      "size": [
        529.96875,
        1140
      ],
      "type": "56bf150b-bd14-4513-8e03-335e1972ba62",
      "widgets_values": []
    },
    {
      "bgcolor": "#000",
      "color": "#222",
      "flags": {},
      "id": 320,
      "inputs": [],
      "mode": 0,
      "order": 3,
      "outputs": [],
      "pos": [
        -1020,
        4340
      ],
      "properties": {},
      "size": [
        549.984375,
        1279.96875
      ],
      "title": "Model Links",
      "type": "MarkdownNote",
      "widgets_values": [
        "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n[PR#14373](https://github.com/Comfy-Org/ComfyUI/pull/14373)\n## Model Links (for Local Users)\n\n\n**loras**\n\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- [wan2.1_SCAIL_2_DPO_lora_bf16.safetensors](https://huggingface.co/Comfy-Org/SCAIL-2/resolve/main/loras/wan2.1_SCAIL_2_DPO_lora_bf16.safetensors)\n\n**vae**\n\n- [Wan2_1_VAE_bf16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Wan2_1_VAE_bf16.safetensors)\n\n**text_encoders**\n\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**clip_vision**\n\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**diffusion_models**\n\n- [wan2.1_14B_SCAIL_2_fp16.safetensors](https://huggingface.co/Comfy-Org/SCAIL-2/resolve/main/diffusion_models/wan2.1_14B_SCAIL_2_fp16.safetensors)\n\n**checkpoints**\n\n- [sam3.1_multiplex_fp16.safetensors](https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│   ├── 📂 loras/\n│   │   ├── lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors\n│   │   └── wan2.1_SCAIL_2_DPO_lora_bf16.safetensors\n│   ├── 📂 vae/\n│   │   └── Wan2_1_VAE_bf16.safetensors\n│   ├── 📂 text_encoders/\n│   │   └── umt5_xxl_fp8_e4m3fn_scaled.safetensors\n│   ├── 📂 clip_vision/\n│   │   └── clip_vision_h.safetensors\n│   ├── 📂 diffusion_models/\n│   │   └── wan2.1_14B_SCAIL_2_fp16.safetensors\n│   └── 📂 checkpoints/\n│       └── sam3.1_multiplex_fp16.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
      ]
    }
  ],
  "revision": 0,
  "version": 0.4
}