{
  "id": "5e3b2cd8-2119-4be4-87d6-b524515abe69",
  "revision": 0,
  "last_node_id": 151,
  "last_link_id": 399,
  "nodes": [
    {
      "id": 87,
      "type": "CLIPTextEncode",
      "pos": [
        1195.4985965069693,
        6235.629213064845
      ],
      "size": [
        235.296875,
        115.328125
      ],
      "flags": {},
      "order": 40,
      "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 on the left"
      ]
    },
    {
      "id": 71,
      "type": "VHS_VideoCombine",
      "pos": [
        6977.188682464844,
        4460.642513292842
      ],
      "size": [
        816.515625,
        1044.951171875
      ],
      "flags": {},
      "order": 70,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 190
        },
        {
          "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": true,
        "videopreview": {
          "hidden": false,
          "paused": false,
          "params": {
            "filename": "Wan21_SCAIL2_00002.mp4",
            "subfolder": "",
            "type": "output",
            "format": "video/h264-mp4",
            "frame_rate": 16,
            "workflow": "Wan21_SCAIL2_00002.png",
            "fullpath": "S:\\comfy\\ComfyUI\\output\\Wan21_SCAIL2_00002.mp4"
          }
        }
      }
    },
    {
      "id": 33,
      "type": "VHS_LoadVideo",
      "pos": [
        619.3537111285743,
        4966.280343532678
      ],
      "size": [
        255.8291015625,
        771.6246641122611
      ],
      "flags": {},
      "order": 0,
      "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": []
        },
        {
          "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": "1023.mp4",
        "force_rate": 0,
        "custom_width": 0,
        "custom_height": 0,
        "frame_load_cap": 0,
        "skip_first_frames": 0,
        "select_every_nth": 1,
        "format": "AnimateDiff",
        "videopreview": {
          "hidden": false,
          "paused": false,
          "params": {
            "filename": "1023.mp4",
            "type": "input",
            "format": "video/mp4",
            "force_rate": 0,
            "custom_width": 0,
            "custom_height": 0,
            "frame_load_cap": 0,
            "skip_first_frames": 0,
            "select_every_nth": 1
          }
        }
      }
    },
    {
      "id": 122,
      "type": "GetNode",
      "pos": [
        4382.884912920021,
        4777.8448243175135
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            360
          ]
        }
      ],
      "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": 126,
      "type": "GetNode",
      "pos": [
        4386.212217901945,
        5015.917909431026
      ],
      "size": [
        216.84140625,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP_VISION_OUTPUT",
          "type": "CLIP_VISION_OUTPUT",
          "links": [
            364
          ]
        }
      ],
      "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": 114,
      "type": "WanSCAILToVideo",
      "pos": [
        2637.7870815826873,
        4565.967276379464
      ],
      "size": [
        309.6851263714343,
        474
      ],
      "flags": {},
      "order": 44,
      "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": null
        },
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 375
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 377
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            333
          ]
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "links": [
            334
          ]
        },
        {
          "name": "latent",
          "type": "LATENT",
          "links": [
            335
          ]
        },
        {
          "name": "video_frame_offset",
          "type": "INT",
          "links": [
            348
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "WanSCAILToVideo"
      },
      "widgets_values": [
        512,
        896,
        65,
        1,
        1,
        0,
        1,
        0,
        5,
        true
      ],
      "color": "#332922",
      "bgcolor": "#593930"
    },
    {
      "id": 91,
      "type": "SAM3_VideoTrack",
      "pos": [
        1548.1913897222335,
        6138.668167604449
      ],
      "size": [
        275.796875,
        218.328125
      ],
      "flags": {},
      "order": 48,
      "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,
        1,
        2
      ]
    },
    {
      "id": 128,
      "type": "GetNode",
      "pos": [
        1343.8015966194228,
        5882.3181532265535
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 3,
      "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": [
        1339.2110558960492,
        6140.881641741141
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 4,
      "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": 42,
      "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": 43,
      "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": 41,
      "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": 130,
      "type": "GetNode",
      "pos": [
        4394.1922965994545,
        4906.727291050424
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            372
          ]
        }
      ],
      "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": 138,
      "type": "GetNode",
      "pos": [
        4464.978589423486,
        5178.801823780981
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 6,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "INT",
          "type": "INT",
          "links": [
            380
          ]
        }
      ],
      "title": "Get_height",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "height"
      ],
      "color": "#1b4669",
      "bgcolor": "#29699c"
    },
    {
      "id": 137,
      "type": "GetNode",
      "pos": [
        4464.310348435003,
        5122.55333293286
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 7,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "INT",
          "type": "INT",
          "links": [
            379
          ]
        }
      ],
      "title": "Get_width",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "width"
      ],
      "color": "#1b4669",
      "bgcolor": "#29699c"
    },
    {
      "id": 118,
      "type": "GetNode",
      "pos": [
        4382.258561410273,
        4958.0873735142595
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 8,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            354
          ]
        }
      ],
      "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": 120,
      "type": "GetNode",
      "pos": [
        4395.301210029483,
        5075.378065905831
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 9,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            358
          ]
        }
      ],
      "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": 119,
      "type": "SetNode",
      "pos": [
        2371.519358110919,
        5927.410787628923
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 57,
      "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": 92,
      "type": "PreviewImage",
      "pos": [
        2734.450024655128,
        6047.569851610676
      ],
      "size": [
        875.0923140285231,
        787.5251306767914
      ],
      "flags": {},
      "order": 59,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 385
        }
      ],
      "outputs": [],
      "properties": {
        "Node name for S&R": "PreviewImage"
      },
      "widgets_values": []
    },
    {
      "id": 24,
      "type": "GetNode",
      "pos": [
        2396.397337451781,
        4577.3311120223625
      ],
      "size": [
        225,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 10,
      "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": [
        2396.397337451781,
        4624.424196380042
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 11,
      "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": [
        2396.397337451781,
        4667.578436140888
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 12,
      "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": [
        2396.397337451781,
        4702.683769176162
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 13,
      "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": [
        2396.397337451781,
        4740.7954723291605
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 14,
      "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": [
        2396.397337451781,
        4781.183723858205
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 15,
      "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": 145,
      "type": "GetNode",
      "pos": [
        4992.115785899728,
        4868.203900979745
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 16,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "SAMPLER",
          "type": "SAMPLER",
          "links": [
            387
          ]
        }
      ],
      "title": "Get_sampler",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "sampler"
      ],
      "color": "#614a4a",
      "bgcolor": "#3b2c2c"
    },
    {
      "id": 146,
      "type": "GetNode",
      "pos": [
        4993.9416750700175,
        4921.155522756413
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 17,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "SIGMAS",
          "type": "SIGMAS",
          "links": [
            388
          ]
        }
      ],
      "title": "Get_sigmas",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "sigmas"
      ],
      "color": "#485248",
      "bgcolor": "#272e27"
    },
    {
      "id": 147,
      "type": "GetNode",
      "pos": [
        4635.4510729948515,
        4774.951547432068
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 18,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            390
          ]
        }
      ],
      "title": "Get_VAE",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "VAE"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 115,
      "type": "WanSCAILToVideo",
      "pos": [
        4631.923202226266,
        4824.040555863516
      ],
      "size": [
        312.703125,
        566.328125
      ],
      "flags": {},
      "order": 63,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 339
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 340
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 390
        },
        {
          "name": "pose_video",
          "shape": 7,
          "type": "IMAGE",
          "link": 372
        },
        {
          "name": "pose_video_mask",
          "shape": 7,
          "type": "IMAGE",
          "link": 360
        },
        {
          "name": "reference_image",
          "shape": 7,
          "type": "IMAGE",
          "link": 354
        },
        {
          "name": "reference_image_mask",
          "shape": 7,
          "type": "IMAGE",
          "link": 358
        },
        {
          "name": "clip_vision_output",
          "shape": 7,
          "type": "CLIP_VISION_OUTPUT",
          "link": 364
        },
        {
          "name": "previous_frames",
          "shape": 7,
          "type": "IMAGE",
          "link": 345
        },
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 379
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 380
        },
        {
          "name": "video_frame_offset",
          "type": "INT",
          "widget": {
            "name": "video_frame_offset"
          },
          "link": 348
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            349
          ]
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "links": [
            350
          ]
        },
        {
          "name": "latent",
          "type": "LATENT",
          "links": [
            351
          ]
        },
        {
          "name": "video_frame_offset",
          "type": "INT",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "WanSCAILToVideo"
      },
      "widgets_values": [
        512,
        512,
        81,
        1,
        1,
        0,
        1,
        0,
        5,
        false
      ],
      "color": "#332922",
      "bgcolor": "#593930"
    },
    {
      "id": 149,
      "type": "GetNode",
      "pos": [
        4997.933606527932,
        4805.260629777725
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 19,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            394
          ]
        }
      ],
      "title": "Get_model",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "model"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 66,
      "type": "VAEDecode",
      "pos": [
        5527.891511882677,
        4808.228657614375
      ],
      "size": [
        225,
        71.328125
      ],
      "flags": {},
      "order": 65,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 212
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 320
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            318
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode"
      },
      "widgets_values": [],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 113,
      "type": "GetNode",
      "pos": [
        5529.05725343315,
        4745.555625577432
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 20,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            320
          ]
        }
      ],
      "title": "Get_VAE",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "VAE"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 73,
      "type": "GetImageRangeFromBatch",
      "pos": [
        5534.75644869654,
        4937.792659863614
      ],
      "size": [
        352.3609067093221,
        122.56482909083661
      ],
      "flags": {},
      "order": 66,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "shape": 7,
          "type": "IMAGE",
          "link": 318
        },
        {
          "name": "masks",
          "shape": 7,
          "type": "MASK",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            204
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "GetImageRangeFromBatch"
      },
      "widgets_values": [
        5,
        4096
      ]
    },
    {
      "id": 78,
      "type": "ColorTransfer",
      "pos": [
        5943.866066523929,
        4933.829285848341
      ],
      "size": [
        270,
        126
      ],
      "flags": {},
      "order": 67,
      "mode": 0,
      "inputs": [
        {
          "name": "image_target",
          "type": "IMAGE",
          "link": 204
        },
        {
          "name": "image_ref",
          "type": "IMAGE",
          "link": 202
        }
      ],
      "outputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "links": [
            205
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ColorTransfer"
      },
      "widgets_values": [
        "reinhard_lab",
        "per_frame",
        1
      ]
    },
    {
      "id": 79,
      "type": "GetImageRangeFromBatch",
      "pos": [
        5943.28139568652,
        4874.587325228502
      ],
      "size": [
        349.6875,
        161.328125
      ],
      "flags": {
        "collapsed": true
      },
      "order": 61,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "shape": 7,
          "type": "IMAGE",
          "link": 203
        },
        {
          "name": "masks",
          "shape": 7,
          "type": "MASK",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            202
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "GetImageRangeFromBatch"
      },
      "widgets_values": [
        -1,
        1
      ]
    },
    {
      "id": 63,
      "type": "SamplerCustom",
      "pos": [
        5150.374042458719,
        4803.415530867035
      ],
      "size": [
        321.3125,
        771.296875
      ],
      "flags": {},
      "order": 64,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 394
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 349
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 350
        },
        {
          "name": "sampler",
          "type": "SAMPLER",
          "link": 387
        },
        {
          "name": "sigmas",
          "type": "SIGMAS",
          "link": 388
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 351
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "LATENT",
          "links": [
            212
          ]
        },
        {
          "name": "denoised_output",
          "type": "LATENT",
          "links": []
        }
      ],
      "properties": {
        "Node name for S&R": "SamplerCustom"
      },
      "widgets_values": [
        true,
        0,
        "fixed",
        1
      ]
    },
    {
      "id": 65,
      "type": "GetNode",
      "pos": [
        3346.946893189971,
        4550.939345921857
      ],
      "size": [
        225,
        50
      ],
      "flags": {
        "collapsed": true
      },
      "order": 21,
      "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": [
        3348.077955820951,
        4485.832741331904
      ],
      "size": [
        225,
        71.328125
      ],
      "flags": {
        "collapsed": true
      },
      "order": 60,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 124
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 319
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            185,
            203,
            324,
            345
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode"
      },
      "widgets_values": [],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 8,
      "type": "VHS_VideoCombine",
      "pos": [
        3536.0084976930143,
        4152.378823161749
      ],
      "size": [
        436.47427412286015,
        1076.8299797150053
      ],
      "flags": {},
      "order": 62,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 324
        },
        {
          "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": "S:\\comfy\\ComfyUI\\temp\\Wan21_SCAIL2_00004.mp4"
          }
        }
      }
    },
    {
      "id": 9,
      "type": "CLIPLoader",
      "pos": [
        573.7160468478238,
        4050.0274674236657
      ],
      "size": [
        270,
        141.328125
      ],
      "flags": {},
      "order": 22,
      "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": 49,
      "type": "WanChunkFeedForward",
      "pos": [
        1103.0651929437588,
        3784.145110326811
      ],
      "size": [
        270,
        137.328125
      ],
      "flags": {},
      "order": 37,
      "mode": 4,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 365
        }
      ],
      "outputs": [
        {
          "name": "model",
          "type": "MODEL",
          "links": [
            366
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "WanChunkFeedForward"
      },
      "widgets_values": [
        2,
        4096
      ]
    },
    {
      "id": 95,
      "type": "ModelSamplingSD3",
      "pos": [
        2555.4641619284853,
        4337.880706776915
      ],
      "size": [
        270,
        80.328125
      ],
      "flags": {},
      "order": 49,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 270
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            391
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ModelSamplingSD3"
      },
      "widgets_values": [
        5
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 27,
      "type": "KSamplerSelect",
      "pos": [
        2554.087067007132,
        4014.1104510686087
      ],
      "size": [
        255.13124414292133,
        63.757927938548164
      ],
      "flags": {},
      "order": 23,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "SAMPLER",
          "type": "SAMPLER",
          "links": [
            386
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "KSamplerSelect"
      },
      "widgets_values": [
        "euler"
      ]
    },
    {
      "id": 148,
      "type": "SetNode",
      "pos": [
        2853.052090056718,
        4376.702343069264
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 53,
      "mode": 0,
      "inputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "link": 391
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            393
          ]
        }
      ],
      "title": "Set_model",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "model"
      },
      "widgets_values": [
        "model"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 144,
      "type": "SetNode",
      "pos": [
        2851.257895368564,
        4201.637436039165
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 54,
      "mode": 0,
      "inputs": [
        {
          "name": "SIGMAS",
          "type": "SIGMAS",
          "link": 389
        }
      ],
      "outputs": [
        {
          "name": "SIGMAS",
          "type": "SIGMAS",
          "links": [
            397
          ]
        }
      ],
      "title": "Set_sigmas",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "sigmas"
      },
      "widgets_values": [
        "sigmas"
      ],
      "color": "#485248",
      "bgcolor": "#272e27"
    },
    {
      "id": 143,
      "type": "SetNode",
      "pos": [
        2843.2609931701236,
        4055.8327953420194
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 36,
      "mode": 0,
      "inputs": [
        {
          "name": "SAMPLER",
          "type": "SAMPLER",
          "link": 386
        }
      ],
      "outputs": [
        {
          "name": "SAMPLER",
          "type": "SAMPLER",
          "links": [
            396
          ]
        }
      ],
      "title": "Set_sampler",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "sampler"
      },
      "widgets_values": [
        "sampler"
      ],
      "color": "#614a4a",
      "bgcolor": "#3b2c2c"
    },
    {
      "id": 19,
      "type": "SamplerCustom",
      "pos": [
        3063.9051108033627,
        4463.8476899966745
      ],
      "size": [
        262.985406343691,
        667.0980822703593
      ],
      "flags": {},
      "order": 58,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 393
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 333
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 334
        },
        {
          "name": "sampler",
          "type": "SAMPLER",
          "link": 396
        },
        {
          "name": "sigmas",
          "type": "SIGMAS",
          "link": 397
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 335
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "LATENT",
          "links": []
        },
        {
          "name": "denoised_output",
          "type": "LATENT",
          "links": [
            124
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "SamplerCustom"
      },
      "widgets_values": [
        true,
        1,
        "fixed",
        1
      ]
    },
    {
      "id": 18,
      "type": "BasicScheduler",
      "pos": [
        2553.4672000259407,
        4172.23088004996
      ],
      "size": [
        267.79057296750216,
        114.29234325688958
      ],
      "flags": {},
      "order": 50,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 398
        }
      ],
      "outputs": [
        {
          "name": "SIGMAS",
          "type": "SIGMAS",
          "links": [
            389
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "BasicScheduler"
      },
      "widgets_values": [
        "simple",
        6,
        1
      ]
    },
    {
      "id": 11,
      "type": "LoraLoaderModelOnly",
      "pos": [
        1424.2176328869389,
        3788.671988146271
      ],
      "size": [
        653.53125,
        113.328125
      ],
      "flags": {},
      "order": 45,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 366
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            270,
            398
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "LoraLoaderModelOnly"
      },
      "widgets_values": [
        "WanVideo\\Lightx2v\\lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
        0.8
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 135,
      "type": "GetNode",
      "pos": [
        2393.7239307424584,
        4878.491396978967
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 24,
      "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": 133,
      "type": "GetNode",
      "pos": [
        2396.397337451781,
        4825.987697823823
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 25,
      "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": 3,
      "type": "CLIPTextEncode",
      "pos": [
        1803.5452179917288,
        4729.897498906913
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 34,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 7
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            325,
            339
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "a witch with purple hat and dress is running"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 4,
      "type": "CLIPTextEncode",
      "pos": [
        1806.4121588628723,
        4983.701210269096
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 35,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 8
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            326,
            340
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        ""
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 74,
      "type": "DiffusionModelLoaderKJ",
      "pos": [
        573.1941741014189,
        3795.968469429723
      ],
      "size": [
        470.0514932368708,
        186.4192073613849
      ],
      "flags": {},
      "order": 26,
      "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": 75,
      "type": "CLIPVisionLoader",
      "pos": [
        585.5395103132853,
        4246.735194520637
      ],
      "size": [
        270,
        80.328125
      ],
      "flags": {},
      "order": 27,
      "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": 30,
      "type": "LoadImage",
      "pos": [
        604.0223187715576,
        4534.033637850578
      ],
      "size": [
        298.3313126341949,
        377.6947302337194
      ],
      "flags": {},
      "order": 28,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            352
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "ComfyUI_temp_oikhe_00079_.png",
        "image"
      ]
    },
    {
      "id": 7,
      "type": "VAELoader",
      "pos": [
        595.5854261580267,
        4388.622266096984
      ],
      "size": [
        263.31666678936256,
        60.278186555644425
      ],
      "flags": {},
      "order": 29,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            46
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAELoader"
      },
      "widgets_values": [
        "wanvideo\\Wan2_1_VAE_bf16.safetensors"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 116,
      "type": "SetNode",
      "pos": [
        975.1461135797338,
        4580.933682942652
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 38,
      "mode": 0,
      "inputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "link": 352
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            399
          ]
        }
      ],
      "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": 22,
      "type": "SetNode",
      "pos": [
        911.6253769135122,
        4427.80519840355
      ],
      "size": [
        225,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 39,
      "mode": 0,
      "inputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "link": 46
        }
      ],
      "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": 86,
      "type": "CheckpointLoaderSimple",
      "pos": [
        829.5091779499079,
        5883.659806199406
      ],
      "size": [
        270,
        128.328125
      ],
      "flags": {},
      "order": 30,
      "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": [
        1903.5475086555118,
        6095.118347847202
      ],
      "size": [
        399.93744417948983,
        1012.8905273141072
      ],
      "flags": {},
      "order": 55,
      "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_00003.mp4",
            "subfolder": "",
            "type": "temp",
            "format": "video/h264-mp4",
            "frame_rate": 16,
            "workflow": "Wan21_SCAIL2_00003.png",
            "fullpath": "S:\\comfy\\ComfyUI\\temp\\Wan21_SCAIL2_00003.mp4"
          }
        }
      }
    },
    {
      "id": 104,
      "type": "SCAIL2ColoredMask",
      "pos": [
        1912.3134525196078,
        5881.21505608292
      ],
      "size": [
        415.16040400940983,
        146.04639622504874
      ],
      "flags": {},
      "order": 52,
      "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
        }
      ],
      "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",
        true
      ]
    },
    {
      "id": 85,
      "type": "SAM3_VideoTrack",
      "pos": [
        1549.6428885680157,
        5867.977326249526
      ],
      "size": [
        275.796875,
        218.328125
      ],
      "flags": {},
      "order": 47,
      "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,
        1,
        2
      ]
    },
    {
      "id": 89,
      "type": "ImageResizeKJv2",
      "pos": [
        928.7757974158991,
        4968.437452389387
      ],
      "size": [
        239.06893177313827,
        348
      ],
      "flags": {},
      "order": 33,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 228
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            369
          ]
        },
        {
          "name": "width",
          "type": "INT",
          "links": [
            374
          ]
        },
        {
          "name": "height",
          "type": "INT",
          "links": [
            376
          ]
        },
        {
          "name": "mask",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "ImageResizeKJv2"
      },
      "widgets_values": [
        512,
        896,
        "lanczos",
        "crop",
        "0, 0, 0",
        "center",
        16,
        "cpu"
      ]
    },
    {
      "id": 76,
      "type": "CLIPVisionEncode",
      "pos": [
        1220.1409096115744,
        4544.8404056183335
      ],
      "size": [
        289.5,
        104.328125
      ],
      "flags": {},
      "order": 46,
      "mode": 0,
      "inputs": [
        {
          "name": "clip_vision",
          "type": "CLIP_VISION",
          "link": 196
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 399
        }
      ],
      "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": [
        1538.790424829196,
        4573.882344959634
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 51,
      "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": 70,
      "type": "BatchImagesNode",
      "pos": [
        6370.388065413719,
        4466.468822804574
      ],
      "size": [
        225,
        95.328125
      ],
      "flags": {},
      "order": 68,
      "mode": 0,
      "inputs": [
        {
          "label": "image0",
          "name": "images.image0",
          "type": "IMAGE",
          "link": 185
        },
        {
          "label": "image1",
          "name": "images.image1",
          "shape": 7,
          "type": "IMAGE",
          "link": 205
        },
        {
          "label": "image2",
          "name": "images.image2",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            189
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "BatchImagesNode"
      },
      "widgets_values": []
    },
    {
      "id": 72,
      "type": "ImageConcatMulti",
      "pos": [
        6657.524583199177,
        4460.142272869317
      ],
      "size": [
        270,
        217.328125
      ],
      "flags": {},
      "order": 69,
      "mode": 0,
      "inputs": [
        {
          "name": "image_1",
          "type": "IMAGE,MASK",
          "link": 189
        },
        {
          "name": "image_2",
          "shape": 7,
          "type": "IMAGE,MASK",
          "link": 378
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "IMAGE",
          "links": [
            190
          ]
        }
      ],
      "properties": {},
      "widgets_values": [
        2,
        "left",
        true,
        null
      ]
    },
    {
      "id": 136,
      "type": "GetNode",
      "pos": [
        6442.3423260226045,
        4624.521834264531
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 31,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            378
          ]
        }
      ],
      "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": 121,
      "type": "SetNode",
      "pos": [
        2379.5534543446265,
        5876.494921110609
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 56,
      "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": 151,
      "type": "MarkdownNote",
      "pos": [
        1330.9770412025869,
        4056.2297867352845
      ],
      "size": [
        436.673991259265,
        246.71414022020326
      ],
      "flags": {},
      "order": 32,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "# Currently requires PR: https://github.com/Comfy-Org/ComfyUI/pull/14373\n\n## Models:\n\n## [https://huggingface.co/Comfy-Org/SCAIL-2/tree/main/diffusion_models](https://huggingface.co/Comfy-Org/SCAIL-2/tree/main/diffusion_models)"
      ],
      "color": "#432",
      "bgcolor": "#653"
    }
  ],
  "links": [
    [
      7,
      9,
      0,
      3,
      0,
      "CLIP"
    ],
    [
      8,
      9,
      0,
      4,
      0,
      "CLIP"
    ],
    [
      46,
      7,
      0,
      22,
      0,
      "VAE"
    ],
    [
      124,
      19,
      1,
      6,
      0,
      "LATENT"
    ],
    [
      185,
      6,
      0,
      70,
      0,
      "IMAGE"
    ],
    [
      189,
      70,
      0,
      72,
      0,
      "IMAGE"
    ],
    [
      190,
      72,
      0,
      71,
      0,
      "IMAGE"
    ],
    [
      196,
      75,
      0,
      76,
      0,
      "CLIP_VISION"
    ],
    [
      202,
      79,
      0,
      78,
      1,
      "IMAGE"
    ],
    [
      203,
      6,
      0,
      79,
      0,
      "IMAGE"
    ],
    [
      204,
      73,
      0,
      78,
      0,
      "IMAGE"
    ],
    [
      205,
      78,
      0,
      70,
      1,
      "IMAGE"
    ],
    [
      212,
      63,
      0,
      66,
      0,
      "LATENT"
    ],
    [
      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"
    ],
    [
      270,
      11,
      0,
      95,
      0,
      "MODEL"
    ],
    [
      273,
      85,
      0,
      104,
      0,
      "SAM3_TRACK_DATA"
    ],
    [
      274,
      91,
      0,
      104,
      1,
      "SAM3_TRACK_DATA"
    ],
    [
      275,
      104,
      0,
      88,
      0,
      "IMAGE"
    ],
    [
      318,
      66,
      0,
      73,
      0,
      "IMAGE"
    ],
    [
      319,
      65,
      0,
      6,
      1,
      "VAE"
    ],
    [
      320,
      113,
      0,
      66,
      1,
      "VAE"
    ],
    [
      324,
      6,
      0,
      8,
      0,
      "IMAGE"
    ],
    [
      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"
    ],
    [
      335,
      114,
      2,
      19,
      5,
      "LATENT"
    ],
    [
      339,
      3,
      0,
      115,
      0,
      "CONDITIONING"
    ],
    [
      340,
      4,
      0,
      115,
      1,
      "CONDITIONING"
    ],
    [
      345,
      6,
      0,
      115,
      8,
      "IMAGE"
    ],
    [
      348,
      114,
      3,
      115,
      11,
      "INT"
    ],
    [
      349,
      115,
      0,
      63,
      1,
      "CONDITIONING"
    ],
    [
      350,
      115,
      1,
      63,
      2,
      "CONDITIONING"
    ],
    [
      351,
      115,
      2,
      63,
      5,
      "LATENT"
    ],
    [
      352,
      30,
      0,
      116,
      0,
      "IMAGE"
    ],
    [
      353,
      117,
      0,
      114,
      5,
      "IMAGE"
    ],
    [
      354,
      118,
      0,
      115,
      5,
      "IMAGE"
    ],
    [
      357,
      104,
      1,
      119,
      0,
      "IMAGE"
    ],
    [
      358,
      120,
      0,
      115,
      6,
      "IMAGE"
    ],
    [
      359,
      104,
      0,
      121,
      0,
      "IMAGE"
    ],
    [
      360,
      122,
      0,
      115,
      4,
      "IMAGE"
    ],
    [
      361,
      76,
      0,
      123,
      0,
      "CLIP_VISION_OUTPUT"
    ],
    [
      362,
      124,
      0,
      114,
      7,
      "CLIP_VISION_OUTPUT"
    ],
    [
      364,
      126,
      0,
      115,
      7,
      "CLIP_VISION_OUTPUT"
    ],
    [
      365,
      74,
      0,
      49,
      0,
      "MODEL"
    ],
    [
      366,
      49,
      0,
      11,
      0,
      "MODEL"
    ],
    [
      369,
      89,
      0,
      127,
      0,
      "IMAGE"
    ],
    [
      370,
      128,
      0,
      85,
      0,
      "IMAGE"
    ],
    [
      371,
      129,
      0,
      114,
      3,
      "IMAGE"
    ],
    [
      372,
      130,
      0,
      115,
      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"
    ],
    [
      378,
      136,
      0,
      72,
      1,
      "IMAGE"
    ],
    [
      379,
      137,
      0,
      115,
      9,
      "INT"
    ],
    [
      380,
      138,
      0,
      115,
      10,
      "INT"
    ],
    [
      382,
      140,
      0,
      114,
      4,
      "IMAGE"
    ],
    [
      384,
      142,
      0,
      114,
      6,
      "IMAGE"
    ],
    [
      385,
      119,
      0,
      92,
      0,
      "IMAGE"
    ],
    [
      386,
      27,
      0,
      143,
      0,
      "SAMPLER"
    ],
    [
      387,
      145,
      0,
      63,
      3,
      "SAMPLER"
    ],
    [
      388,
      146,
      0,
      63,
      4,
      "SIGMAS"
    ],
    [
      389,
      18,
      0,
      144,
      0,
      "SIGMAS"
    ],
    [
      390,
      147,
      0,
      115,
      2,
      "VAE"
    ],
    [
      391,
      95,
      0,
      148,
      0,
      "MODEL"
    ],
    [
      393,
      148,
      0,
      19,
      0,
      "MODEL"
    ],
    [
      394,
      149,
      0,
      63,
      0,
      "MODEL"
    ],
    [
      396,
      143,
      0,
      19,
      3,
      "SAMPLER"
    ],
    [
      397,
      144,
      0,
      19,
      4,
      "SIGMAS"
    ],
    [
      398,
      11,
      0,
      18,
      0,
      "MODEL"
    ],
    [
      399,
      116,
      0,
      76,
      1,
      "IMAGE"
    ]
  ],
  "groups": [
    {
      "id": 1,
      "title": "Extend",
      "bounding": [
        4257.799019571001,
        4639.053315329355,
        2028.7044462085796,
        1000.9604650857236
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 2,
      "title": "Segmentation",
      "bounding": [
        646.709668035458,
        5799.011544017425,
        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.412193924328167,
      "offset": [
        -1803.5913482071396,
        -4046.623135829022
      ]
    },
    "frontendVersion": "1.45.14",
    "VHS_latentpreview": true,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": false,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}