{
  "config": {},
  "definitions": {
    "subgraphs": [
      {
        "config": {},
        "extra": {
          "workflowRendererVersion": "LG"
        },
        "groups": [
          {
            "bounding": [
              -190,
              -2290,
              610,
              189.6
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 4,
            "title": "Preview Pose"
          },
          {
            "bounding": [
              -1700,
              -2300,
              1470,
              683.6
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 5,
            "title": "Video Preprocess"
          },
          {
            "bounding": [
              -1700,
              -1560,
              1380,
              1060
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 7,
            "title": "Model"
          },
          {
            "bounding": [
              -280,
              -1570,
              1705.37109375,
              1515.6
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 8,
            "title": "Sampler"
          }
        ],
        "id": "2d4f2d38-ff62-4ae8-853d-2a359520164b",
        "inputNode": {
          "bounding": [
            -2550,
            -1650,
            135.044921875,
            160
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "21e5d8d7-9350-49ef-a987-38773c08c294",
            "linkIds": [
              664,
              717
            ],
            "localized_name": "num_frames",
            "name": "num_frames",
            "pos": [
              -2434.955078125,
              -1630
            ],
            "type": "INT"
          },
          {
            "id": "0838d78b-bb1a-46a5-a5fe-af962c3a2e21",
            "label": "height",
            "linkIds": [
              674,
              663,
              662
            ],
            "localized_name": "a",
            "name": "a",
            "pos": [
              -2434.955078125,
              -1610
            ],
            "shape": 7,
            "type": "INT,FLOAT"
          },
          {
            "id": "10fc3b97-af4e-42c5-8632-f82e7482250e",
            "label": "width",
            "linkIds": [
              673,
              660,
              675,
              676
            ],
            "localized_name": "a_1",
            "name": "a_1",
            "pos": [
              -2434.955078125,
              -1590
            ],
            "shape": 7,
            "type": "INT,FLOAT"
          },
          {
            "id": "861bb5d6-0244-42f0-826d-a4406751ad5e",
            "label": "reference_image",
            "linkIds": [
              564
            ],
            "localized_name": "image",
            "name": "image",
            "pos": [
              -2434.955078125,
              -1570
            ],
            "type": "IMAGE"
          },
          {
            "id": "748dc34e-85a3-4024-83db-4c31ad72cacc",
            "linkIds": [
              683
            ],
            "name": "positive_prompt",
            "pos": [
              -2434.955078125,
              -1550
            ],
            "type": "STRING"
          },
          {
            "id": "4798ebc9-b840-49c6-b76d-66218d48b1a3",
            "label": "control_video",
            "linkIds": [
              713
            ],
            "name": "video",
            "pos": [
              -2434.955078125,
              -1530
            ],
            "type": "VIDEO"
          }
        ],
        "links": [
          {
            "id": 665,
            "origin_id": 107,
            "origin_slot": 1,
            "target_id": 99,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 666,
            "origin_id": 107,
            "origin_slot": 2,
            "target_id": 99,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 668,
            "origin_id": 38,
            "origin_slot": 0,
            "target_id": 28,
            "target_slot": 0,
            "type": "WANVAE"
          },
          {
            "id": 596,
            "origin_id": 348,
            "origin_slot": 0,
            "target_id": 28,
            "target_slot": 1,
            "type": "LATENT"
          },
          {
            "id": 621,
            "origin_id": 334,
            "origin_slot": 0,
            "target_id": 362,
            "target_slot": 0,
            "type": "NLFPRED"
          },
          {
            "id": 626,
            "origin_id": 363,
            "origin_slot": 0,
            "target_id": 362,
            "target_slot": 1,
            "type": "DWPOSES"
          },
          {
            "id": 633,
            "origin_id": 365,
            "origin_slot": 0,
            "target_id": 362,
            "target_slot": 2,
            "type": "DWPOSES"
          },
          {
            "id": 656,
            "origin_id": 382,
            "origin_slot": 0,
            "target_id": 362,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 658,
            "origin_id": 383,
            "origin_slot": 0,
            "target_id": 362,
            "target_slot": 4,
            "type": "INT"
          },
          {
            "id": 604,
            "origin_id": 99,
            "origin_slot": 0,
            "target_id": 350,
            "target_slot": 0,
            "type": "WANVIDIMAGE_EMBEDS"
          },
          {
            "id": 669,
            "origin_id": 38,
            "origin_slot": 0,
            "target_id": 350,
            "target_slot": 1,
            "type": "WANVAE"
          },
          {
            "id": 607,
            "origin_id": 327,
            "origin_slot": 0,
            "target_id": 350,
            "target_slot": 3,
            "type": "WANVIDIMAGE_CLIPEMBEDS"
          },
          {
            "id": 608,
            "origin_id": 350,
            "origin_slot": 0,
            "target_id": 324,
            "target_slot": 0,
            "type": "WANVIDIMAGE_EMBEDS"
          },
          {
            "id": 667,
            "origin_id": 38,
            "origin_slot": 0,
            "target_id": 324,
            "target_slot": 1,
            "type": "WANVAE"
          },
          {
            "id": 659,
            "origin_id": 384,
            "origin_slot": 0,
            "target_id": 334,
            "target_slot": 0,
            "type": "NLFMODEL"
          },
          {
            "id": 627,
            "origin_id": 364,
            "origin_slot": 0,
            "target_id": 363,
            "target_slot": 0,
            "type": "POSEMODEL"
          },
          {
            "id": 629,
            "origin_id": 364,
            "origin_slot": 0,
            "target_id": 365,
            "target_slot": 0,
            "type": "POSEMODEL"
          },
          {
            "id": 630,
            "origin_id": 107,
            "origin_slot": 0,
            "target_id": 365,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 614,
            "origin_id": 355,
            "origin_slot": 0,
            "target_id": 354,
            "target_slot": 1,
            "type": "WANVIDCONTEXT"
          },
          {
            "id": 670,
            "origin_id": 80,
            "origin_slot": 0,
            "target_id": 348,
            "target_slot": 0,
            "type": "WANVIDEOMODEL"
          },
          {
            "id": 600,
            "origin_id": 324,
            "origin_slot": 0,
            "target_id": 348,
            "target_slot": 1,
            "type": "WANVIDIMAGE_EMBEDS"
          },
          {
            "id": 598,
            "origin_id": 349,
            "origin_slot": 0,
            "target_id": 348,
            "target_slot": 2,
            "type": "WANVIDEOSCHEDULER"
          },
          {
            "id": 671,
            "origin_id": 368,
            "origin_slot": 0,
            "target_id": 348,
            "target_slot": 3,
            "type": "WANVIDEOTEXTEMBEDS"
          },
          {
            "id": 652,
            "origin_id": 354,
            "origin_slot": 0,
            "target_id": 348,
            "target_slot": 5,
            "type": "WANVIDSAMPLEREXTRAARGS"
          },
          {
            "id": 554,
            "origin_id": 326,
            "origin_slot": 0,
            "target_id": 327,
            "target_slot": 0,
            "type": "CLIP_VISION"
          },
          {
            "id": 654,
            "origin_id": 22,
            "origin_slot": 0,
            "target_id": 80,
            "target_slot": 0,
            "type": "WANVIDEOMODEL"
          },
          {
            "id": 110,
            "origin_id": 56,
            "origin_slot": 0,
            "target_id": 80,
            "target_slot": 1,
            "type": "WANVIDLORA"
          },
          {
            "id": 664,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 99,
            "target_slot": 4,
            "type": "INT"
          },
          {
            "id": 674,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 383,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 663,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 107,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 662,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 131,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 673,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 382,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 660,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 131,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 564,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 107,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 675,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 107,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 676,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 107,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 683,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 368,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 690,
            "origin_id": 131,
            "origin_slot": 0,
            "target_id": 334,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 691,
            "origin_id": 131,
            "origin_slot": 0,
            "target_id": 363,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 692,
            "origin_id": 107,
            "origin_slot": 0,
            "target_id": 327,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 693,
            "origin_id": 107,
            "origin_slot": 0,
            "target_id": 350,
            "target_slot": 2,
            "type": "IMAGE"
          },
          {
            "id": 694,
            "origin_id": 362,
            "origin_slot": 0,
            "target_id": 324,
            "target_slot": 2,
            "type": "IMAGE"
          },
          {
            "id": 696,
            "origin_id": 28,
            "origin_slot": 0,
            "target_id": 395,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 702,
            "origin_id": 362,
            "origin_slot": 0,
            "target_id": 397,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 703,
            "origin_id": 397,
            "origin_slot": 0,
            "target_id": 398,
            "target_slot": 0,
            "type": "VIDEO"
          },
          {
            "id": 709,
            "origin_id": 395,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "VIDEO"
          },
          {
            "id": 711,
            "origin_id": 405,
            "origin_slot": 1,
            "target_id": 395,
            "target_slot": 1,
            "type": "AUDIO"
          },
          {
            "id": 713,
            "origin_id": -10,
            "origin_slot": 5,
            "target_id": 405,
            "target_slot": 0,
            "type": "VIDEO"
          },
          {
            "id": 715,
            "origin_id": 405,
            "origin_slot": 0,
            "target_id": 406,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 716,
            "origin_id": 406,
            "origin_slot": 0,
            "target_id": 131,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 717,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 406,
            "target_slot": 1,
            "type": "INT"
          }
        ],
        "name": "Wan 2.1 SCAIL",
        "nodes": [
          {
            "flags": {},
            "id": 355,
            "inputs": [
              {
                "link": null,
                "localized_name": "reference_latent",
                "name": "reference_latent",
                "shape": 7,
                "type": "LATENT"
              }
            ],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  614
                ],
                "localized_name": "context_options",
                "name": "context_options",
                "type": "WANVIDCONTEXT"
              }
            ],
            "pos": [
              290,
              -310
            ],
            "properties": {
              "Node name for S&R": "WanVideoContextOptions",
              "aux_id": "kijai/ComfyUI-WanVideoWrapper",
              "cnr_id": "ComfyUI-WanVideoWrapper",
              "ver": "98f8e56bcacfc07e12cbb4b26555b2b28d9db92f"
            },
            "size": [
              286.8515625,
              202
            ],
            "type": "WanVideoContextOptions",
            "widgets_values": [
              "uniform_standard",
              81,
              4,
              48,
              true,
              false,
              "linear"
            ]
          },
          {
            "flags": {},
            "id": 365,
            "inputs": [
              {
                "link": 629,
                "localized_name": "vitpose_model",
                "name": "vitpose_model",
                "type": "POSEMODEL"
              },
              {
                "link": 630,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 26,
            "outputs": [
              {
                "links": [
                  633
                ],
                "localized_name": "dw_poses",
                "name": "dw_poses",
                "type": "DWPOSES"
              }
            ],
            "pos": [
              -870,
              -1940
            ],
            "properties": {
              "Node name for S&R": "PoseDetectionVitPoseToDWPose",
              "aux_id": "kijai/ComfyUI-SCAIL-Pose",
              "cnr_id": "comfyui-scail-pose",
              "ver": "93059f0fe4ea3881c0d6ec0e327e5d920554277d"
            },
            "size": [
              271.9595703125,
              46
            ],
            "type": "PoseDetectionVitPoseToDWPose",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 334,
            "inputs": [
              {
                "link": 659,
                "localized_name": "model",
                "name": "model",
                "type": "NLFMODEL"
              },
              {
                "link": 690,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 21,
            "outputs": [
              {
                "links": [
                  621
                ],
                "localized_name": "pose_results",
                "name": "pose_results",
                "type": "NLFPRED"
              },
              {
                "links": null,
                "localized_name": "bboxes",
                "name": "bboxes",
                "type": "BBOX"
              }
            ],
            "pos": [
              -870,
              -2230
            ],
            "properties": {
              "Node name for S&R": "NLFPredict",
              "aux_id": "kijai/ComfyUI-WanVideoWrapper",
              "cnr_id": "ComfyUI-WanVideoWrapper",
              "ver": "4a3ab6958a5d9650eb4e3c2eb1753c2d7c5b77c6"
            },
            "size": [
              210,
              78
            ],
            "type": "NLFPredict",
            "widgets_values": [
              -1
            ]
          },
          {
            "flags": {},
            "id": 384,
            "inputs": [],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  659
                ],
                "localized_name": "nlf_model",
                "name": "nlf_model",
                "type": "NLFMODEL"
              }
            ],
            "pos": [
              -1320,
              -2210
            ],
            "properties": {
              "Node name for S&R": "LoadNLFModel"
            },
            "size": [
              270,
              82
            ],
            "type": "LoadNLFModel",
            "widgets_values": [
              "nlf_l_multi_0.3.2.torchscript",
              true
            ]
          },
          {
            "bgcolor": "#335",
            "color": "#223",
            "flags": {},
            "id": 35,
            "inputs": [],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [],
                "localized_name": "torch_compile_args",
                "name": "torch_compile_args",
                "slot_index": 0,
                "type": "WANCOMPILEARGS"
              }
            ],
            "pos": [
              -1690,
              -1350
            ],
            "properties": {
              "Node name for S&R": "WanVideoTorchCompileSettings",
              "aux_id": "kijai/ComfyUI-WanVideoWrapper",
              "cnr_id": "ComfyUI-WanVideoWrapper",
              "ver": "998a69cc0acbec503001b8b0ce0a5d5404420e1e"
            },
            "size": [
              390.5999755859375,
              250
            ],
            "type": "WanVideoTorchCompileSettings",
            "widgets_values": [
              "inductor",
              false,
              "default",
              false,
              64,
              true,
              128,
              false,
              false
            ]
          },
          {
            "bgcolor": "#335",
            "color": "#223",
            "flags": {},
            "id": 22,
            "inputs": [
              {
                "link": null,
                "localized_name": "compile_args",
                "name": "compile_args",
                "shape": 7,
                "type": "WANCOMPILEARGS"
              },
              {
                "link": null,
                "localized_name": "block_swap_args",
                "name": "block_swap_args",
                "shape": 7,
                "type": "BLOCKSWAPARGS"
              },
              {
                "link": null,
                "localized_name": "lora",
                "name": "lora",
                "shape": 7,
                "type": "WANVIDLORA"
              },
              {
                "link": null,
                "localized_name": "vram_management_args",
                "name": "vram_management_args",
                "shape": 7,
                "type": "VRAM_MANAGEMENTARGS"
              },
              {
                "link": null,
                "localized_name": "extra_model",
                "name": "extra_model",
                "shape": 7,
                "type": "VACEPATH"
              },
              {
                "link": null,
                "localized_name": "fantasytalking_model",
                "name": "fantasytalking_model",
                "shape": 7,
                "type": "FANTASYTALKINGMODEL"
              },
              {
                "link": null,
                "localized_name": "multitalk_model",
                "name": "multitalk_model",
                "shape": 7,
                "type": "MULTITALKMODEL"
              },
              {
                "link": null,
                "localized_name": "fantasyportrait_model",
                "name": "fantasyportrait_model",
                "shape": 7,
                "type": "FANTASYPORTRAITMODEL"
              },
              {
                "link": null,
                "name": "vace_model",
                "shape": 7,
                "type": "VACEPATH"
              }
            ],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  654
                ],
                "localized_name": "model",
                "name": "model",
                "slot_index": 0,
                "type": "WANVIDEOMODEL"
              }
            ],
            "pos": [
              -1270,
              -1350
            ],
            "properties": {
              "Node name for S&R": "WanVideoModelLoader",
              "aux_id": "kijai/ComfyUI-WanVideoWrapper",
              "cnr_id": "ComfyUI-WanVideoWrapper",
              "ver": "998a69cc0acbec503001b8b0ce0a5d5404420e1e"
            },
            "size": [
              477.4410095214844,
              338
            ],
            "type": "WanVideoModelLoader",
            "widgets_values": [
              "Wan21-14B-SCAIL-preview_comfy_bf16.safetensors",
              "fp16_fast",
              "disabled",
              "offload_device",
              "sdpa",
              "default"
            ]
          },
          {
            "bgcolor": "#335",
            "color": "#223",
            "flags": {},
            "id": 56,
            "inputs": [
              {
                "link": null,
                "localized_name": "prev_lora",
                "name": "prev_lora",
                "shape": 7,
                "type": "WANVIDLORA"
              },
              {
                "link": null,
                "localized_name": "blocks",
                "name": "blocks",
                "shape": 7,
                "type": "SELECTEDBLOCKS"
              }
            ],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  110
                ],
                "localized_name": "lora",
                "name": "lora",
                "type": "WANVIDLORA"
              }
            ],
            "pos": [
              -1420,
              -930
            ],
            "properties": {
              "Node name for S&R": "WanVideoLoraSelect",
              "aux_id": "kijai/ComfyUI-WanVideoWrapper",
              "cnr_id": "ComfyUI-WanVideoWrapper",
              "ver": "998a69cc0acbec503001b8b0ce0a5d5404420e1e"
            },
            "size": [
              625.6896274024377,
              154.3601465571362
            ],
            "type": "WanVideoLoraSelect",
            "widgets_values": [
              "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",
              1,
              false,
              false
            ]
          },
          {
            "bgcolor": "#533",
            "color": "#322",
            "flags": {},
            "id": 38,
            "inputs": [
              {
                "link": null,
                "localized_name": "compile_args",
                "name": "compile_args",
                "shape": 7,
                "type": "WANCOMPILEARGS"
              }
            ],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": [
                  667,
                  668,
                  669
                ],
                "localized_name": "vae",
                "name": "vae",
                "slot_index": 0,
                "type": "WANVAE"
              }
            ],
            "pos": [
              -1180,
              -670
            ],
            "properties": {
              "Node name for S&R": "WanVideoVAELoader",
              "aux_id": "kijai/ComfyUI-WanVideoWrapper",
              "cnr_id": "ComfyUI-WanVideoWrapper",
              "ver": "998a69cc0acbec503001b8b0ce0a5d5404420e1e"
            },
            "size": [
              315,
              130
            ],
            "type": "WanVideoVAELoader",
            "widgets_values": [
              "wan_2.1_vae.safetensors",
              "bf16",
              false,
              false
            ]
          },
          {
            "flags": {},
            "id": 349,
            "inputs": [
              {
                "link": null,
                "localized_name": "sigmas",
                "name": "sigmas",
                "shape": 7,
                "type": "SIGMAS"
              }
            ],
            "mode": 0,
            "order": 6,
            "outputs": [
              {
                "links": [
                  598
                ],
                "localized_name": "scheduler",
                "name": "scheduler",
                "type": "WANVIDEOSCHEDULER"
              }
            ],
            "pos": [
              670,
              -1280
            ],
            "properties": {
              "Node name for S&R": "WanVideoSchedulerv2",
              "aux_id": "kijai/ComfyUI-WanVideoWrapper",
              "cnr_id": "ComfyUI-WanVideoWrapper",
              "ver": "98f8e56bcacfc07e12cbb4b26555b2b28d9db92f"
            },
            "size": [
              295.7647745576885,
              445.7936651608752
            ],
            "type": "WanVideoSchedulerv2",
            "widgets_values": [
              "dpm++_sde",
              6,
              7,
              0,
              -1,
              false
            ]
          },
          {
            "bgcolor": "#593930",
            "color": "#332922",
            "flags": {},
            "id": 368,
            "inputs": [
              {
                "link": null,
                "localized_name": "extender_args",
                "name": "extender_args",
                "shape": 7,
                "type": "WANVIDEOPROMPTEXTENDER_ARGS"
              },
              {
                "link": 683,
                "localized_name": "positive_prompt",
                "name": "positive_prompt",
                "type": "STRING",
                "widget": {
                  "name": "positive_prompt"
                }
              }
            ],
            "mode": 0,
            "order": 27,
            "outputs": [
              {
                "links": [
                  671
                ],
                "localized_name": "text_embeds",
                "name": "text_embeds",
                "type": "WANVIDEOTEXTEMBEDS"
              },
              {
                "links": null,
                "localized_name": "negative_text_embeds",
                "name": "negative_text_embeds",
                "type": "WANVIDEOTEXTEMBEDS"
              },
              {
                "links": null,
                "localized_name": "positive_prompt",
                "name": "positive_prompt",
                "type": "STRING"
              }
            ],
            "pos": [
              550,
              -780
            ],
            "properties": {
              "Node name for S&R": "WanVideoTextEncodeCached",
              "aux_id": "kijai/ComfyUI-WanVideoWrapper",
              "cnr_id": "ComfyUI-WanVideoWrapper",
              "ver": "bb0c55da4d8f8bca4968704e877fd057a90a1eeb"
            },
            "size": [
              424.569194714732,
              373.25066467272313
            ],
            "type": "WanVideoTextEncodeCached",
            "widgets_values": [
              "umt5_xxl_fp16.safetensors",
              "bf16",
              "a pirate is dancing in the alley",
              "色调艳丽，过曝，静态，细节模糊不清，字幕，风格，作品，画作，画面，静止，整体发灰，最差质量，低质量，JPEG压缩残留，丑陋的，残缺的，多余的手指，画得不好的手部，画得不好的脸部，畸形的，毁容的，形态畸形的肢体，手指融合，静止不动的画面，杂乱的背景，三条腿，背景人很多，倒着走",
              "disabled",
              false,
              "gpu"
            ]
          },
          {
            "flags": {
              "collapsed": false
            },
            "id": 354,
            "inputs": [
              {
                "link": null,
                "localized_name": "feta_args",
                "name": "feta_args",
                "shape": 7,
                "type": "FETAARGS"
              },
              {
                "link": 614,
                "localized_name": "context_options",
                "name": "context_options",
                "shape": 7,
                "type": "WANVIDCONTEXT"
              },
              {
                "link": null,
                "localized_name": "cache_args",
                "name": "cache_args",
                "shape": 7,
                "type": "CACHEARGS"
              },
              {
                "link": null,
                "localized_name": "slg_args",
                "name": "slg_args",
                "shape": 7,
                "type": "SLGARGS"
              },
              {
                "link": null,
                "localized_name": "loop_args",
                "name": "loop_args",
                "shape": 7,
                "type": "LOOPARGS"
              },
              {
                "link": null,
                "localized_name": "experimental_args",
                "name": "experimental_args",
                "shape": 7,
                "type": "EXPERIMENTALARGS"
              },
              {
                "link": null,
                "localized_name": "unianimate_poses",
                "name": "unianimate_poses",
                "shape": 7,
                "type": "UNIANIMATE_POSE"
              },
              {
                "link": null,
                "localized_name": "fantasytalking_embeds",
                "name": "fantasytalking_embeds",
                "shape": 7,
                "type": "FANTASYTALKING_EMBEDS"
              },
              {
                "link": null,
                "localized_name": "uni3c_embeds",
                "name": "uni3c_embeds",
                "shape": 7,
                "type": "UNI3C_EMBEDS"
              },
              {
                "link": null,
                "localized_name": "multitalk_embeds",
                "name": "multitalk_embeds",
                "shape": 7,
                "type": "MULTITALK_EMBEDS"
              }
            ],
            "mode": 0,
            "order": 13,
            "outputs": [
              {
                "links": [
                  652
                ],
                "localized_name": "extra_args",
                "name": "extra_args",
                "type": "WANVIDSAMPLEREXTRAARGS"
              }
            ],
            "pos": [
              650,
              -330
            ],
            "properties": {
              "Node name for S&R": "WanVideoSamplerExtraArgs",
              "aux_id": "kijai/ComfyUI-WanVideoWrapper",
              "cnr_id": "ComfyUI-WanVideoWrapper",
              "ver": "98f8e56bcacfc07e12cbb4b26555b2b28d9db92f"
            },
            "size": [
              314.0220703125,
              262
            ],
            "type": "WanVideoSamplerExtraArgs",
            "widgets_values": [
              0,
              "comfy"
            ]
          },
          {
            "bgcolor": "#535",
            "color": "#323",
            "flags": {},
            "id": 324,
            "inputs": [
              {
                "link": 608,
                "localized_name": "embeds",
                "name": "embeds",
                "type": "WANVIDIMAGE_EMBEDS"
              },
              {
                "link": 667,
                "localized_name": "vae",
                "name": "vae",
                "type": "WANVAE"
              },
              {
                "link": 694,
                "localized_name": "pose_images",
                "name": "pose_images",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 19,
            "outputs": [
              {
                "links": [
                  600
                ],
                "localized_name": "image_embeds",
                "name": "image_embeds",
                "type": "WANVIDIMAGE_EMBEDS"
              }
            ],
            "pos": [
              620,
              -1500
            ],
            "properties": {
              "Node name for S&R": "WanVideoAddSCAILPoseEmbeds",
              "aux_id": "kijai/ComfyUI-WanVideoWrapper",
              "cnr_id": "ComfyUI-WanVideoWrapper",
              "ver": "4a3ab6958a5d9650eb4e3c2eb1753c2d7c5b77c6"
            },
            "size": [
              335.5962890625,
              146
            ],
            "type": "WanVideoAddSCAILPoseEmbeds",
            "widgets_values": [
              1,
              0,
              0.5
            ]
          },
          {
            "bgcolor": "#355",
            "color": "#233",
            "flags": {},
            "id": 326,
            "inputs": [],
            "mode": 0,
            "order": 7,
            "outputs": [
              {
                "links": [
                  554
                ],
                "localized_name": "CLIP_VISION",
                "name": "CLIP_VISION",
                "type": "CLIP_VISION"
              }
            ],
            "pos": [
              -1200,
              -1490
            ],
            "properties": {
              "Node name for S&R": "CLIPVisionLoader",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "clip_vision",
                  "name": "clip_vision_h.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/clip_vision/clip_vision_h.safetensors"
                }
              ],
              "ver": "0.4.0"
            },
            "size": [
              390,
              58
            ],
            "type": "CLIPVisionLoader",
            "widgets_values": [
              "clip_vision_h.safetensors"
            ]
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 382,
            "inputs": [
              {
                "link": 673,
                "localized_name": "a",
                "name": "a",
                "shape": 7,
                "type": "INT,FLOAT"
              },
              {
                "link": null,
                "localized_name": "b",
                "name": "b",
                "shape": 7,
                "type": "INT,FLOAT"
              }
            ],
            "mode": 0,
            "order": 28,
            "outputs": [
              {
                "links": [
                  656
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              }
            ],
            "pos": [
              -1680,
              -1710
            ],
            "properties": {
              "Node name for S&R": "SimpleMath+"
            },
            "size": [
              270,
              78
            ],
            "type": "SimpleMath+",
            "widgets_values": [
              "a / 2"
            ]
          },
          {
            "flags": {
              "collapsed": true
            },
            "id": 383,
            "inputs": [
              {
                "link": 674,
                "localized_name": "a",
                "name": "a",
                "shape": 7,
                "type": "INT,FLOAT"
              },
              {
                "link": null,
                "localized_name": "b",
                "name": "b",
                "shape": 7,
                "type": "INT,FLOAT"
              }
            ],
            "mode": 0,
            "order": 29,
            "outputs": [
              {
                "links": [
                  658
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              }
            ],
            "pos": [
              -1690,
              -1630
            ],
            "properties": {
              "Node name for S&R": "SimpleMath+"
            },
            "size": [
              270,
              78
            ],
            "type": "SimpleMath+",
            "widgets_values": [
              "a / 2"
            ]
          },
          {
            "flags": {},
            "id": 397,
            "inputs": [
              {
                "link": 702,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "audio",
                "name": "audio",
                "shape": 7,
                "type": "AUDIO"
              }
            ],
            "mode": 4,
            "order": 31,
            "outputs": [
              {
                "links": [
                  703
                ],
                "localized_name": "VIDEO",
                "name": "VIDEO",
                "type": "VIDEO"
              }
            ],
            "pos": [
              -180,
              -2220
            ],
            "properties": {
              "Node name for S&R": "CreateVideo"
            },
            "size": [
              270,
              78
            ],
            "type": "CreateVideo",
            "widgets_values": [
              24
            ]
          },
          {
            "flags": {},
            "id": 398,
            "inputs": [
              {
                "link": 703,
                "localized_name": "video",
                "name": "video",
                "type": "VIDEO"
              }
            ],
            "mode": 4,
            "order": 32,
            "outputs": [],
            "pos": [
              140,
              -2220
            ],
            "properties": {},
            "size": [
              270,
              106
            ],
            "type": "SaveVideo",
            "widgets_values": [
              "video/ComfyUI",
              "auto",
              "auto"
            ]
          },
          {
            "bgcolor": "#535",
            "color": "#323",
            "flags": {},
            "id": 350,
            "inputs": [
              {
                "link": 604,
                "localized_name": "embeds",
                "name": "embeds",
                "type": "WANVIDIMAGE_EMBEDS"
              },
              {
                "link": 669,
                "localized_name": "vae",
                "name": "vae",
                "type": "WANVAE"
              },
              {
                "link": 693,
                "localized_name": "ref_image",
                "name": "ref_image",
                "type": "IMAGE"
              },
              {
                "link": 607,
                "localized_name": "clip_embeds",
                "name": "clip_embeds",
                "shape": 7,
                "type": "WANVIDIMAGE_CLIPEMBEDS"
              }
            ],
            "mode": 0,
            "order": 23,
            "outputs": [
              {
                "links": [
                  608
                ],
                "localized_name": "image_embeds",
                "name": "image_embeds",
                "type": "WANVIDIMAGE_EMBEDS"
              }
            ],
            "pos": [
              90,
              -1500
            ],
            "properties": {
              "Node name for S&R": "WanVideoAddSCAILReferenceEmbeds",
              "aux_id": "kijai/ComfyUI-WanVideoWrapper",
              "cnr_id": "ComfyUI-WanVideoWrapper",
              "ver": "98f8e56bcacfc07e12cbb4b26555b2b28d9db92f"
            },
            "size": [
              390,
              166
            ],
            "type": "WanVideoAddSCAILReferenceEmbeds",
            "widgets_values": [
              1,
              0,
              1
            ]
          },
          {
            "bgcolor": "#535",
            "color": "#323",
            "flags": {},
            "id": 99,
            "inputs": [
              {
                "link": null,
                "localized_name": "control_embeds",
                "name": "control_embeds",
                "shape": 7,
                "type": "WANVIDIMAGE_EMBEDS"
              },
              {
                "link": null,
                "localized_name": "extra_latents",
                "name": "extra_latents",
                "shape": 7,
                "type": "LATENT"
              },
              {
                "link": 665,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 666,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              },
              {
                "link": 664,
                "localized_name": "num_frames",
                "name": "num_frames",
                "type": "INT",
                "widget": {
                  "name": "num_frames"
                }
              }
            ],
            "mode": 0,
            "order": 16,
            "outputs": [
              {
                "links": [
                  604
                ],
                "localized_name": "image_embeds",
                "name": "image_embeds",
                "type": "WANVIDIMAGE_EMBEDS"
              }
            ],
            "pos": [
              -270,
              -1490
            ],
            "properties": {
              "Node name for S&R": "WanVideoEmptyEmbeds",
              "aux_id": "kijai/ComfyUI-WanVideoWrapper",
              "cnr_id": "ComfyUI-WanVideoWrapper",
              "ver": "0f217be4d8742741b0f89db50138214302a58dc3"
            },
            "size": [
              272.431640625,
              126
            ],
            "type": "WanVideoEmptyEmbeds",
            "widgets_values": [
              480,
              1216,
              77
            ]
          },
          {
            "bgcolor": "#533",
            "color": "#322",
            "flags": {},
            "id": 28,
            "inputs": [
              {
                "link": 668,
                "localized_name": "vae",
                "name": "vae",
                "type": "WANVAE"
              },
              {
                "link": 596,
                "localized_name": "samples",
                "name": "samples",
                "type": "LATENT"
              }
            ],
            "mode": 0,
            "order": 15,
            "outputs": [
              {
                "links": [
                  696
                ],
                "localized_name": "images",
                "name": "images",
                "slot_index": 0,
                "type": "IMAGE"
              }
            ],
            "pos": [
              1750,
              -930
            ],
            "properties": {
              "Node name for S&R": "WanVideoDecode",
              "aux_id": "kijai/ComfyUI-WanVideoWrapper",
              "cnr_id": "ComfyUI-WanVideoWrapper",
              "ver": "998a69cc0acbec503001b8b0ce0a5d5404420e1e"
            },
            "size": [
              315,
              198
            ],
            "type": "WanVideoDecode",
            "widgets_values": [
              false,
              272,
              272,
              144,
              128,
              "default"
            ]
          },
          {
            "flags": {},
            "id": 348,
            "inputs": [
              {
                "link": 670,
                "localized_name": "model",
                "name": "model",
                "type": "WANVIDEOMODEL"
              },
              {
                "link": 600,
                "localized_name": "image_embeds",
                "name": "image_embeds",
                "type": "WANVIDIMAGE_EMBEDS"
              },
              {
                "link": 598,
                "localized_name": "scheduler",
                "name": "scheduler",
                "type": "WANVIDEOSCHEDULER"
              },
              {
                "link": 671,
                "localized_name": "text_embeds",
                "name": "text_embeds",
                "shape": 7,
                "type": "WANVIDEOTEXTEMBEDS"
              },
              {
                "link": null,
                "localized_name": "samples",
                "name": "samples",
                "shape": 7,
                "type": "LATENT"
              },
              {
                "link": 652,
                "localized_name": "extra_args",
                "name": "extra_args",
                "shape": 7,
                "type": "WANVIDSAMPLEREXTRAARGS"
              }
            ],
            "mode": 0,
            "order": 22,
            "outputs": [
              {
                "links": [
                  596
                ],
                "localized_name": "samples",
                "name": "samples",
                "type": "LATENT"
              },
              {
                "links": null,
                "localized_name": "denoised_samples",
                "name": "denoised_samples",
                "type": "LATENT"
              }
            ],
            "pos": [
              1120,
              -1280
            ],
            "properties": {
              "Node name for S&R": "WanVideoSamplerv2",
              "aux_id": "kijai/ComfyUI-WanVideoWrapper",
              "cnr_id": "ComfyUI-WanVideoWrapper",
              "ver": "98f8e56bcacfc07e12cbb4b26555b2b28d9db92f"
            },
            "size": [
              295.37109375,
              745.3098958333334
            ],
            "type": "WanVideoSamplerv2",
            "widgets_values": [
              1,
              42,
              "fixed",
              true,
              false
            ]
          },
          {
            "bgcolor": "#335",
            "color": "#223",
            "flags": {},
            "id": 80,
            "inputs": [
              {
                "link": 654,
                "localized_name": "model",
                "name": "model",
                "type": "WANVIDEOMODEL"
              },
              {
                "link": 110,
                "localized_name": "lora",
                "name": "lora",
                "shape": 7,
                "type": "WANVIDLORA"
              }
            ],
            "mode": 0,
            "order": 14,
            "outputs": [
              {
                "links": [
                  670
                ],
                "localized_name": "model",
                "name": "model",
                "type": "WANVIDEOMODEL"
              }
            ],
            "pos": [
              -660,
              -970
            ],
            "properties": {
              "Node name for S&R": "WanVideoSetLoRAs",
              "aux_id": "kijai/ComfyUI-WanVideoWrapper",
              "cnr_id": "ComfyUI-WanVideoWrapper",
              "ver": "998a69cc0acbec503001b8b0ce0a5d5404420e1e"
            },
            "size": [
              222.27981567382812,
              46
            ],
            "type": "WanVideoSetLoRAs",
            "widgets_values": []
          },
          {
            "bgcolor": "#355",
            "color": "#233",
            "flags": {},
            "id": 327,
            "inputs": [
              {
                "link": 554,
                "localized_name": "clip_vision",
                "name": "clip_vision",
                "type": "CLIP_VISION"
              },
              {
                "link": 692,
                "localized_name": "image_1",
                "name": "image_1",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "image_2",
                "name": "image_2",
                "shape": 7,
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "negative_image",
                "name": "negative_image",
                "shape": 7,
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 20,
            "outputs": [
              {
                "links": [
                  607
                ],
                "localized_name": "image_embeds",
                "name": "image_embeds",
                "type": "WANVIDIMAGE_CLIPEMBEDS"
              }
            ],
            "pos": [
              -700,
              -1490
            ],
            "properties": {
              "Node name for S&R": "WanVideoClipVisionEncode",
              "aux_id": "kijai/ComfyUI-WanVideoWrapper",
              "cnr_id": "ComfyUI-WanVideoWrapper",
              "ver": "4a3ab6958a5d9650eb4e3c2eb1753c2d7c5b77c6"
            },
            "size": [
              289.63828125,
              262
            ],
            "type": "WanVideoClipVisionEncode",
            "widgets_values": [
              1,
              1,
              "center",
              "average",
              true,
              0,
              0.5
            ]
          },
          {
            "flags": {},
            "id": 131,
            "inputs": [
              {
                "link": 716,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "mask",
                "name": "mask",
                "shape": 7,
                "type": "MASK"
              },
              {
                "link": 660,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 662,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              }
            ],
            "mode": 0,
            "order": 18,
            "outputs": [
              {
                "links": [
                  690,
                  691
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              },
              {
                "links": [],
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "links": [],
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "pos": [
              -1670,
              -2200
            ],
            "properties": {
              "Node name for S&R": "ImageResizeKJv2",
              "aux_id": "kijai/ComfyUI-KJNodes",
              "cnr_id": "comfyui-kjnodes",
              "ver": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b"
            },
            "size": [
              270,
              336
            ],
            "type": "ImageResizeKJv2",
            "widgets_values": [
              480,
              832,
              "lanczos",
              "crop",
              "0, 0, 0",
              "center",
              32,
              "cpu"
            ]
          },
          {
            "flags": {},
            "id": 364,
            "inputs": [],
            "mode": 0,
            "order": 8,
            "outputs": [
              {
                "links": [
                  627,
                  629
                ],
                "localized_name": "model",
                "name": "model",
                "type": "POSEMODEL"
              }
            ],
            "pos": [
              -1320,
              -2060
            ],
            "properties": {
              "Node name for S&R": "OnnxDetectionModelLoader",
              "aux_id": "kijai/ComfyUI-WanAnimatePreprocess",
              "cnr_id": "ComfyUI-WanAnimatePreprocess",
              "ver": "74f834b9ecec0e9f48535ab2ec95219f5288018a"
            },
            "size": [
              304.0484375,
              106
            ],
            "type": "OnnxDetectionModelLoader",
            "widgets_values": [
              "vitpose-l-wholebody.onnx",
              "yolov10m.onnx",
              "CUDAExecutionProvider"
            ]
          },
          {
            "bgcolor": "#653",
            "color": "#432",
            "flags": {},
            "id": 374,
            "inputs": [],
            "mode": 0,
            "order": 9,
            "outputs": [],
            "pos": [
              -1310,
              -1870
            ],
            "properties": {},
            "size": [
              396.3385482042172,
              242.6310390392532
            ],
            "title": "Markdown Note: Pose input info",
            "type": "MarkdownNote",
            "widgets_values": [
              "## IMPORTANT\n\nThe model uses downsampled poses, pose resolution needs to be **half** if the generation resolution. \n\nThat is automatically calculated here and the pose is rendered to the target resolution directly.\n\ndw_poses are optional and are used to draw face/hands as well as aligning the pose to the reference image.\n\nYou can disable the drawing and the alignment is still done if dw_poses are connected, to disable alignment disconnect them.\n"
            ]
          },
          {
            "flags": {},
            "id": 363,
            "inputs": [
              {
                "link": 627,
                "localized_name": "vitpose_model",
                "name": "vitpose_model",
                "type": "POSEMODEL"
              },
              {
                "link": 691,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 25,
            "outputs": [
              {
                "links": [
                  626
                ],
                "localized_name": "dw_poses",
                "name": "dw_poses",
                "type": "DWPOSES"
              }
            ],
            "pos": [
              -870,
              -2050
            ],
            "properties": {
              "Node name for S&R": "PoseDetectionVitPoseToDWPose",
              "aux_id": "kijai/ComfyUI-SCAIL-Pose",
              "cnr_id": "comfyui-scail-pose",
              "ver": "93059f0fe4ea3881c0d6ec0e327e5d920554277d"
            },
            "size": [
              271.9595703125,
              46
            ],
            "type": "PoseDetectionVitPoseToDWPose",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 362,
            "inputs": [
              {
                "link": 621,
                "localized_name": "nlf_poses",
                "name": "nlf_poses",
                "type": "NLFPRED"
              },
              {
                "link": 626,
                "localized_name": "dw_poses",
                "name": "dw_poses",
                "shape": 7,
                "type": "DWPOSES"
              },
              {
                "link": 633,
                "localized_name": "ref_dw_pose",
                "name": "ref_dw_pose",
                "shape": 7,
                "type": "DWPOSES"
              },
              {
                "link": 656,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 658,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              }
            ],
            "mode": 0,
            "order": 24,
            "outputs": [
              {
                "links": [
                  694,
                  702
                ],
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "links": [],
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "pos": [
              -550,
              -2210
            ],
            "properties": {
              "Node name for S&R": "RenderNLFPoses",
              "aux_id": "kijai/ComfyUI-SCAIL-Pose",
              "cnr_id": "comfyui-scail-pose",
              "ver": "93059f0fe4ea3881c0d6ec0e327e5d920554277d"
            },
            "size": [
              270,
              242
            ],
            "type": "RenderNLFPoses",
            "widgets_values": [
              512,
              896,
              true,
              true,
              "gpu"
            ]
          },
          {
            "flags": {},
            "id": 395,
            "inputs": [
              {
                "link": 696,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "link": 711,
                "localized_name": "audio",
                "name": "audio",
                "shape": 7,
                "type": "AUDIO"
              }
            ],
            "mode": 0,
            "order": 30,
            "outputs": [
              {
                "links": [
                  709
                ],
                "localized_name": "VIDEO",
                "name": "VIDEO",
                "type": "VIDEO"
              }
            ],
            "pos": [
              2150,
              -940
            ],
            "properties": {
              "Node name for S&R": "CreateVideo"
            },
            "size": [
              270,
              78
            ],
            "type": "CreateVideo",
            "widgets_values": [
              24
            ]
          },
          {
            "flags": {},
            "id": 107,
            "inputs": [
              {
                "link": 564,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "mask",
                "name": "mask",
                "shape": 7,
                "type": "MASK"
              },
              {
                "link": 676,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 663,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              }
            ],
            "mode": 0,
            "order": 17,
            "outputs": [
              {
                "links": [
                  630,
                  692,
                  693
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              },
              {
                "links": [
                  665
                ],
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "links": [
                  666
                ],
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "pos": [
              -2110,
              -1500
            ],
            "properties": {
              "Node name for S&R": "ImageResizeKJv2",
              "aux_id": "kijai/ComfyUI-KJNodes",
              "cnr_id": "comfyui-kjnodes",
              "ver": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b"
            },
            "size": [
              270,
              336
            ],
            "type": "ImageResizeKJv2",
            "widgets_values": [
              480,
              832,
              "lanczos",
              "crop",
              "255,255,255",
              "center",
              32,
              "cpu"
            ]
          },
          {
            "bgcolor": "#653",
            "color": "#432",
            "flags": {},
            "id": 381,
            "inputs": [],
            "mode": 0,
            "order": 10,
            "outputs": [],
            "pos": [
              -2120,
              -1650
            ],
            "properties": {},
            "size": [
              270,
              88
            ],
            "title": "Note: Supported resolutions",
            "type": "Note",
            "widgets_values": [
              "Dimensions should be divisible by 32"
            ]
          },
          {
            "bgcolor": "#653",
            "color": "#432",
            "flags": {},
            "id": 402,
            "inputs": [],
            "mode": 0,
            "order": 11,
            "outputs": [],
            "pos": [
              -1710,
              -2680
            ],
            "properties": {},
            "size": [
              536.27783203125,
              330.03546142578125
            ],
            "title": "Preprocessor links",
            "type": "MarkdownNote",
            "widgets_values": [
              "Nodes:\n\n[https://github.com/kijai/ComfyUI-WanAnimatePreprocess](https://github.com/kijai/ComfyUI-WanAnimatePreprocess)\n\n[https://github.com/kijai/ComfyUI-SCAIL-pose](https://github.com/kijai/ComfyUI-SCAIL-pose)\n\nModels: /models/detection/\n\nYOLO:\n\n[https://huggingface.co/Wan-AI/Wan2.2-Animate-14B/blob/main/process_checkpoint/det/yolov10m.onnx](https://huggingface.co/Wan-AI/Wan2.2-Animate-14B/blob/main/process_checkpoint/det/yolov10m.onnx)\n\nViTPose\n\nLarge:\n\n[https://huggingface.co/JunkyByte/easy_ViTPose/blob/main/onnx/wholebody/vitpose-l-wholebody.onnx](https://huggingface.co/JunkyByte/easy_ViTPose/blob/main/onnx/wholebody/vitpose-l-wholebody.onnx)\n\nHuge (needs both files):\n\n[https://huggingface.co/Kijai/vitpose_comfy/blob/main/onnx/vitpose_h_wholebody_model.onnx](https://huggingface.co/Kijai/vitpose_comfy/blob/main/onnx/vitpose_h_wholebody_model.onnx)\n\n[https://huggingface.co/Kijai/vitpose_comfy/blob/main/onnx/vitpose_h_wholebody_data.bin](https://huggingface.co/Kijai/vitpose_comfy/blob/main/onnx/vitpose_h_wholebody_data.bin)"
            ]
          },
          {
            "bgcolor": "#653",
            "color": "#432",
            "flags": {},
            "id": 403,
            "inputs": [],
            "mode": 0,
            "order": 12,
            "outputs": [],
            "pos": [
              -1700,
              -430
            ],
            "properties": {},
            "size": [
              739.7913211214582,
              247.47939037125025
            ],
            "title": "Model links",
            "type": "MarkdownNote",
            "widgets_values": [
              "bf16: /models/diffusion_models/\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/SCAIL/Wan21-14B-SCAIL-preview_comfy_bf16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/SCAIL/Wan21-14B-SCAIL-preview_comfy_bf16.safetensors)\n\nfp8_scaled: /models/diffusion_models/\n\n[https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/blob/main/SCAIL/Wan21-14B-SCAIL-preview_fp8_e4m3fn_scaled_KJ.safetensors](https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/blob/main/SCAIL/Wan21-14B-SCAIL-preview_fp8_e4m3fn_scaled_KJ.safetensors)\n\ndistill lora (should use I2V one): /models/loras/\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Lightx2v/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Lightx2v/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors)\n\n\nText encoder: /models/text_encoders/\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/umt5-xxl-enc-bf16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/umt5-xxl-enc-bf16.safetensors)\n\nVAE: /models/vae/\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Wan2_1_VAE_bf16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Wan2_1_VAE_bf16.safetensors)"
            ]
          },
          {
            "flags": {},
            "id": 405,
            "inputs": [
              {
                "link": 713,
                "localized_name": "video",
                "name": "video",
                "type": "VIDEO"
              }
            ],
            "mode": 0,
            "order": 33,
            "outputs": [
              {
                "links": [
                  715
                ],
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "links": [
                  711
                ],
                "localized_name": "audio",
                "name": "audio",
                "type": "AUDIO"
              },
              {
                "links": null,
                "localized_name": "fps",
                "name": "fps",
                "type": "FLOAT"
              }
            ],
            "pos": [
              -2310,
              -1820
            ],
            "properties": {
              "Node name for S&R": "GetVideoComponents"
            },
            "size": [
              193.530859375,
              66
            ],
            "type": "GetVideoComponents",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 406,
            "inputs": [
              {
                "link": 715,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 717,
                "localized_name": "length",
                "name": "length",
                "type": "INT",
                "widget": {
                  "name": "length"
                }
              }
            ],
            "mode": 0,
            "order": 34,
            "outputs": [
              {
                "links": [
                  716
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              -2080,
              -1820
            ],
            "properties": {
              "Node name for S&R": "ImageFromBatch"
            },
            "size": [
              270,
              82
            ],
            "type": "ImageFromBatch",
            "widgets_values": [
              0,
              77
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            2630,
            -970,
            120,
            60
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "fdd1c9ba-0a2e-472b-af9c-5e9733f9d1e7",
            "linkIds": [
              709
            ],
            "name": "VIDEO",
            "pos": [
              2650,
              -950
            ],
            "type": "VIDEO"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 8,
          "lastLinkId": 719,
          "lastNodeId": 408,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      }
    ]
  },
  "extra": {
    "VHS_KeepIntermediate": true,
    "VHS_MetadataImage": true,
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "ds": {
      "offset": [
        3372.2534630271393,
        2930.2468593376834
      ],
      "scale": 0.4289997138357794
    },
    "frontendVersion": "1.40.10",
    "node_versions": {
      "ComfyUI-VideoHelperSuite": "0a75c7958fe320efcb052f1d9f8451fd20c730a8",
      "ComfyUI-WanVideoWrapper": "5a2383621a05825d0d0437781afcb8552d9590fd",
      "comfy-core": "0.3.26"
    },
    "workflowRendererVersion": "LG"
  },
  "groups": [],
  "id": "c6e410bc-5e2c-460b-ae81-c91b6094fbb1",
  "last_link_id": 719,
  "last_node_id": 408,
  "links": [
    [
      687,
      390,
      0,
      385,
      2,
      "IMAGE"
    ],
    [
      710,
      385,
      0,
      399,
      0,
      "VIDEO"
    ],
    [
      719,
      408,
      0,
      385,
      3,
      "VIDEO"
    ]
  ],
  "nodes": [
    {
      "bgcolor": "#000",
      "color": "#222",
      "flags": {},
      "id": 388,
      "inputs": [],
      "mode": 0,
      "order": 0,
      "outputs": [],
      "pos": [
        -2910,
        -2310
      ],
      "properties": {},
      "size": [
        502.48083341275515,
        729.5610278024653
      ],
      "title": "Wan 2.1 SCAIL",
      "type": "MarkdownNote",
      "widgets_values": [
        "WAN 2.1 SCAIL transfers motion and pose information from an input video onto a reference image while preserving the reference image’s original composition. It works by rescaling pose data from the source footage to match the proportions and framing of the reference image.\n\nThis makes it ideal for animating still images using real motion, without distorting the original layout.\n\n## Inputs\n\n| Input | Type | Description |\n|------|------|-------------|\n| reference_image | Image | The still image whose composition, framing, and visual identity you want to preserve |\n| input_video | Image / Video | Source footage used to extract pose and motion data |\n| num_frames | Integer | Number of frames to generate; typically matched to or derived from the input video length |\n\n## Parameters\n\n| Parameter | Description |\n|---------|-------------|\n| cfg | Controls how strongly the model follows the prompt versus the motion data. Lower values prioritize motion accuracy; higher values emphasize prompt adherence, leave it at 1.0 to begin |\n| width | Output width in pixels. Must be divisible by 16 |\n| height | Output height in pixels. Must be divisible by 16 |\n| prompt | Text description guiding appearance, style, or action refinement |\n| seed | Random seed for generation consistency. Keeping this fixed helps with repeatable results |\n\n## Resolution Recommendations\n\n| Use Case | Resolution | Notes |\n|--------|------------|-------|\n| Initial testing (landscape) | 832 × 480 | Fast iteration, easier to debug motion |\n| Initial testing (portrait) | 480 × 832 | Fast iteration for vertical content |\n| Final renders | Increase gradually | Scale up only after motion and framing look correct |\n\n**Important:**  \n- Both width and height must be divisible by **16**  \n- Start at lower resolutions to validate motion transfer before increasing quality\n"
      ]
    },
    {
      "flags": {},
      "id": 385,
      "inputs": [
        {
          "label": "height",
          "link": null,
          "name": "a",
          "type": "INT,FLOAT",
          "widget": {
            "name": "a"
          }
        },
        {
          "label": "width",
          "link": null,
          "name": "a_1",
          "type": "INT,FLOAT",
          "widget": {
            "name": "a_1"
          }
        },
        {
          "label": "reference_image",
          "link": 687,
          "name": "image",
          "type": "IMAGE"
        },
        {
          "label": "control_video",
          "link": 719,
          "name": "video",
          "type": "VIDEO"
        }
      ],
      "mode": 0,
      "order": 3,
      "outputs": [
        {
          "links": [
            710
          ],
          "name": "VIDEO",
          "type": "VIDEO"
        }
      ],
      "pos": [
        -1440,
        -2310
      ],
      "properties": {
        "proxyWidgets": [
          [
            "-1",
            "positive_prompt"
          ],
          [
            "-1",
            "num_frames"
          ],
          [
            "-1",
            "a_1"
          ],
          [
            "-1",
            "a"
          ],
          [
            "348",
            "seed"
          ],
          [
            "348",
            "control_after_generate"
          ],
          [
            "-1",
            "$$canvas-image-preview"
          ]
        ]
      },
      "size": [
        390,
        560
      ],
      "type": "2d4f2d38-ff62-4ae8-853d-2a359520164b",
      "widgets_values": [
        "a pirate is dancing in the alley",
        77,
        480,
        832
      ]
    },
    {
      "flags": {},
      "id": 408,
      "inputs": [],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            719
          ],
          "name": "VIDEO",
          "type": "VIDEO"
        }
      ],
      "pos": [
        -2290,
        -2310
      ],
      "properties": {
        "Node name for S&R": "LoadVideo"
      },
      "size": [
        282.798828125,
        576.7534722222222
      ],
      "type": "LoadVideo",
      "widgets_values": [
        "wan21_scail-input.mp4",
        "image"
      ]
    },
    {
      "flags": {},
      "id": 390,
      "inputs": [],
      "mode": 0,
      "order": 2,
      "outputs": [
        {
          "links": [
            687
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        -1840,
        -2310
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.76"
      },
      "size": [
        350,
        570
      ],
      "title": "Load Image: Reference",
      "type": "LoadImage",
      "widgets_values": [
        "pirates_dancing.png",
        "image"
      ]
    },
    {
      "flags": {},
      "id": 399,
      "inputs": [
        {
          "link": 710,
          "name": "video",
          "type": "VIDEO"
        }
      ],
      "mode": 0,
      "order": 4,
      "outputs": [],
      "pos": [
        -930,
        -2310
      ],
      "properties": {},
      "size": [
        270,
        566
      ],
      "type": "SaveVideo",
      "widgets_values": [
        "video/ComfyUI",
        "auto",
        "auto"
      ]
    }
  ],
  "revision": 0,
  "version": 0.4
}