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