{
  "id": "9f70632e-7dc5-4f06-a931-138f5f6970e7",
  "revision": 0,
  "last_node_id": 227,
  "last_link_id": 578,
  "nodes": [
    {
      "id": 128,
      "type": "GetNode",
      "pos": [
        1894.8281728720112,
        6217.029757737676
      ],
      "size": [
        225,
        34
      ],
      "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": 24,
      "type": "GetNode",
      "pos": [
        2605.282230539092,
        4564.275774599261
      ],
      "size": [
        225,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 1,
      "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": [
        225,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 2,
      "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": [
        225,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 3,
      "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": 124,
      "type": "GetNode",
      "pos": [
        2605.282230539092,
        4768.1283864351035
      ],
      "size": [
        232.28125,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 4,
      "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": 75,
      "type": "CLIPVisionLoader",
      "pos": [
        585.5395103132853,
        4246.735194520637
      ],
      "size": [
        270,
        80.328125
      ],
      "flags": {},
      "order": 5,
      "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": 22,
      "type": "SetNode",
      "pos": [
        928.3702261082537,
        4416.635913340982
      ],
      "size": [
        225,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 33,
      "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": 121,
      "type": "SetNode",
      "pos": [
        2943.555058318343,
        6249.1774138990495
      ],
      "size": [
        225,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 55,
      "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": 123,
      "type": "SetNode",
      "pos": [
        1480.5436408748653,
        4414.2059005492865
      ],
      "size": [
        298.58203125,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 58,
      "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": 65,
      "type": "GetNode",
      "pos": [
        3378.900446814613,
        4424.311988638323
      ],
      "size": [
        225,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 6,
      "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,
        46
      ],
      "flags": {
        "collapsed": true
      },
      "order": 67,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 463
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 319
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            554,
            555
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode"
      },
      "widgets_values": [],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 133,
      "type": "GetNode",
      "pos": [
        2610.0837489880855,
        4812.246451621502
      ],
      "size": [
        225,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 7,
      "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": [
        225,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 8,
      "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": 4,
      "type": "CLIPTextEncode",
      "pos": [
        1864.659034759436,
        4920.433185125373
      ],
      "size": [
        234.09375,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 32,
      "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": 173,
      "type": "MarkdownNote",
      "pos": [
        1670.8777984001804,
        4257.907597717155
      ],
      "size": [
        436.4375,
        88
      ],
      "flags": {},
      "order": 9,
      "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": 76,
      "type": "CLIPVisionEncode",
      "pos": [
        1133.774972723732,
        4287.751302897707
      ],
      "size": [
        289.5,
        104.328125
      ],
      "flags": {},
      "order": 50,
      "mode": 0,
      "inputs": [
        {
          "name": "clip_vision",
          "type": "CLIP_VISION",
          "link": 196
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 518
        }
      ],
      "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": 49,
      "type": "WanChunkFeedForward",
      "pos": [
        1103.0651929437588,
        3784.145110326811
      ],
      "size": [
        283.359375,
        137.328125
      ],
      "flags": {},
      "order": 36,
      "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": [
        1411.2263062004122,
        3785.37769687105
      ],
      "size": [
        308.16953125,
        71.328125
      ],
      "flags": {},
      "order": 40,
      "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": 131,
      "type": "GetNode",
      "pos": [
        1890.2376321486377,
        6475.593246252263
      ],
      "size": [
        225,
        50
      ],
      "flags": {
        "collapsed": true
      },
      "order": 10,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": []
        }
      ],
      "title": "Get_reference_images",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "reference_images"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 3,
      "type": "CLIPTextEncode",
      "pos": [
        1746.3027190521714,
        4613.403976969371
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 31,
      "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": [
        "an anime girl dancing in a class room, video style is 2d japanese animation style"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 163,
      "type": "ImageConcatMulti",
      "pos": [
        3520.670236788336,
        3948.320611876206
      ],
      "size": [
        270,
        241.328125
      ],
      "flags": {},
      "order": 30,
      "mode": 0,
      "inputs": [
        {
          "name": "image_1",
          "type": "IMAGE,MASK",
          "link": 561
        },
        {
          "name": "image_2",
          "shape": 7,
          "type": "IMAGE,MASK",
          "link": 563
        },
        {
          "name": "image_3",
          "shape": 7,
          "type": "IMAGE,MASK",
          "link": 562
        },
        {
          "name": "image_4",
          "shape": 7,
          "type": "IMAGE,MASK",
          "link": 538
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "IMAGE",
          "links": [
            434
          ]
        }
      ],
      "properties": {},
      "widgets_values": [
        4,
        "down",
        true,
        null
      ]
    },
    {
      "id": 204,
      "type": "CLIPTextEncode",
      "pos": [
        1792.8860181848056,
        6357.082662937668
      ],
      "size": [
        235.28125,
        115.328125
      ],
      "flags": {},
      "order": 35,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 546
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            547
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "person"
      ]
    },
    {
      "id": 87,
      "type": "CLIPTextEncode",
      "pos": [
        1791.8171121518276,
        6561.50331171889
      ],
      "size": [
        235.28125,
        115.328125
      ],
      "flags": {},
      "order": 34,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 222
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            531
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "anime girl"
      ]
    },
    {
      "id": 175,
      "type": "INTConstant",
      "pos": [
        -267.31276378021556,
        6026.861282749933
      ],
      "size": [
        223.7849263822285,
        67.87369146480796
      ],
      "flags": {},
      "order": 11,
      "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": 174,
      "type": "INTConstant",
      "pos": [
        -264.53829305505604,
        6159.126225360359
      ],
      "size": [
        220.13937177860703,
        69.08876508257981
      ],
      "flags": {},
      "order": 12,
      "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": 134,
      "type": "SetNode",
      "pos": [
        868.9511347149205,
        6105.361338746305
      ],
      "size": [
        225,
        34
      ],
      "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": 132,
      "type": "SetNode",
      "pos": [
        863.2985274976195,
        6050.93194186758
      ],
      "size": [
        225,
        34
      ],
      "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": 127,
      "type": "SetNode",
      "pos": [
        864.0027915171247,
        5987.200566789988
      ],
      "size": [
        225,
        34
      ],
      "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": 155,
      "type": "PrimitiveNode",
      "pos": [
        2189.395915185592,
        5475.083861781151
      ],
      "size": [
        272.40625,
        75.328125
      ],
      "flags": {},
      "order": 13,
      "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": 88,
      "type": "VHS_VideoCombine",
      "pos": [
        2468.806976465984,
        6472.528301269425
      ],
      "size": [
        399.90625,
        334
      ],
      "flags": {},
      "order": 54,
      "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_00008.mp4",
            "subfolder": "",
            "type": "temp",
            "format": "video/h264-mp4",
            "frame_rate": 16,
            "workflow": "Wan21_SCAIL2_00008.png",
            "fullpath": "/home/kijai/AI/dev/ComfyUI/temp/Wan21_SCAIL2_00008.mp4"
          }
        }
      }
    },
    {
      "id": 104,
      "type": "SCAIL2ColoredMask",
      "pos": [
        2475.876925248741,
        6205.56563485034
      ],
      "size": [
        415.15625,
        222.328125
      ],
      "flags": {},
      "order": 47,
      "mode": 0,
      "inputs": [
        {
          "name": "driving_track_data",
          "type": "SAM3_TRACK_DATA",
          "link": 273
        },
        {
          "name": "ref_track_data",
          "shape": 7,
          "type": "SAM3_TRACK_DATA",
          "link": 545
        },
        {
          "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": [
            490
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "SCAIL2ColoredMask"
      },
      "widgets_values": [
        "",
        "left_to_right",
        false
      ]
    },
    {
      "id": 119,
      "type": "SetNode",
      "pos": [
        2943.565181158232,
        6302.051582869674
      ],
      "size": [
        225,
        104.328125
      ],
      "flags": {
        "collapsed": true
      },
      "order": 56,
      "mode": 0,
      "inputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "link": 490
        }
      ],
      "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": 142,
      "type": "GetNode",
      "pos": [
        2597.5862166044,
        4710.386366481565
      ],
      "size": [
        238.3125,
        50
      ],
      "flags": {
        "collapsed": true
      },
      "order": 14,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            550
          ]
        }
      ],
      "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": 207,
      "type": "GetNode",
      "pos": [
        1975.1434194959422,
        6756.954557672431
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 15,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            551
          ]
        }
      ],
      "title": "Get_reference_images",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "reference_images"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 116,
      "type": "SetNode",
      "pos": [
        2210.414978792491,
        4955.808855201117
      ],
      "size": [
        225,
        50
      ],
      "flags": {
        "collapsed": true
      },
      "order": 59,
      "mode": 0,
      "inputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "link": 511
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            549
          ]
        }
      ],
      "title": "Set_reference_images",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "reference_images"
      },
      "widgets_values": [
        "reference_images"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 114,
      "type": "WanSCAILToVideo",
      "pos": [
        2860.731551136759,
        4517.763066746156
      ],
      "size": [
        302.6419718388306,
        443.71549610006605
      ],
      "flags": {},
      "order": 64,
      "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": 549
        },
        {
          "name": "reference_image_mask",
          "shape": 7,
          "type": "IMAGE",
          "link": 550
        },
        {
          "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
        },
        {
          "name": "length",
          "type": "INT",
          "widget": {
            "name": "length"
          },
          "link": 556
        },
        {
          "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": 95,
      "type": "ModelSamplingSD3",
      "pos": [
        2322.15567605315,
        4164.114499425762
      ],
      "size": [
        270,
        80.328125
      ],
      "flags": {},
      "order": 63,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 452
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            576
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ModelSamplingSD3"
      },
      "widgets_values": [
        5
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 209,
      "type": "WanContextWindowsManual",
      "pos": [
        2703.6714616548275,
        3648.592289409647
      ],
      "size": [
        316.1412109375,
        202
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "WanContextWindowsManual"
      },
      "widgets_values": [
        81,
        20,
        "standard_static",
        1,
        false,
        "pyramid",
        false
      ]
    },
    {
      "id": 206,
      "type": "PreviewImage",
      "pos": [
        2186.6977483437845,
        5073.157727857738
      ],
      "size": [
        321.0570940581865,
        258
      ],
      "flags": {},
      "order": 60,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 548
        }
      ],
      "outputs": [],
      "properties": {
        "Node name for S&R": "PreviewImage"
      },
      "widgets_values": []
    },
    {
      "id": 190,
      "type": "ImageResizeKJv2",
      "pos": [
        370.6700595647124,
        4670.684460329053
      ],
      "size": [
        237.84731513212614,
        348
      ],
      "flags": {},
      "order": 45,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 499
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 497
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 498
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            518,
            557,
            574
          ]
        },
        {
          "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": 158,
      "type": "ImageResizeKJv2",
      "pos": [
        372.21105289943586,
        5099.48573696528
      ],
      "size": [
        229.58434728085035,
        348
      ],
      "flags": {},
      "order": 44,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 495
        },
        {
          "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": [
            526,
            558
          ]
        },
        {
          "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": 210,
      "type": "SetNode",
      "pos": [
        694.2024262056801,
        4718.372272987334
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 51,
      "mode": 0,
      "inputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "link": 557
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": null
        }
      ],
      "title": "Set_reference_front",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "reference_front"
      },
      "widgets_values": [
        "reference_front"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 211,
      "type": "SetNode",
      "pos": [
        692.2693840857514,
        5108.155857006567
      ],
      "size": [
        210,
        58
      ],
      "flags": {
        "collapsed": true
      },
      "order": 49,
      "mode": 0,
      "inputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "link": 558
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": null
        }
      ],
      "title": "Set_reference_back",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "reference_back"
      },
      "widgets_values": [
        "reference_back"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 212,
      "type": "SetNode",
      "pos": [
        660.6754675218504,
        5539.533246339601
      ],
      "size": [
        210,
        50
      ],
      "flags": {
        "collapsed": true
      },
      "order": 52,
      "mode": 0,
      "inputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "link": 560
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": null
        }
      ],
      "title": "Set_reference_bg",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": "reference_bg"
      },
      "widgets_values": [
        "reference_bg"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 215,
      "type": "GetNode",
      "pos": [
        3306.5148098568925,
        3993.368070039322
      ],
      "size": [
        210,
        58
      ],
      "flags": {
        "collapsed": true
      },
      "order": 17,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            563
          ]
        }
      ],
      "title": "Get_reference_back",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "reference_back"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 157,
      "type": "GetNode",
      "pos": [
        3327.015287323281,
        4089.3262458131762
      ],
      "size": [
        225,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 18,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            538
          ]
        }
      ],
      "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": 214,
      "type": "GetNode",
      "pos": [
        3314.0600136609887,
        4039.393343516889
      ],
      "size": [
        210,
        58
      ],
      "flags": {
        "collapsed": true
      },
      "order": 19,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            562
          ]
        }
      ],
      "title": "Get_reference_bg",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "reference_bg"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 213,
      "type": "GetNode",
      "pos": [
        3310.9188834650563,
        3940.7437350270766
      ],
      "size": [
        210,
        60
      ],
      "flags": {
        "collapsed": true
      },
      "order": 20,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            561
          ]
        }
      ],
      "title": "Get_reference_front",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "reference_front"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 156,
      "type": "ImageConcatMulti",
      "pos": [
        3875.487731191966,
        3937.6422356121607
      ],
      "size": [
        270,
        217.328125
      ],
      "flags": {},
      "order": 68,
      "mode": 0,
      "inputs": [
        {
          "name": "image_1",
          "type": "IMAGE,MASK",
          "link": 554
        },
        {
          "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": 178,
      "type": "ComfySwitchNode",
      "pos": [
        3889.9257271622364,
        4221.88114518633
      ],
      "size": [
        270,
        123.328125
      ],
      "flags": {},
      "order": 69,
      "mode": 0,
      "inputs": [
        {
          "name": "on_false",
          "type": "IMAGE",
          "link": 555
        },
        {
          "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": 89,
      "type": "ImageResizeKJv2",
      "pos": [
        552.3142236697793,
        5988.6493795395
      ],
      "size": [
        231.04252462225782,
        348
      ],
      "flags": {},
      "order": 37,
      "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,
            497,
            521
          ]
        },
        {
          "name": "height",
          "type": "INT",
          "links": [
            376,
            429,
            498,
            522
          ]
        },
        {
          "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": 85,
      "type": "SAM3_VideoTrack",
      "pos": [
        2086.9510608806436,
        6071.740711162051
      ],
      "size": [
        277.11795335466127,
        179.56482909083843
      ],
      "flags": {},
      "order": 39,
      "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": 547
        }
      ],
      "outputs": [
        {
          "name": "track_data",
          "type": "SAM3_TRACK_DATA",
          "links": [
            273
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "SAM3_VideoTrack"
      },
      "widgets_values": [
        0.5,
        3,
        3
      ]
    },
    {
      "id": 199,
      "type": "SAM3_Detect",
      "pos": [
        2115.80595801123,
        6390.971484396662
      ],
      "size": [
        270,
        206
      ],
      "flags": {},
      "order": 38,
      "mode": 0,
      "inputs": [
        {
          "label": "model",
          "name": "model",
          "type": "MODEL",
          "link": 529
        },
        {
          "label": "image",
          "name": "image",
          "type": "IMAGE",
          "link": 551
        },
        {
          "label": "conditioning",
          "name": "conditioning",
          "shape": 7,
          "type": "CONDITIONING",
          "link": 531
        },
        {
          "label": "bboxes",
          "name": "bboxes",
          "shape": 7,
          "type": "BOUNDING_BOX",
          "link": null
        },
        {
          "label": "positive_coords",
          "name": "positive_coords",
          "shape": 7,
          "type": "STRING",
          "link": null
        },
        {
          "label": "negative_coords",
          "name": "negative_coords",
          "shape": 7,
          "type": "STRING",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "masks",
          "type": "MASK",
          "links": [
            545
          ]
        },
        {
          "name": "bboxes",
          "type": "BOUNDING_BOX",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "SAM3_Detect"
      },
      "widgets_values": [
        0.85,
        1,
        false
      ]
    },
    {
      "id": 92,
      "type": "PreviewImage",
      "pos": [
        3176.8869857564537,
        6209.941431064138
      ],
      "size": [
        875.078125,
        787.515625
      ],
      "flags": {},
      "order": 61,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 385
        }
      ],
      "outputs": [],
      "properties": {
        "Node name for S&R": "PreviewImage"
      },
      "widgets_values": []
    },
    {
      "id": 11,
      "type": "LoraLoaderModelOnly",
      "pos": [
        1454.9432808810318,
        3927.5926712269033
      ],
      "size": [
        688.671875,
        113.328125
      ],
      "flags": {},
      "order": 48,
      "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": [
        "WanVid/Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16_.safetensors",
        1
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 9,
      "type": "CLIPLoader",
      "pos": [
        573.7160468478238,
        4050.0274674236657
      ],
      "size": [
        270,
        141.328125
      ],
      "flags": {},
      "order": 21,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            7,
            8
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPLoader"
      },
      "widgets_values": [
        "umt5_xxl_fp16.safetensors",
        "wan",
        "default"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 7,
      "type": "VAELoader",
      "pos": [
        595.5854261580267,
        4388.622266096984
      ],
      "size": [
        263.3125,
        80.328125
      ],
      "flags": {},
      "order": 22,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            446
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAELoader"
      },
      "widgets_values": [
        "Wan2_1_VAE_bf16.safetensors"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 189,
      "type": "LoadImage",
      "pos": [
        32.31849298691154,
        4622.92883989618
      ],
      "size": [
        282.78125,
        364.328125
      ],
      "flags": {},
      "order": 23,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            499
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "character_1.png",
        "image"
      ]
    },
    {
      "id": 188,
      "type": "LoadImage",
      "pos": [
        28.34925844896245,
        5098.976536770894
      ],
      "size": [
        282.78125,
        364.328125
      ],
      "flags": {},
      "order": 24,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            495
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "character_0.png",
        "image"
      ]
    },
    {
      "id": 196,
      "type": "LoadImage",
      "pos": [
        18.73597653633781,
        5508.309857860978
      ],
      "size": [
        282.78125,
        364.328125
      ],
      "flags": {},
      "order": 25,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            523
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "background.png",
        "image"
      ]
    },
    {
      "id": 86,
      "type": "CheckpointLoaderSimple",
      "pos": [
        1380.5357542024954,
        6218.371410710529
      ],
      "size": [
        270,
        128.328125
      ],
      "flags": {},
      "order": 26,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            220,
            529
          ]
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            222,
            546
          ]
        },
        {
          "name": "VAE",
          "type": "VAE",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "CheckpointLoaderSimple"
      },
      "widgets_values": [
        "sam3.1_multiplex_fp16.safetensors"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 168,
      "type": "LoraLoaderModelOnly",
      "pos": [
        1469.6539408666604,
        4089.3350590566224
      ],
      "size": [
        688.671875,
        113.328125
      ],
      "flags": {},
      "order": 57,
      "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": [
        "WanVid/wan2.1_SCAIL_2_DPO_lora_bf16.safetensors",
        1
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 180,
      "type": "GetImageSizeAndCount",
      "pos": [
        3964.659483282782,
        4423.073329799844
      ],
      "size": [
        225,
        143.328125
      ],
      "flags": {},
      "order": 70,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 478
        }
      ],
      "outputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "links": [
            568,
            569
          ]
        },
        {
          "label": "640 width",
          "name": "width",
          "type": "INT",
          "links": null
        },
        {
          "label": "896 height",
          "name": "height",
          "type": "INT",
          "links": null
        },
        {
          "label": "279 count",
          "name": "count",
          "type": "INT",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "GetImageSizeAndCount"
      },
      "widgets_values": []
    },
    {
      "id": 221,
      "type": "GetImageRangeFromBatch",
      "pos": [
        3785.4956796393803,
        4685.151662769733
      ],
      "size": [
        349.0111145019531,
        102
      ],
      "flags": {},
      "order": 72,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "shape": 7,
          "type": "IMAGE",
          "link": 569
        },
        {
          "name": "masks",
          "shape": 7,
          "type": "MASK",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": []
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "GetImageRangeFromBatch"
      },
      "widgets_values": [
        0,
        1
      ]
    },
    {
      "id": 19,
      "type": "SamplerCustom",
      "pos": [
        3229.1505464374163,
        4481.193846073976
      ],
      "size": [
        262.96875,
        669.1953125
      ],
      "flags": {},
      "order": 66,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 577
        },
        {
          "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,
        3,
        "fixed",
        1
      ]
    },
    {
      "id": 74,
      "type": "DiffusionModelLoaderKJ",
      "pos": [
        567.6807808477155,
        3741.2868191269363
      ],
      "size": [
        470.03125,
        259.328125
      ],
      "flags": {},
      "order": 27,
      "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_nvfp4_fullaccel.safetensors",
        "default",
        "default",
        false,
        "auto",
        true
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 192,
      "type": "BatchImagesNode",
      "pos": [
        1881.4336209526343,
        5067.659898357484
      ],
      "size": [
        225,
        106
      ],
      "flags": {},
      "order": 53,
      "mode": 0,
      "inputs": [
        {
          "label": "image0",
          "name": "images.image0",
          "type": "IMAGE",
          "link": 574
        },
        {
          "label": "image1",
          "name": "images.image1",
          "shape": 7,
          "type": "IMAGE",
          "link": 526
        },
        {
          "label": "image2",
          "name": "images.image2",
          "shape": 7,
          "type": "IMAGE",
          "link": 575
        },
        {
          "label": "image3",
          "name": "images.image3",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            511,
            548
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "BatchImagesNode"
      },
      "widgets_values": []
    },
    {
      "id": 197,
      "type": "ImageResizeKJv2",
      "pos": [
        383.04617004993156,
        5503.429225262193
      ],
      "size": [
        225.69595595383817,
        348
      ],
      "flags": {},
      "order": 46,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 523
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 521
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 522
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            560,
            575
          ]
        },
        {
          "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",
        "crop",
        "0, 0, 0",
        "center",
        16,
        "cpu"
      ]
    },
    {
      "id": 27,
      "type": "KSamplerSelect",
      "pos": [
        2320.7785811317967,
        3840.3442437174554
      ],
      "size": [
        255.125,
        80.328125
      ],
      "flags": {},
      "order": 28,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "SAMPLER",
          "type": "SAMPLER",
          "links": [
            487
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "KSamplerSelect"
      },
      "widgets_values": [
        "dpmpp_2m_sde"
      ]
    },
    {
      "id": 18,
      "type": "BasicScheduler",
      "pos": [
        2319.2458113573884,
        3976.5536683200303
      ],
      "size": [
        267.78125,
        115.94944892902367
      ],
      "flags": {},
      "order": 62,
      "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",
        8,
        1
      ]
    },
    {
      "id": 33,
      "type": "VHS_LoadVideo",
      "pos": [
        153.09486329846058,
        5963.659014210502
      ],
      "size": [
        255.8291015625,
        310
      ],
      "flags": {},
      "order": 29,
      "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": [
            556
          ]
        },
        {
          "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": "woman_sea.mp4",
        "force_rate": 0,
        "custom_width": 0,
        "custom_height": 0,
        "frame_load_cap": 0,
        "skip_first_frames": 0,
        "select_every_nth": 2,
        "format": "AnimateDiff",
        "videopreview": {
          "hidden": false,
          "paused": false,
          "params": {
            "filename": "woman_sea.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": 2
          }
        }
      }
    },
    {
      "id": 227,
      "type": "ContextWindowsVisualizerKJ",
      "pos": [
        2743.061972505687,
        3879.3493643777233
      ],
      "size": [
        707.3757772804634,
        594.8108668978939
      ],
      "flags": {},
      "order": 65,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "shape": 7,
          "type": "MODEL",
          "link": 576
        }
      ],
      "outputs": [
        {
          "name": "model",
          "type": "MODEL",
          "links": [
            577
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ContextWindowsVisualizerKJ",
        "cw_viz": {
          "step": 0,
          "steps": 20
        }
      },
      "widgets_values": [
        "pixel",
        2,
        4,
        272,
        81,
        36,
        "standard_static_balanced",
        1,
        false,
        "hann",
        false,
        true,
        "",
        ""
      ]
    },
    {
      "id": 219,
      "type": "VHS_VideoCombine",
      "pos": [
        4295.102058771549,
        3862.9051360677595
      ],
      "size": [
        1142.65625,
        334
      ],
      "flags": {},
      "order": 71,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 568
        },
        {
          "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": 24,
        "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_00010.mp4",
            "subfolder": "",
            "type": "temp",
            "format": "video/h264-mp4",
            "frame_rate": 16,
            "workflow": "Wan21_SCAIL2_00010.png",
            "fullpath": "/home/kijai/AI/dev/ComfyUI/temp/Wan21_SCAIL2_00010.mp4"
          }
        }
      }
    }
  ],
  "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"
    ],
    [
      222,
      86,
      1,
      87,
      0,
      "CLIP"
    ],
    [
      228,
      33,
      0,
      89,
      0,
      "IMAGE"
    ],
    [
      273,
      85,
      0,
      104,
      0,
      "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"
    ],
    [
      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"
    ],
    [
      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"
    ],
    [
      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"
    ],
    [
      434,
      163,
      0,
      156,
      1,
      "IMAGE"
    ],
    [
      446,
      7,
      0,
      22,
      0,
      "VAE"
    ],
    [
      450,
      11,
      0,
      168,
      0,
      "MODEL"
    ],
    [
      451,
      168,
      0,
      18,
      0,
      "MODEL"
    ],
    [
      452,
      168,
      0,
      95,
      0,
      "MODEL"
    ],
    [
      454,
      155,
      0,
      114,
      12,
      "BOOLEAN"
    ],
    [
      463,
      19,
      0,
      6,
      0,
      "LATENT"
    ],
    [
      464,
      114,
      2,
      19,
      5,
      "LATENT"
    ],
    [
      469,
      175,
      0,
      89,
      2,
      "INT"
    ],
    [
      470,
      174,
      0,
      89,
      3,
      "INT"
    ],
    [
      475,
      156,
      0,
      178,
      1,
      "IMAGE"
    ],
    [
      478,
      178,
      0,
      180,
      0,
      "IMAGE"
    ],
    [
      486,
      18,
      0,
      19,
      4,
      "SIGMAS"
    ],
    [
      487,
      27,
      0,
      19,
      3,
      "SAMPLER"
    ],
    [
      490,
      104,
      1,
      119,
      0,
      "IMAGE"
    ],
    [
      495,
      188,
      0,
      158,
      0,
      "IMAGE"
    ],
    [
      497,
      89,
      1,
      190,
      2,
      "INT"
    ],
    [
      498,
      89,
      2,
      190,
      3,
      "INT"
    ],
    [
      499,
      189,
      0,
      190,
      0,
      "IMAGE"
    ],
    [
      511,
      192,
      0,
      116,
      0,
      "IMAGE"
    ],
    [
      518,
      190,
      0,
      76,
      1,
      "IMAGE"
    ],
    [
      521,
      89,
      1,
      197,
      2,
      "INT"
    ],
    [
      522,
      89,
      2,
      197,
      3,
      "INT"
    ],
    [
      523,
      196,
      0,
      197,
      0,
      "IMAGE"
    ],
    [
      526,
      158,
      0,
      192,
      1,
      "IMAGE"
    ],
    [
      529,
      86,
      0,
      199,
      0,
      "MODEL"
    ],
    [
      531,
      87,
      0,
      199,
      2,
      "CONDITIONING"
    ],
    [
      538,
      157,
      0,
      163,
      3,
      "IMAGE"
    ],
    [
      545,
      199,
      0,
      104,
      1,
      "MASK"
    ],
    [
      546,
      86,
      1,
      204,
      0,
      "CLIP"
    ],
    [
      547,
      204,
      0,
      85,
      3,
      "CONDITIONING"
    ],
    [
      548,
      192,
      0,
      206,
      0,
      "IMAGE"
    ],
    [
      549,
      116,
      0,
      114,
      5,
      "IMAGE"
    ],
    [
      550,
      142,
      0,
      114,
      6,
      "IMAGE"
    ],
    [
      551,
      207,
      0,
      199,
      1,
      "IMAGE"
    ],
    [
      554,
      6,
      0,
      156,
      0,
      "IMAGE"
    ],
    [
      555,
      6,
      0,
      178,
      0,
      "IMAGE"
    ],
    [
      556,
      33,
      1,
      114,
      11,
      "INT"
    ],
    [
      557,
      190,
      0,
      210,
      0,
      "IMAGE"
    ],
    [
      558,
      158,
      0,
      211,
      0,
      "IMAGE"
    ],
    [
      560,
      197,
      0,
      212,
      0,
      "IMAGE"
    ],
    [
      561,
      213,
      0,
      163,
      0,
      "IMAGE"
    ],
    [
      562,
      214,
      0,
      163,
      2,
      "IMAGE"
    ],
    [
      563,
      215,
      0,
      163,
      1,
      "IMAGE"
    ],
    [
      568,
      180,
      0,
      219,
      0,
      "IMAGE"
    ],
    [
      569,
      180,
      0,
      221,
      0,
      "IMAGE"
    ],
    [
      574,
      190,
      0,
      192,
      0,
      "IMAGE"
    ],
    [
      575,
      197,
      0,
      192,
      2,
      "IMAGE"
    ],
    [
      576,
      95,
      0,
      227,
      0,
      "MODEL"
    ],
    [
      577,
      227,
      0,
      19,
      0,
      "MODEL"
    ]
  ],
  "groups": [
    {
      "id": 2,
      "title": "Segmentation",
      "bounding": [
        1197.7362442880453,
        6133.723148528547,
        3040.557680033455,
        1369.8794548369897
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 3,
      "title": "Models",
      "bounding": [
        357.91737789857456,
        3629.861253735203,
        1838.7766027399969,
        847.9734739748019
      ],
      "color": "#88A",
      "flags": {}
    },
    {
      "id": 4,
      "title": "collage",
      "bounding": [
        3257.8488393874904,
        3830.393657304613,
        936.0093304735592,
        531.9521678449419
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 5,
      "title": "Inputs",
      "bounding": [
        -407.1559692221114,
        4550.002991242083,
        1516.2277748205522,
        2204.6253008682506
      ],
      "color": "#3f789e",
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.4534133167610107,
      "offset": [
        -750.6469140953365,
        -3608.034774927254
      ]
    },
    "frontendVersion": "1.45.15",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}