{
  "id": "03c497f2-4619-4af0-aedb-2b8b47eba8ab",
  "revision": 0,
  "last_node_id": 187,
  "last_link_id": 488,
  "nodes": [
    {
      "id": 128,
      "type": "GetNode",
      "pos": [
        1317.923611968726,
        5818.476642168329
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            370
          ]
        }
      ],
      "title": "Get_pose_video",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "pose_video"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 131,
      "type": "GetNode",
      "pos": [
        1313.3330712453524,
        6077.040130682916
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            373
          ]
        }
      ],
      "title": "Get_reference_image",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "reference_image"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 132,
      "type": "SetNode",
      "pos": [
        1207.6533974257775,
        5023.516721752653
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 45,
      "mode": 0,
      "inputs": [
        {
          "name": "INT",
          "type": "INT",
          "link": 374
        }
      ],
      "outputs": [
        {
          "name": "INT",
          "type": "INT",
          "links": null
        }
      ],
      "title": "Set_width",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "width"
      },
      "widgets_values": [
        "width"
      ],
      "color": "#1b4669",
      "bgcolor": "#29699c"
    },
    {
      "id": 134,
      "type": "SetNode",
      "pos": [
        1209.2960169542089,
        5065.916277939871
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 46,
      "mode": 0,
      "inputs": [
        {
          "name": "INT",
          "type": "INT",
          "link": 376
        }
      ],
      "outputs": [
        {
          "name": "INT",
          "type": "INT",
          "links": null
        }
      ],
      "title": "Set_height",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "height"
      },
      "widgets_values": [
        "height"
      ],
      "color": "#1b4669",
      "bgcolor": "#29699c"
    },
    {
      "id": 127,
      "type": "SetNode",
      "pos": [
        1216.377759198139,
        4971.815309741677
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 44,
      "mode": 0,
      "inputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "link": 369
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": null
        }
      ],
      "title": "Set_pose_video",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "pose_video"
      },
      "widgets_values": [
        "pose_video"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 92,
      "type": "PreviewImage",
      "pos": [
        2708.572040004431,
        5983.728340552451
      ],
      "size": [
        875.0923140285231,
        787.5251306767914
      ],
      "flags": {},
      "order": 56,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 385
        }
      ],
      "outputs": [],
      "properties": {
        "Node name for S&R": "PreviewImage"
      },
      "widgets_values": []
    },
    {
      "id": 24,
      "type": "GetNode",
      "pos": [
        2605.282230539092,
        4564.275774599261
      ],
      "size": [
        225,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            327
          ]
        }
      ],
      "title": "Get_VAE",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "VAE"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 129,
      "type": "GetNode",
      "pos": [
        2605.282230539092,
        4611.368858956941
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            371
          ]
        }
      ],
      "title": "Get_pose_video",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "pose_video"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 140,
      "type": "GetNode",
      "pos": [
        2605.282230539092,
        4654.5230987177865
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            382
          ]
        }
      ],
      "title": "Get_pose_video_mask",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "pose_video_mask"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 117,
      "type": "GetNode",
      "pos": [
        2605.282230539092,
        4689.628431753061
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            353
          ]
        }
      ],
      "title": "Get_reference_image",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "reference_image"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 142,
      "type": "GetNode",
      "pos": [
        2605.282230539092,
        4727.740134906059
      ],
      "size": [
        222.884375,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 6,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            384
          ]
        }
      ],
      "title": "Get_reference_image_mask",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "reference_image_mask"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 124,
      "type": "GetNode",
      "pos": [
        2605.282230539092,
        4768.1283864351035
      ],
      "size": [
        216.84140625,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 7,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP_VISION_OUTPUT",
          "type": "CLIP_VISION_OUTPUT",
          "links": [
            362
          ]
        }
      ],
      "title": "Get_CLIP_VISION_OUTPUT",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "CLIP_VISION_OUTPUT"
      ],
      "color": "#332922",
      "bgcolor": "#593930"
    },
    {
      "id": 9,
      "type": "CLIPLoader",
      "pos": [
        573.7160468478238,
        4050.0274674236657
      ],
      "size": [
        270,
        141.328125
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            7,
            8
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPLoader"
      },
      "widgets_values": [
        "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
        "wan",
        "default"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 75,
      "type": "CLIPVisionLoader",
      "pos": [
        585.5395103132853,
        4246.735194520637
      ],
      "size": [
        270,
        80.328125
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP_VISION",
          "type": "CLIP_VISION",
          "links": [
            196
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPVisionLoader"
      },
      "widgets_values": [
        "clip_vision_h.safetensors"
      ],
      "color": "#233",
      "bgcolor": "#355"
    },
    {
      "id": 86,
      "type": "CheckpointLoaderSimple",
      "pos": [
        803.6311932992107,
        5819.818295141182
      ],
      "size": [
        270,
        128.328125
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            220,
            236
          ]
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            222
          ]
        },
        {
          "name": "VAE",
          "type": "VAE",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "CheckpointLoaderSimple"
      },
      "widgets_values": [
        "sam3\\sam3.1_multiplex_fp16.safetensors"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 88,
      "type": "VHS_VideoCombine",
      "pos": [
        1877.669524004815,
        6031.276836788978
      ],
      "size": [
        399.93744417948983,
        1012.8905273141072
      ],
      "flags": {},
      "order": 52,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 275
        },
        {
          "name": "audio",
          "shape": 7,
          "type": "AUDIO",
          "link": null
        },
        {
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager",
          "link": null
        },
        {
          "name": "vae",
          "shape": 7,
          "type": "VAE",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "Filenames",
          "type": "VHS_FILENAMES",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "VHS_VideoCombine"
      },
      "widgets_values": {
        "frame_rate": 16,
        "loop_count": 0,
        "filename_prefix": "Wan21_SCAIL2",
        "format": "video/h264-mp4",
        "pix_fmt": "yuv420p",
        "crf": 19,
        "save_metadata": true,
        "trim_to_audio": false,
        "pingpong": false,
        "save_output": false,
        "videopreview": {
          "hidden": false,
          "paused": false,
          "params": {
            "filename": "Wan21_SCAIL2_00001.mp4",
            "subfolder": "",
            "type": "temp",
            "format": "video/h264-mp4",
            "frame_rate": 16,
            "workflow": "Wan21_SCAIL2_00001.png",
            "fullpath": "N:\\AI\\ComfyUI\\temp\\Wan21_SCAIL2_00001.mp4"
          }
        }
      }
    },
    {
      "id": 91,
      "type": "SAM3_VideoTrack",
      "pos": [
        1522.3134050715366,
        6074.8266565462245
      ],
      "size": [
        275.796875,
        218.328125
      ],
      "flags": {},
      "order": 41,
      "mode": 0,
      "inputs": [
        {
          "label": "images",
          "name": "images",
          "type": "IMAGE",
          "link": 373
        },
        {
          "label": "model",
          "name": "model",
          "type": "MODEL",
          "link": 236
        },
        {
          "label": "initial_mask",
          "name": "initial_mask",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "label": "conditioning",
          "name": "conditioning",
          "shape": 7,
          "type": "CONDITIONING",
          "link": 235
        }
      ],
      "outputs": [
        {
          "name": "track_data",
          "type": "SAM3_TRACK_DATA",
          "links": [
            274
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "SAM3_VideoTrack"
      },
      "widgets_values": [
        0.5,
        2,
        2
      ]
    },
    {
      "id": 85,
      "type": "SAM3_VideoTrack",
      "pos": [
        1523.7649039173189,
        5804.135815191302
      ],
      "size": [
        275.796875,
        218.328125
      ],
      "flags": {},
      "order": 40,
      "mode": 0,
      "inputs": [
        {
          "label": "images",
          "name": "images",
          "type": "IMAGE",
          "link": 370
        },
        {
          "label": "model",
          "name": "model",
          "type": "MODEL",
          "link": 220
        },
        {
          "label": "initial_mask",
          "name": "initial_mask",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "label": "conditioning",
          "name": "conditioning",
          "shape": 7,
          "type": "CONDITIONING",
          "link": 221
        }
      ],
      "outputs": [
        {
          "name": "track_data",
          "type": "SAM3_TRACK_DATA",
          "links": [
            273
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "SAM3_VideoTrack"
      },
      "widgets_values": [
        0.5,
        2,
        2
      ]
    },
    {
      "id": 87,
      "type": "CLIPTextEncode",
      "pos": [
        1169.6206118562725,
        6171.787702006621
      ],
      "size": [
        235.296875,
        115.328125
      ],
      "flags": {},
      "order": 32,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 222
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            221,
            235
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "person"
      ]
    },
    {
      "id": 27,
      "type": "KSamplerSelect",
      "pos": [
        2320.7785811317967,
        3840.3442437174554
      ],
      "size": [
        255.13124414292133,
        63.757927938548164
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "SAMPLER",
          "type": "SAMPLER",
          "links": [
            487
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "KSamplerSelect"
      },
      "widgets_values": [
        "er_sde"
      ]
    },
    {
      "id": 74,
      "type": "DiffusionModelLoaderKJ",
      "pos": [
        573.1941741014189,
        3795.968469429723
      ],
      "size": [
        470.0514932368708,
        186.4192073613849
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "extra_state_dict",
          "shape": 7,
          "type": "STRING",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            365
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "DiffusionModelLoaderKJ"
      },
      "widgets_values": [
        "WanVideo\\SCAIL\\wan2.1_14B_SCAIL_2_fp8_scaled.safetensors",
        "default",
        "default",
        false,
        "auto",
        true
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 49,
      "type": "WanChunkFeedForward",
      "pos": [
        1103.0651929437588,
        3784.145110326811
      ],
      "size": [
        270,
        137.328125
      ],
      "flags": {},
      "order": 33,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 365
        }
      ],
      "outputs": [
        {
          "name": "model",
          "type": "MODEL",
          "links": [
            424
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "WanChunkFeedForward"
      },
      "widgets_values": [
        2,
        4096
      ]
    },
    {
      "id": 162,
      "type": "WanVideoMemoryEfficientSageAttentionPatch",
      "pos": [
        1388.1384612114236,
        3789.0231402245686
      ],
      "size": [
        308.16953125,
        26
      ],
      "flags": {},
      "order": 42,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 424
        }
      ],
      "outputs": [
        {
          "name": "model",
          "type": "MODEL",
          "links": [
            425
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "WanVideoMemoryEfficientSageAttentionPatch"
      },
      "widgets_values": []
    },
    {
      "id": 7,
      "type": "VAELoader",
      "pos": [
        595.5854261580267,
        4388.622266096984
      ],
      "size": [
        263.31666678936256,
        60.278186555644425
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            446
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAELoader"
      },
      "widgets_values": [
        "wanvideo\\Wan2_1_VAE_bf16.safetensors"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 11,
      "type": "LoraLoaderModelOnly",
      "pos": [
        1454.9432808810318,
        3927.5926712269033
      ],
      "size": [
        688.6801222102126,
        109.31112285426252
      ],
      "flags": {},
      "order": 50,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 425
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            450
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "LoraLoaderModelOnly"
      },
      "widgets_values": [
        "WanVideo\\Lightx2v\\lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16_.safetensors",
        1
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 168,
      "type": "LoraLoaderModelOnly",
      "pos": [
        1469.6539408666604,
        4089.3350590566224
      ],
      "size": [
        688.6801222102126,
        109.31112285426252
      ],
      "flags": {},
      "order": 55,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 450
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            451,
            452
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "LoraLoaderModelOnly"
      },
      "widgets_values": [
        "WanVideo\\loras\\wan2.1_SCAIL_2_DPO_lora_bf16.safetensors",
        1
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 30,
      "type": "LoadImage",
      "pos": [
        604.0223187715576,
        4534.033637850578
      ],
      "size": [
        298.3313126341949,
        377.6947302337194
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            448,
            468
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "image (658).png",
        "image"
      ]
    },
    {
      "id": 19,
      "type": "SamplerCustom",
      "pos": [
        3229.1505464374163,
        4481.193846073976
      ],
      "size": [
        262.985406343691,
        669.2244611014593
      ],
      "flags": {},
      "order": 59,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 485
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 333
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 334
        },
        {
          "name": "sampler",
          "type": "SAMPLER",
          "link": 487
        },
        {
          "name": "sigmas",
          "type": "SIGMAS",
          "link": 486
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 464
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "LATENT",
          "links": [
            463
          ]
        },
        {
          "name": "denoised_output",
          "type": "LATENT",
          "links": []
        }
      ],
      "properties": {
        "Node name for S&R": "SamplerCustom"
      },
      "widgets_values": [
        true,
        2,
        "fixed",
        1
      ]
    },
    {
      "id": 89,
      "type": "ImageResizeKJv2",
      "pos": [
        928.7757974158991,
        4968.437452389387
      ],
      "size": [
        239.06893177313827,
        348
      ],
      "flags": {},
      "order": 38,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 228
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 469
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 470
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            369
          ]
        },
        {
          "name": "width",
          "type": "INT",
          "links": [
            374,
            428
          ]
        },
        {
          "name": "height",
          "type": "INT",
          "links": [
            376,
            429
          ]
        },
        {
          "name": "mask",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "ImageResizeKJv2"
      },
      "widgets_values": [
        512,
        895,
        "lanczos",
        "crop",
        "0, 0, 0",
        "center",
        16,
        "cpu"
      ]
    },
    {
      "id": 22,
      "type": "SetNode",
      "pos": [
        928.3702261082537,
        4416.635913340982
      ],
      "size": [
        225,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 34,
      "mode": 0,
      "inputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "link": 446
        }
      ],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": null
        }
      ],
      "title": "Set_VAE",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "VAE"
      },
      "widgets_values": [
        "VAE"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 104,
      "type": "SCAIL2ColoredMask",
      "pos": [
        1896.560977883675,
        5813.613930222143
      ],
      "size": [
        415.16040400940983,
        146.04639622504874
      ],
      "flags": {},
      "order": 49,
      "mode": 0,
      "inputs": [
        {
          "name": "driving_track_data",
          "type": "SAM3_TRACK_DATA",
          "link": 273
        },
        {
          "name": "ref_track_data",
          "shape": 7,
          "type": "SAM3_TRACK_DATA",
          "link": 274
        },
        {
          "name": "replacement_mode",
          "type": "BOOLEAN",
          "widget": {
            "name": "replacement_mode"
          },
          "link": 404
        }
      ],
      "outputs": [
        {
          "name": "pose_video_mask",
          "type": "IMAGE",
          "links": [
            275,
            359
          ]
        },
        {
          "name": "reference_image_mask",
          "type": "IMAGE",
          "links": [
            357
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "SCAIL2ColoredMask"
      },
      "widgets_values": [
        "",
        "left_to_right",
        false
      ]
    },
    {
      "id": 119,
      "type": "SetNode",
      "pos": [
        2328.107079334192,
        6065.996829399592
      ],
      "size": [
        221.421484375,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 54,
      "mode": 0,
      "inputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "link": 357
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            385
          ]
        }
      ],
      "title": "Set_reference_image_mask",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "reference_image_mask"
      },
      "widgets_values": [
        "reference_image_mask"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 121,
      "type": "SetNode",
      "pos": [
        2366.6504974150535,
        5850.6242983297025
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 53,
      "mode": 0,
      "inputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "link": 359
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": null
        }
      ],
      "title": "Set_pose_video_mask",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "pose_video_mask"
      },
      "widgets_values": [
        "pose_video_mask"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 158,
      "type": "ImageResizeKJv2",
      "pos": [
        942.7050738577041,
        4555.213190678341
      ],
      "size": [
        239.06893177313827,
        348
      ],
      "flags": {},
      "order": 47,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 448
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 428
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 429
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            449
          ]
        },
        {
          "name": "width",
          "type": "INT",
          "links": []
        },
        {
          "name": "height",
          "type": "INT",
          "links": []
        },
        {
          "name": "mask",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "ImageResizeKJv2"
      },
      "widgets_values": [
        1280,
        704,
        "lanczos",
        "pad",
        "0, 0, 0",
        "center",
        16,
        "cpu"
      ]
    },
    {
      "id": 116,
      "type": "SetNode",
      "pos": [
        1227.6612368813644,
        4727.618745783259
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 51,
      "mode": 0,
      "inputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "link": 449
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": []
        }
      ],
      "title": "Set_reference_image",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "reference_image"
      },
      "widgets_values": [
        "reference_image"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 76,
      "type": "CLIPVisionEncode",
      "pos": [
        1133.774972723732,
        4287.751302897707
      ],
      "size": [
        289.5,
        104.328125
      ],
      "flags": {},
      "order": 35,
      "mode": 0,
      "inputs": [
        {
          "name": "clip_vision",
          "type": "CLIP_VISION",
          "link": 196
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 468
        }
      ],
      "outputs": [
        {
          "name": "CLIP_VISION_OUTPUT",
          "type": "CLIP_VISION_OUTPUT",
          "links": [
            361
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPVisionEncode"
      },
      "widgets_values": [
        "none"
      ],
      "color": "#233",
      "bgcolor": "#355"
    },
    {
      "id": 123,
      "type": "SetNode",
      "pos": [
        1480.5436408748653,
        4414.2059005492865
      ],
      "size": [
        298.58203125,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 43,
      "mode": 0,
      "inputs": [
        {
          "name": "CLIP_VISION_OUTPUT",
          "type": "CLIP_VISION_OUTPUT",
          "link": 361
        }
      ],
      "outputs": [
        {
          "name": "CLIP_VISION_OUTPUT",
          "type": "CLIP_VISION_OUTPUT",
          "links": null
        }
      ],
      "title": "Set_CLIP_VISION_OUTPUT",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "CLIP_VISION_OUTPUT"
      },
      "widgets_values": [
        "CLIP_VISION_OUTPUT"
      ],
      "color": "#332922",
      "bgcolor": "#593930"
    },
    {
      "id": 174,
      "type": "INTConstant",
      "pos": [
        1463.1407776718086,
        4949.8035042799365
      ],
      "size": [
        210,
        58
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "value",
          "type": "INT",
          "links": [
            470
          ]
        }
      ],
      "title": "Height",
      "properties": {
        "Node name for S&R": "INTConstant"
      },
      "widgets_values": [
        896
      ],
      "color": "#1b4669",
      "bgcolor": "#29699c"
    },
    {
      "id": 65,
      "type": "GetNode",
      "pos": [
        3378.900446814613,
        4424.311988638323
      ],
      "size": [
        225,
        50
      ],
      "flags": {
        "collapsed": true
      },
      "order": 16,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            319
          ]
        }
      ],
      "title": "Get_VAE",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "VAE"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 6,
      "type": "VAEDecode",
      "pos": [
        3543.1718243376927,
        4507.791084091941
      ],
      "size": [
        225,
        71.328125
      ],
      "flags": {
        "collapsed": true
      },
      "order": 60,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 463
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 319
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            459
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode"
      },
      "widgets_values": [],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 156,
      "type": "ImageConcatMulti",
      "pos": [
        3747.220786228678,
        4098.353080297895
      ],
      "size": [
        270,
        217.328125
      ],
      "flags": {},
      "order": 62,
      "mode": 0,
      "inputs": [
        {
          "name": "image_1",
          "type": "IMAGE,MASK",
          "link": 472
        },
        {
          "name": "image_2",
          "shape": 7,
          "type": "IMAGE,MASK",
          "link": 434
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "IMAGE",
          "links": [
            475
          ]
        }
      ],
      "properties": {},
      "widgets_values": [
        2,
        "left",
        true,
        null
      ]
    },
    {
      "id": 163,
      "type": "ImageConcatMulti",
      "pos": [
        3392.403291825048,
        4109.03145656194
      ],
      "size": [
        270,
        217.328125
      ],
      "flags": {},
      "order": 37,
      "mode": 0,
      "inputs": [
        {
          "name": "image_1",
          "type": "IMAGE,MASK",
          "link": 484
        },
        {
          "name": "image_2",
          "shape": 7,
          "type": "IMAGE,MASK",
          "link": 433
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "IMAGE",
          "links": [
            434
          ]
        }
      ],
      "properties": {},
      "widgets_values": [
        2,
        "down",
        true,
        null
      ]
    },
    {
      "id": 178,
      "type": "ComfySwitchNode",
      "pos": [
        3885.398660141828,
        4456.534061512883
      ],
      "size": [
        270,
        78
      ],
      "flags": {},
      "order": 63,
      "mode": 0,
      "inputs": [
        {
          "name": "on_false",
          "type": "IMAGE",
          "link": 477
        },
        {
          "name": "on_true",
          "type": "IMAGE",
          "link": 475
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "IMAGE",
          "links": [
            478
          ]
        }
      ],
      "title": "Switch: Include inputs",
      "properties": {
        "Node name for S&R": "ComfySwitchNode"
      },
      "widgets_values": [
        true
      ]
    },
    {
      "id": 180,
      "type": "GetImageSizeAndCount",
      "pos": [
        3961.621465488047,
        4622.23613326385
      ],
      "size": [
        196.2994140625,
        86
      ],
      "flags": {},
      "order": 64,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 478
        }
      ],
      "outputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "links": [
            479
          ]
        },
        {
          "label": "768 width",
          "name": "width",
          "type": "INT",
          "links": null
        },
        {
          "label": "896 height",
          "name": "height",
          "type": "INT",
          "links": null
        },
        {
          "label": "161 count",
          "name": "count",
          "type": "INT",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "GetImageSizeAndCount"
      },
      "widgets_values": []
    },
    {
      "id": 175,
      "type": "INTConstant",
      "pos": [
        1467.535786417002,
        5061.4186775199005
      ],
      "size": [
        210,
        58
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "value",
          "type": "INT",
          "links": [
            469
          ]
        }
      ],
      "title": "Width",
      "properties": {
        "Node name for S&R": "INTConstant"
      },
      "widgets_values": [
        512
      ],
      "color": "#1b4669",
      "bgcolor": "#29699c"
    },
    {
      "id": 176,
      "type": "INTConstant",
      "pos": [
        1474.4888581524663,
        5173.049158201988
      ],
      "size": [
        210,
        58
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "value",
          "type": "INT",
          "links": [
            482
          ]
        }
      ],
      "title": "Frames per window",
      "properties": {
        "Node name for S&R": "INTConstant"
      },
      "widgets_values": [
        81
      ],
      "color": "#1b4669",
      "bgcolor": "#29699c"
    },
    {
      "id": 177,
      "type": "INTConstant",
      "pos": [
        1479.0589239321941,
        5283.012800320275
      ],
      "size": [
        210,
        58
      ],
      "flags": {},
      "order": 19,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "value",
          "type": "INT",
          "links": []
        }
      ],
      "title": "Total frames",
      "properties": {
        "Node name for S&R": "INTConstant"
      },
      "widgets_values": [
        161
      ],
      "color": "#1b4669",
      "bgcolor": "#29699c"
    },
    {
      "id": 133,
      "type": "GetNode",
      "pos": [
        2610.0837489880855,
        4812.246451621502
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 20,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "INT",
          "type": "INT",
          "links": [
            375
          ]
        }
      ],
      "title": "Get_width",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "width"
      ],
      "color": "#1b4669",
      "bgcolor": "#29699c"
    },
    {
      "id": 135,
      "type": "GetNode",
      "pos": [
        2614.067028207383,
        4862.258825214456
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 21,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "INT",
          "type": "INT",
          "links": [
            377
          ]
        }
      ],
      "title": "Get_height",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "height"
      ],
      "color": "#1b4669",
      "bgcolor": "#29699c"
    },
    {
      "id": 183,
      "type": "GetNode",
      "pos": [
        2617.171638531788,
        4916.596989046415
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 22,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "INT",
          "type": "INT",
          "links": [
            483
          ]
        }
      ],
      "title": "Get_frames_per_window",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "frames_per_window"
      ],
      "color": "#1b4669",
      "bgcolor": "#29699c"
    },
    {
      "id": 182,
      "type": "SetNode",
      "pos": [
        1711.0592200596955,
        5199.11406859902
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 36,
      "mode": 0,
      "inputs": [
        {
          "name": "INT",
          "type": "INT",
          "link": 482
        }
      ],
      "outputs": [
        {
          "name": "INT",
          "type": "INT",
          "links": null
        }
      ],
      "title": "Set_frames_per_window",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "frames_per_window"
      },
      "widgets_values": [
        "frames_per_window"
      ],
      "color": "#1b4669",
      "bgcolor": "#29699c"
    },
    {
      "id": 155,
      "type": "PrimitiveNode",
      "pos": [
        1480.6041071253749,
        5517.065772649113
      ],
      "size": [
        272.4186094768106,
        60.685940178111196
      ],
      "flags": {},
      "order": 23,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "BOOLEAN",
          "type": "BOOLEAN",
          "widget": {
            "name": "replacement_mode"
          },
          "links": [
            404,
            454
          ]
        }
      ],
      "title": "replacement_mode",
      "properties": {
        "Run widget replace on values": false
      },
      "widgets_values": [
        false
      ]
    },
    {
      "id": 184,
      "type": "GetNode",
      "pos": [
        3183.931976097663,
        4118.078626309039
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 24,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            484
          ]
        }
      ],
      "title": "Get_reference_image",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "reference_image"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 157,
      "type": "GetNode",
      "pos": [
        3209.517836195008,
        4171.409367647244
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 25,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            433
          ]
        }
      ],
      "title": "Get_pose_video",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "pose_video"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 114,
      "type": "WanSCAILToVideo",
      "pos": [
        2860.731551136759,
        4517.763066746156
      ],
      "size": [
        309.6851263714343,
        474
      ],
      "flags": {},
      "order": 48,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 325
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 326
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 327
        },
        {
          "name": "pose_video",
          "shape": 7,
          "type": "IMAGE",
          "link": 371
        },
        {
          "name": "pose_video_mask",
          "shape": 7,
          "type": "IMAGE",
          "link": 382
        },
        {
          "name": "reference_image",
          "shape": 7,
          "type": "IMAGE",
          "link": 353
        },
        {
          "name": "reference_image_mask",
          "shape": 7,
          "type": "IMAGE",
          "link": 384
        },
        {
          "name": "clip_vision_output",
          "shape": 7,
          "type": "CLIP_VISION_OUTPUT",
          "link": 362
        },
        {
          "name": "previous_frames",
          "shape": 7,
          "type": "IMAGE",
          "link": 466
        },
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 375
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 377
        },
        {
          "name": "length",
          "type": "INT",
          "widget": {
            "name": "length"
          },
          "link": 483
        },
        {
          "name": "video_frame_offset",
          "type": "INT",
          "widget": {
            "name": "video_frame_offset"
          },
          "link": 457
        },
        {
          "name": "previous_frame_count",
          "type": "INT",
          "widget": {
            "name": "previous_frame_count"
          },
          "link": 481
        },
        {
          "name": "replacement_mode",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "replacement_mode"
          },
          "link": 454
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            333
          ]
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "links": [
            334
          ]
        },
        {
          "name": "latent",
          "type": "LATENT",
          "links": [
            464
          ]
        },
        {
          "name": "video_frame_offset",
          "type": "INT",
          "links": []
        }
      ],
      "properties": {
        "Node name for S&R": "WanSCAILToVideo"
      },
      "widgets_values": [
        512,
        896,
        81,
        1,
        1,
        0,
        0.5,
        0,
        5,
        false
      ],
      "color": "#332922",
      "bgcolor": "#593930"
    },
    {
      "id": 181,
      "type": "INTConstant",
      "pos": [
        1482.4796041530192,
        5395.778370764106
      ],
      "size": [
        210,
        58
      ],
      "flags": {},
      "order": 26,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "value",
          "type": "INT",
          "links": [
            480,
            481
          ]
        }
      ],
      "title": "overlap",
      "properties": {
        "Node name for S&R": "INTConstant"
      },
      "widgets_values": [
        5
      ],
      "color": "#1b4669",
      "bgcolor": "#29699c"
    },
    {
      "id": 3,
      "type": "CLIPTextEncode",
      "pos": [
        1746.3027190521714,
        4613.403976969371
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 30,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 7
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            325
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "woman is dancing"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 4,
      "type": "CLIPTextEncode",
      "pos": [
        1864.659034759436,
        4920.433185125373
      ],
      "size": [
        400,
        200
      ],
      "flags": {
        "collapsed": true
      },
      "order": 31,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 8
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            326
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        ""
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 171,
      "type": "TensorLoopOpen",
      "pos": [
        2441.5818358467536,
        5115.466908311082
      ],
      "size": [
        279.908203125,
        142
      ],
      "flags": {},
      "order": 39,
      "mode": 0,
      "inputs": [
        {
          "name": "initial_value",
          "shape": 7,
          "type": "IMAGE,MASK,LATENT",
          "link": null
        },
        {
          "name": "mode.total_frames",
          "type": "INT",
          "widget": {
            "name": "mode.total_frames"
          },
          "link": 488
        }
      ],
      "outputs": [
        {
          "name": "flow_control",
          "type": "FLOW_CONTROL",
          "links": [
            458
          ]
        },
        {
          "name": "previous_value",
          "type": "*",
          "links": [
            466
          ]
        },
        {
          "name": "accumulated_count",
          "type": "INT",
          "links": [
            457
          ]
        },
        {
          "name": "current_iteration",
          "type": "INT",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "TensorLoopOpen"
      },
      "widgets_values": [
        "total_frames",
        100
      ]
    },
    {
      "id": 33,
      "type": "VHS_LoadVideo",
      "pos": [
        619.3537111285743,
        4966.280343532678
      ],
      "size": [
        255.8291015625,
        743.5855352640658
      ],
      "flags": {},
      "order": 27,
      "mode": 0,
      "inputs": [
        {
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager",
          "link": null
        },
        {
          "name": "vae",
          "shape": 7,
          "type": "VAE",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            228
          ]
        },
        {
          "name": "frame_count",
          "type": "INT",
          "links": [
            488
          ]
        },
        {
          "name": "audio",
          "type": "AUDIO",
          "links": null
        },
        {
          "name": "video_info",
          "type": "VHS_VIDEOINFO",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "VHS_LoadVideo"
      },
      "widgets_values": {
        "video": "525213302-2068dbe0-9dcb-4321-8480-f689a12db50f (1).mp4",
        "force_rate": 0,
        "custom_width": 0,
        "custom_height": 0,
        "frame_load_cap": 161,
        "skip_first_frames": 0,
        "select_every_nth": 1,
        "format": "AnimateDiff",
        "videopreview": {
          "hidden": false,
          "paused": false,
          "params": {
            "filename": "525213302-2068dbe0-9dcb-4321-8480-f689a12db50f (1).mp4",
            "type": "input",
            "format": "video/mp4",
            "force_rate": 0,
            "custom_width": 0,
            "custom_height": 0,
            "frame_load_cap": 161,
            "skip_first_frames": 0,
            "select_every_nth": 1
          }
        }
      }
    },
    {
      "id": 170,
      "type": "VHS_VideoCombine",
      "pos": [
        4255.186709090087,
        4067.590741712307
      ],
      "size": [
        685.2713867881448,
        1124.1499512528358
      ],
      "flags": {},
      "order": 65,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 479
        },
        {
          "name": "audio",
          "shape": 7,
          "type": "AUDIO",
          "link": null
        },
        {
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager",
          "link": null
        },
        {
          "name": "vae",
          "shape": 7,
          "type": "VAE",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "Filenames",
          "type": "VHS_FILENAMES",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "VHS_VideoCombine"
      },
      "widgets_values": {
        "frame_rate": 16,
        "loop_count": 0,
        "filename_prefix": "Wan21_SCAIL2",
        "format": "video/h264-mp4",
        "pix_fmt": "yuv420p",
        "crf": 19,
        "save_metadata": true,
        "trim_to_audio": false,
        "pingpong": false,
        "save_output": false,
        "videopreview": {
          "hidden": false,
          "paused": false,
          "params": {
            "filename": "Wan21_SCAIL2_00004.mp4",
            "subfolder": "",
            "type": "temp",
            "format": "video/h264-mp4",
            "frame_rate": 16,
            "workflow": "Wan21_SCAIL2_00004.png",
            "fullpath": "N:\\AI\\ComfyUI\\temp\\Wan21_SCAIL2_00004.mp4"
          }
        }
      }
    },
    {
      "id": 172,
      "type": "TensorLoopClose",
      "pos": [
        3550.32279084233,
        5174.53071701155
      ],
      "size": [
        270,
        146
      ],
      "flags": {},
      "order": 61,
      "mode": 0,
      "inputs": [
        {
          "name": "flow_control",
          "type": "FLOW_CONTROL",
          "link": 458
        },
        {
          "name": "processed",
          "type": "IMAGE,MASK,LATENT",
          "link": 459
        },
        {
          "name": "stop",
          "shape": 7,
          "type": "BOOLEAN",
          "link": null
        },
        {
          "name": "overlap.overlap_frames",
          "type": "INT",
          "widget": {
            "name": "overlap.overlap_frames"
          },
          "link": 480
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "IMAGE",
          "links": [
            472,
            477
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "TensorLoopClose"
      },
      "widgets_values": [
        true,
        "fade_smooth",
        8
      ]
    },
    {
      "id": 18,
      "type": "BasicScheduler",
      "pos": [
        2320.158714150605,
        3998.4646726988076
      ],
      "size": [
        267.79057296750216,
        114.29234325688958
      ],
      "flags": {},
      "order": 57,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 451
        }
      ],
      "outputs": [
        {
          "name": "SIGMAS",
          "type": "SIGMAS",
          "links": [
            486
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "BasicScheduler"
      },
      "widgets_values": [
        "simple",
        6,
        1
      ]
    },
    {
      "id": 95,
      "type": "ModelSamplingSD3",
      "pos": [
        2322.15567605315,
        4164.114499425762
      ],
      "size": [
        270,
        80.328125
      ],
      "flags": {},
      "order": 58,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 452
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            485
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ModelSamplingSD3"
      },
      "widgets_values": [
        8
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 173,
      "type": "MarkdownNote",
      "pos": [
        1670.8777984001804,
        4257.907597717155
      ],
      "size": [
        436.44173583750285,
        88
      ],
      "flags": {},
      "order": 28,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Model link",
      "properties": {},
      "widgets_values": [
        "## [https://huggingface.co/Comfy-Org/SCAIL-2](https://huggingface.co/Comfy-Org/SCAIL-2)"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 187,
      "type": "MarkdownNote",
      "pos": [
        2449.408717737154,
        5308.04784193024
      ],
      "size": [
        467.5736518730944,
        88
      ],
      "flags": {},
      "order": 29,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Loop nodes",
      "properties": {},
      "widgets_values": [
        "## [https://github.com/kijai/ComfyUI-NativeLooping_testing](https://github.com/kijai/ComfyUI-NativeLooping_testing)"
      ],
      "color": "#432",
      "bgcolor": "#653"
    }
  ],
  "links": [
    [
      7,
      9,
      0,
      3,
      0,
      "CLIP"
    ],
    [
      8,
      9,
      0,
      4,
      0,
      "CLIP"
    ],
    [
      196,
      75,
      0,
      76,
      0,
      "CLIP_VISION"
    ],
    [
      220,
      86,
      0,
      85,
      1,
      "MODEL"
    ],
    [
      221,
      87,
      0,
      85,
      3,
      "CONDITIONING"
    ],
    [
      222,
      86,
      1,
      87,
      0,
      "CLIP"
    ],
    [
      228,
      33,
      0,
      89,
      0,
      "IMAGE"
    ],
    [
      235,
      87,
      0,
      91,
      3,
      "CONDITIONING"
    ],
    [
      236,
      86,
      0,
      91,
      1,
      "MODEL"
    ],
    [
      273,
      85,
      0,
      104,
      0,
      "SAM3_TRACK_DATA"
    ],
    [
      274,
      91,
      0,
      104,
      1,
      "SAM3_TRACK_DATA"
    ],
    [
      275,
      104,
      0,
      88,
      0,
      "IMAGE"
    ],
    [
      319,
      65,
      0,
      6,
      1,
      "VAE"
    ],
    [
      325,
      3,
      0,
      114,
      0,
      "CONDITIONING"
    ],
    [
      326,
      4,
      0,
      114,
      1,
      "CONDITIONING"
    ],
    [
      327,
      24,
      0,
      114,
      2,
      "VAE"
    ],
    [
      333,
      114,
      0,
      19,
      1,
      "CONDITIONING"
    ],
    [
      334,
      114,
      1,
      19,
      2,
      "CONDITIONING"
    ],
    [
      353,
      117,
      0,
      114,
      5,
      "IMAGE"
    ],
    [
      357,
      104,
      1,
      119,
      0,
      "IMAGE"
    ],
    [
      359,
      104,
      0,
      121,
      0,
      "IMAGE"
    ],
    [
      361,
      76,
      0,
      123,
      0,
      "CLIP_VISION_OUTPUT"
    ],
    [
      362,
      124,
      0,
      114,
      7,
      "CLIP_VISION_OUTPUT"
    ],
    [
      365,
      74,
      0,
      49,
      0,
      "MODEL"
    ],
    [
      369,
      89,
      0,
      127,
      0,
      "IMAGE"
    ],
    [
      370,
      128,
      0,
      85,
      0,
      "IMAGE"
    ],
    [
      371,
      129,
      0,
      114,
      3,
      "IMAGE"
    ],
    [
      373,
      131,
      0,
      91,
      0,
      "IMAGE"
    ],
    [
      374,
      89,
      1,
      132,
      0,
      "INT"
    ],
    [
      375,
      133,
      0,
      114,
      9,
      "INT"
    ],
    [
      376,
      89,
      2,
      134,
      0,
      "INT"
    ],
    [
      377,
      135,
      0,
      114,
      10,
      "INT"
    ],
    [
      382,
      140,
      0,
      114,
      4,
      "IMAGE"
    ],
    [
      384,
      142,
      0,
      114,
      6,
      "IMAGE"
    ],
    [
      385,
      119,
      0,
      92,
      0,
      "IMAGE"
    ],
    [
      404,
      155,
      0,
      104,
      2,
      "BOOLEAN"
    ],
    [
      424,
      49,
      0,
      162,
      0,
      "MODEL"
    ],
    [
      425,
      162,
      0,
      11,
      0,
      "MODEL"
    ],
    [
      428,
      89,
      1,
      158,
      2,
      "INT"
    ],
    [
      429,
      89,
      2,
      158,
      3,
      "INT"
    ],
    [
      433,
      157,
      0,
      163,
      1,
      "IMAGE"
    ],
    [
      434,
      163,
      0,
      156,
      1,
      "IMAGE"
    ],
    [
      446,
      7,
      0,
      22,
      0,
      "VAE"
    ],
    [
      448,
      30,
      0,
      158,
      0,
      "IMAGE"
    ],
    [
      449,
      158,
      0,
      116,
      0,
      "IMAGE"
    ],
    [
      450,
      11,
      0,
      168,
      0,
      "MODEL"
    ],
    [
      451,
      168,
      0,
      18,
      0,
      "MODEL"
    ],
    [
      452,
      168,
      0,
      95,
      0,
      "MODEL"
    ],
    [
      454,
      155,
      0,
      114,
      14,
      "BOOLEAN"
    ],
    [
      457,
      171,
      2,
      114,
      12,
      "INT"
    ],
    [
      458,
      171,
      0,
      172,
      0,
      "FLOW_CONTROL"
    ],
    [
      459,
      6,
      0,
      172,
      1,
      "IMAGE"
    ],
    [
      463,
      19,
      0,
      6,
      0,
      "LATENT"
    ],
    [
      464,
      114,
      2,
      19,
      5,
      "LATENT"
    ],
    [
      466,
      171,
      1,
      114,
      8,
      "IMAGE"
    ],
    [
      468,
      30,
      0,
      76,
      1,
      "IMAGE"
    ],
    [
      469,
      175,
      0,
      89,
      2,
      "INT"
    ],
    [
      470,
      174,
      0,
      89,
      3,
      "INT"
    ],
    [
      472,
      172,
      0,
      156,
      0,
      "IMAGE"
    ],
    [
      475,
      156,
      0,
      178,
      1,
      "IMAGE"
    ],
    [
      477,
      172,
      0,
      178,
      0,
      "IMAGE"
    ],
    [
      478,
      178,
      0,
      180,
      0,
      "IMAGE"
    ],
    [
      479,
      180,
      0,
      170,
      0,
      "IMAGE"
    ],
    [
      480,
      181,
      0,
      172,
      3,
      "INT"
    ],
    [
      481,
      181,
      0,
      114,
      13,
      "INT"
    ],
    [
      482,
      176,
      0,
      182,
      0,
      "INT"
    ],
    [
      483,
      183,
      0,
      114,
      11,
      "INT"
    ],
    [
      484,
      184,
      0,
      163,
      0,
      "IMAGE"
    ],
    [
      485,
      95,
      0,
      19,
      0,
      "MODEL"
    ],
    [
      486,
      18,
      0,
      19,
      4,
      "SIGMAS"
    ],
    [
      487,
      27,
      0,
      19,
      3,
      "SAMPLER"
    ],
    [
      488,
      33,
      1,
      171,
      1,
      "INT"
    ]
  ],
  "groups": [
    {
      "id": 2,
      "title": "Segmentation",
      "bounding": [
        620.8316833847608,
        5735.1700329592,
        3040.557680033455,
        1369.8794548369897
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 3,
      "title": "Models",
      "bounding": [
        357.91737789857456,
        3629.861253735203,
        1838.7766027399969,
        847.9734739748019
      ],
      "color": "#88A",
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.5486301132808041,
      "offset": [
        -2178.1220302069796,
        -3723.4789627712876
      ]
    },
    "frontendVersion": "1.45.14",
    "VHS_latentpreview": true,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}