{
 "547": {
  "inputs": {
   "image": "blue_dancer.png"
  },
  "class_type": "LoadImage",
  "_meta": {
   "title": "Load Image: Start image"
  }
 },
 "548": {
  "inputs": {
   "audio": "wan_dancer_reference_audio.mp3"
  },
  "class_type": "LoadAudio",
  "_meta": {
   "title": "Load Audio"
  }
 },
 "696:484": {
  "inputs": {
   "unet_name": "wan2.2_dancer_14b_global_fp8_scaled.safetensors",
   "weight_dtype": "default"
  },
  "class_type": "UNETLoader",
  "_meta": {
   "title": "Load Diffusion Model"
  }
 },
 "696:488": {
  "inputs": {
   "lora_name": "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
   "strength_model": 3,
   "model": [
    "696:484",
    0
   ]
  },
  "class_type": "LoraLoaderModelOnly",
  "_meta": {
   "title": "Load LoRA"
  }
 },
 "696:476": {
  "inputs": {
   "lora_name": "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
   "strength_model": 1.03,
   "model": [
    "696:475",
    0
   ]
  },
  "class_type": "LoraLoaderModelOnly",
  "_meta": {
   "title": "Load LoRA"
  }
 },
 "696:475": {
  "inputs": {
   "unet_name": "wan2.2_dancer_14b_local_fp8_scaled.safetensors",
   "weight_dtype": "default"
  },
  "class_type": "UNETLoader",
  "_meta": {
   "title": "Load Diffusion Model"
  }
 },
 "696:477": {
  "inputs": {
   "clip_name": "umt5_xxl_fp16.safetensors",
   "type": "wan",
   "device": "default"
  },
  "class_type": "CLIPLoader",
  "_meta": {
   "title": "Load CLIP"
  }
 },
 "696:479": {
  "inputs": {
   "clip_name": "clip_vision_h.safetensors"
  },
  "class_type": "CLIPVisionLoader",
  "_meta": {
   "title": "Load CLIP Vision"
  }
 },
 "696:491": {
  "inputs": {
   "value": 149
  },
  "class_type": "PrimitiveInt",
  "_meta": {
   "title": "Length"
  }
 },
 "696:478": {
  "inputs": {
   "vae_name": "Wan2_1_VAE_bf16.safetensors"
  },
  "class_type": "VAELoader",
  "_meta": {
   "title": "Load VAE"
  }
 },
 "696:158": {
  "inputs": {
   "fps": 30,
   "bit_depth": 8,
   "color_space": "sRGB",
   "chroma_subsampling": "auto",
   "codec": "none",
   "images": [
    "696:671",
    0
   ],
   "audio": [
    "696:494",
    0
   ]
  },
  "class_type": "CreateVideo",
  "_meta": {
   "title": "Create Video"
  }
 },
 "696:398": {
  "inputs": {
   "value": 720
  },
  "class_type": "PrimitiveInt",
  "_meta": {
   "title": "Width"
  }
 },
 "696:400": {
  "inputs": {
   "value": 1280
  },
  "class_type": "PrimitiveInt",
  "_meta": {
   "title": "Height"
  }
 },
 "696:494": {
  "inputs": {
   "start_index": 0,
   "duration": 25,
   "audio": [
    "548",
    0
   ]
  },
  "class_type": "TrimAudioDuration",
  "_meta": {
   "title": "Trim Audio Duration"
  }
 },
 "696:561": {
  "inputs": {
   "expression": "max(16, floor(a / 16) * 16)",
   "values.a": [
    "696:398",
    0
   ]
  },
  "class_type": "ComfyMathExpression",
  "_meta": {
   "title": "Math Expression"
  }
 },
 "696:562": {
  "inputs": {
   "expression": "max(16, floor(a / 16) * 16)",
   "values.a": [
    "696:400",
    0
   ]
  },
  "class_type": "ComfyMathExpression",
  "_meta": {
   "title": "Math Expression"
  }
 },
 "696:629": {
  "inputs": {
   "text": "\u8272\u8c03\u8273\u4e3d\uff0c\u8fc7\u66dd\uff0c\u9759\u6001\uff0c\u7ec6\u8282\u6a21\u7cca\u4e0d\u6e05\uff0c\u5b57\u5e55\uff0c\u98ce\u683c\uff0c\u4f5c\u54c1\uff0c\u753b\u4f5c\uff0c\u753b\u9762\uff0c\u9759\u6b62\uff0c\u6574\u4f53\u53d1\u7070\uff0c\u6700\u5dee\u8d28\u91cf\uff0c\u4f4e\u8d28\u91cf\uff0cJPEG\u538b\u7f29\u6b8b\u7559\uff0c\u4e11\u964b\u7684\uff0c\u6b8b\u7f3a\u7684\uff0c\u591a\u4f59\u7684\u624b\u6307\uff0c\u753b\u5f97\u4e0d\u597d\u7684\u624b\u90e8\uff0c\u753b\u5f97\u4e0d\u597d\u7684\u8138\u90e8\uff0c\u7578\u5f62\u7684\uff0c\u6bc1\u5bb9\u7684\uff0c\u5f62\u6001\u7578\u5f62\u7684\u80a2\u4f53\uff0c\u624b\u6307\u878d\u5408\uff0c\u9759\u6b62\u4e0d\u52a8\u7684\u753b\u9762\uff0c\u6742\u4e71\u7684\u80cc\u666f\uff0c\u4e09\u6761\u817f\uff0c\u80cc\u666f\u4eba\u5f88\u591a\uff0c\u5012\u7740\u8d70\n",
   "clip": [
    "696:477",
    0
   ]
  },
  "class_type": "CLIPTextEncode",
  "_meta": {
   "title": "CLIP Text Encode (Negative Prompt)"
  }
 },
 "696:630": {
  "inputs": {
   "text": [
    "696:632",
    0
   ],
   "clip": [
    "696:477",
    0
   ]
  },
  "class_type": "CLIPTextEncode",
  "_meta": {
   "title": "CLIP Text Encode (Prompt)"
  }
 },
 "696:631": {
  "inputs": {
   "value": [
    "696:685",
    0
   ]
  },
  "class_type": "PrimitiveStringMultiline",
  "_meta": {
   "title": "Gobal Gen Prompt"
  }
 },
 "696:632": {
  "inputs": {
   "delimiter": " ",
   "string_a": [
    "696:631",
    0
   ],
   "string_b": [
    "696:651",
    1
   ]
  },
  "class_type": "StringConcatenate",
  "_meta": {
   "title": "Concatenate Text"
  }
 },
 "696:633": {
  "inputs": {
   "switch": [
    "696:639",
    0
   ],
   "on_false": [
    "696:636",
    0
   ],
   "on_true": [
    "696:635",
    0
   ]
  },
  "class_type": "ComfySwitchNode",
  "_meta": {
   "title": "Switch(CFG)"
  }
 },
 "696:634": {
  "inputs": {
   "switch": [
    "696:639",
    0
   ],
   "on_false": [
    "696:641",
    0
   ],
   "on_true": [
    "696:637",
    0
   ]
  },
  "class_type": "ComfySwitchNode",
  "_meta": {
   "title": "Switch(Steps)"
  }
 },
 "696:635": {
  "inputs": {
   "value": 1
  },
  "class_type": "PrimitiveFloat",
  "_meta": {
   "title": "CFG"
  }
 },
 "696:636": {
  "inputs": {
   "value": 5
  },
  "class_type": "PrimitiveFloat",
  "_meta": {
   "title": "CFG"
  }
 },
 "696:637": {
  "inputs": {
   "value": 6
  },
  "class_type": "PrimitiveInt",
  "_meta": {
   "title": "Steps"
  }
 },
 "696:638": {
  "inputs": {
   "crop": "none",
   "clip_vision": [
    "696:479",
    0
   ],
   "image": [
    "696:640",
    0
   ]
  },
  "class_type": "CLIPVisionEncode",
  "_meta": {
   "title": "CLIP Vision Encode"
  }
 },
 "696:639": {
  "inputs": {
   "value": true
  },
  "class_type": "PrimitiveBoolean",
  "_meta": {
   "title": "Enable lightx2v lora"
  }
 },
 "696:640": {
  "inputs": {
   "resize_type": "scale dimensions",
   "scale_method": "lanczos",
   "input": [
    "547",
    0
   ],
   "resize_type.crop": "center",
   "resize_type.width": [
    "696:561",
    1
   ],
   "resize_type.height": [
    "696:562",
    1
   ]
  },
  "class_type": "ResizeImageMaskNode",
  "_meta": {
   "title": "Resize Image/Mask"
  }
 },
 "696:641": {
  "inputs": {
   "value": 25
  },
  "class_type": "PrimitiveInt",
  "_meta": {
   "title": "Steps"
  }
 },
 "696:642": {
  "inputs": {
   "fps": 8,
   "bit_depth": 8,
   "color_space": "sRGB",
   "chroma_subsampling": "auto",
   "codec": "none",
   "images": [
    "696:646",
    0
   ]
  },
  "class_type": "CreateVideo",
  "_meta": {
   "title": "Create Video"
  }
 },
 "696:643": {
  "inputs": {
   "shift": 5,
   "model": [
    "696:644",
    0
   ]
  },
  "class_type": "ModelSamplingSD3",
  "_meta": {
   "title": "ModelSamplingSD3"
  }
 },
 "696:644": {
  "inputs": {
   "switch": [
    "696:639",
    0
   ],
   "on_false": [
    "696:484",
    0
   ],
   "on_true": [
    "696:488",
    0
   ]
  },
  "class_type": "ComfySwitchNode",
  "_meta": {
   "title": "Switch(Model)"
  }
 },
 "696:645": {
  "inputs": {
   "double_layers": "9",
   "single_layers": "",
   "start_percent": 0,
   "end_percent": 1,
   "model": [
    "696:643",
    0
   ]
  },
  "class_type": "SkipLayerGuidanceDiTSimple",
  "_meta": {
   "title": "SkipLayerGuidanceDiTSimple"
  }
 },
 "696:646": {
  "inputs": {
   "samples": [
    "696:652",
    0
   ],
   "vae": [
    "696:478",
    0
   ]
  },
  "class_type": "VAEDecode",
  "_meta": {
   "title": "VAE Decode"
  }
 },
 "696:647": {
  "inputs": {
   "positive": [
    "696:630",
    0
   ],
   "negative": [
    "696:629",
    0
   ],
   "vae": [
    "696:478",
    0
   ],
   "width": [
    "696:561",
    1
   ],
   "height": [
    "696:562",
    1
   ],
   "length": [
    "696:491",
    0
   ],
   "clip_vision_output": [
    "696:638",
    0
   ],
   "clip_vision_output_ref": [
    "696:638",
    0
   ],
   "start_image": [
    "696:640",
    0
   ],
   "audio_encoder_output": [
    "696:651",
    0
   ]
  },
  "class_type": "WanDancerVideo",
  "_meta": {
   "title": "WanDancerVideo"
  }
 },
 "696:651": {
  "inputs": {
   "video_frames": 149,
   "audio_inject_scale": 1,
   "audio": [
    "696:494",
    0
   ]
  },
  "class_type": "WanDancerEncodeAudio",
  "_meta": {
   "title": "WanDancerEncodeAudio"
  }
 },
 "696:652": {
  "inputs": {
   "dim": "t",
   "slice_size": 1,
   "samples": [
    "696:655",
    0
   ]
  },
  "class_type": "LatentCutToBatch",
  "_meta": {
   "title": "LatentCutToBatch"
  }
 },
 "696:653": {
  "inputs": {
   "scheduler": "simple",
   "denoise": 1,
   "model": [
    "696:645",
    0
   ],
   "steps": [
    "696:634",
    0
   ]
  },
  "class_type": "BasicScheduler",
  "_meta": {
   "title": "BasicScheduler"
  }
 },
 "696:654": {
  "inputs": {
   "noise_seed": 0
  },
  "class_type": "RandomNoise",
  "_meta": {
   "title": "RandomNoise"
  }
 },
 "696:655": {
  "inputs": {
   "noise": [
    "696:654",
    0
   ],
   "guider": [
    "696:657",
    0
   ],
   "sampler": [
    "696:656",
    0
   ],
   "sigmas": [
    "696:653",
    0
   ],
   "latent_image": [
    "696:647",
    2
   ]
  },
  "class_type": "SamplerCustomAdvanced",
  "_meta": {
   "title": "SamplerCustomAdvanced"
  }
 },
 "696:656": {
  "inputs": {
   "sampler_name": "euler"
  },
  "class_type": "KSamplerSelect",
  "_meta": {
   "title": "KSamplerSelect"
  }
 },
 "696:657": {
  "inputs": {
   "model": [
    "696:645",
    0
   ],
   "positive": [
    "696:647",
    0
   ],
   "negative": [
    "696:647",
    1
   ],
   "cfg": [
    "696:633",
    0
   ]
  },
  "class_type": "CFGGuider",
  "_meta": {
   "title": "CFG Guider"
  }
 },
 "696:658": {
  "inputs": {
   "samples": [
    "696:667",
    0
   ],
   "vae": [
    "696:478",
    0
   ]
  },
  "class_type": "VAEDecode",
  "_meta": {
   "title": "VAE Decode"
  }
 },
 "696:659": {
  "inputs": {
   "sampler_name": "euler"
  },
  "class_type": "KSamplerSelect",
  "_meta": {
   "title": "KSamplerSelect"
  }
 },
 "696:661": {
  "inputs": {
   "conditioning": [
    "696:663",
    0
   ]
  },
  "class_type": "ConditioningZeroOut",
  "_meta": {
   "title": "Conditioning Zero Out"
  }
 },
 "696:662": {
  "inputs": {
   "scheduler": "simple",
   "steps": 6,
   "denoise": 1,
   "model": [
    "696:476",
    0
   ]
  },
  "class_type": "BasicScheduler",
  "_meta": {
   "title": "BasicScheduler"
  }
 },
 "696:663": {
  "inputs": {
   "text": [
    "696:691",
    0
   ],
   "clip": [
    "696:477",
    0
   ]
  },
  "class_type": "CLIPTextEncode",
  "_meta": {
   "title": "CLIP Text Encode (Prompt)"
  }
 },
 "696:664": {
  "inputs": {
   "crop": "none",
   "clip_vision": [
    "696:479",
    0
   ],
   "image": [
    "696:665",
    0
   ]
  },
  "class_type": "CLIPVisionEncode",
  "_meta": {
   "title": "CLIP Vision Encode"
  }
 },
 "696:665": {
  "inputs": {
   "batch_index": 0,
   "length": 1,
   "image": [
    "696:670",
    0
   ]
  },
  "class_type": "ImageFromBatch",
  "_meta": {
   "title": "Get Image from Batch"
  }
 },
 "696:666": {
  "inputs": {
   "value": [
    "696:491",
    0
   ]
  },
  "class_type": "PrimitiveInt",
  "_meta": {
   "title": "Length"
  }
 },
 "696:667": {
  "inputs": {
   "add_noise": true,
   "noise_seed": 1,
   "cfg": 1,
   "model": [
    "696:476",
    0
   ],
   "positive": [
    "696:668",
    0
   ],
   "negative": [
    "696:668",
    1
   ],
   "sampler": [
    "696:659",
    0
   ],
   "sigmas": [
    "696:662",
    0
   ],
   "latent_image": [
    "696:668",
    2
   ]
  },
  "class_type": "SamplerCustom",
  "_meta": {
   "title": "SamplerCustom"
  }
 },
 "696:668": {
  "inputs": {
   "positive": [
    "696:663",
    0
   ],
   "negative": [
    "696:661",
    0
   ],
   "vae": [
    "696:478",
    0
   ],
   "width": [
    "696:561",
    1
   ],
   "height": [
    "696:562",
    1
   ],
   "length": [
    "696:666",
    0
   ],
   "clip_vision_output": [
    "696:664",
    0
   ],
   "clip_vision_output_ref": [
    "696:638",
    0
   ],
   "start_image": [
    "696:670",
    0
   ],
   "mask": [
    "696:670",
    1
   ],
   "audio_encoder_output": [
    "696:669",
    0
   ]
  },
  "class_type": "WanDancerVideo",
  "_meta": {
   "title": "WanDancerVideo"
  }
 },
 "696:669": {
  "inputs": {
   "audio_inject_scale": 1,
   "audio": [
    "696:670",
    2
   ],
   "video_frames": [
    "696:491",
    0
   ]
  },
  "class_type": "WanDancerEncodeAudio",
  "_meta": {
   "title": "WanDancerEncodeAudio"
  }
 },
 "696:670": {
  "inputs": {
   "images": [
    "696:646",
    0
   ],
   "segment_length": [
    "696:491",
    0
   ],
   "num_segments": [
    "696:701",
    1
   ],
   "audio": [
    "696:494",
    0
   ]
  },
  "class_type": "WanDancerPadKeyframesList",
  "_meta": {
   "title": "WanDancerPadKeyframesList"
  }
 },
 "696:671": {
  "inputs": {
   "batch_size": 4096,
   "images": [
    "696:658",
    0
   ]
  },
  "class_type": "RebatchImages",
  "_meta": {
   "title": "Rebatch Images"
  }
 },
 "696:685": {
  "inputs": {
   "string": "\u4e00\u4e2a\u4eba\u6b63\u5728\u8df3\u821e\uff0c\u821e\u8e48\u79cd\u7c7b\u662f<dance style>",
   "find": "<dance style>",
   "replace": [
    "696:688:8",
    0
   ]
  },
  "class_type": "StringReplace",
  "_meta": {
   "title": "Text Replace (Global prompt)"
  }
 },
 "696:686": {
  "inputs": {
   "string": ",\u56fe\u50cf\u6e05\u6670\u7a0b\u5ea6\u9ad8,\u4eba\u7269\u52a8\u4f5c\u5e45\u5ea6<amplitude>",
   "find": "<amplitude>",
   "replace": [
    "696:690:14",
    0
   ]
  },
  "class_type": "StringReplace",
  "_meta": {
   "title": "Text Replace (Local prompt)"
  }
 },
 "696:688:7": {
  "inputs": {
   "source": [
    "696:688:9",
    0
   ]
  },
  "class_type": "PreviewAny",
  "_meta": {
   "title": "Preview as Text"
  }
 },
 "696:688:8": {
  "inputs": {
   "string": "\u53e4\u5178\u821e\n\u97e9\u821e\n\u8857\u821e\n\u62c9\u4e01\u821e\n\u8e22\u8e0f\u821e",
   "mode": "First Group",
   "case_insensitive": false,
   "multiline": false,
   "dotall": false,
   "group_index": 1,
   "regex_pattern": [
    "696:688:10",
    0
   ]
  },
  "class_type": "RegexExtract",
  "_meta": {
   "title": "Extract Text"
  }
 },
 "696:688:9": {
  "inputs": {
   "value": [
    "696:695",
    1
   ]
  },
  "class_type": "PrimitiveInt",
  "_meta": {
   "title": "Int"
  }
 },
 "696:688:10": {
  "inputs": {
   "string": "(?:[^\\n]*\\n){index}([^\\n]+)",
   "find": "index",
   "replace": [
    "696:688:7",
    0
   ]
  },
  "class_type": "StringReplace",
  "_meta": {
   "title": "Replace Text"
  }
 },
 "696:690:13": {
  "inputs": {
   "source": [
    "696:690:15",
    0
   ]
  },
  "class_type": "PreviewAny",
  "_meta": {
   "title": "Preview as Text"
  }
 },
 "696:690:14": {
  "inputs": {
   "string": "\u4f4e\n\u4e2d\u7b49\n\u9ad8\n\u6700\u5927",
   "mode": "First Group",
   "case_insensitive": false,
   "multiline": false,
   "dotall": false,
   "group_index": 1,
   "regex_pattern": [
    "696:690:16",
    0
   ]
  },
  "class_type": "RegexExtract",
  "_meta": {
   "title": "Extract Text"
  }
 },
 "696:690:15": {
  "inputs": {
   "value": [
    "696:694",
    1
   ]
  },
  "class_type": "PrimitiveInt",
  "_meta": {
   "title": "Int"
  }
 },
 "696:690:16": {
  "inputs": {
   "string": "(?:[^\\n]*\\n){index}([^\\n]+)",
   "find": "index",
   "replace": [
    "696:690:13",
    0
   ]
  },
  "class_type": "StringReplace",
  "_meta": {
   "title": "Replace Text"
  }
 },
 "696:691": {
  "inputs": {
   "delimiter": "",
   "string_a": [
    "696:685",
    0
   ],
   "string_b": [
    "696:686",
    0
   ]
  },
  "class_type": "StringConcatenate",
  "_meta": {
   "title": "Concatenate Text"
  }
 },
 "696:694": {
  "inputs": {
   "choice": "low \u4f4e"
  },
  "class_type": "CustomCombo",
  "_meta": {
   "title": "Custom Combo (Motion Amplitude)"
  }
 },
 "696:695": {
  "inputs": {
   "choice": "Latin Dance \u62c9\u4e01\u821e"
  },
  "class_type": "CustomCombo",
  "_meta": {
   "title": "Custom Combo (Dance Style)"
  }
 },
 "696:700": {
  "inputs": {
   "choice": "5"
  },
  "class_type": "CustomCombo",
  "_meta": {
   "title": "Custom Combo (Duration)"
  }
 },
 "696:701": {
  "inputs": {
   "expression": "a + 1",
   "values.a": [
    "696:700",
    1
   ]
  },
  "class_type": "ComfyMathExpression",
  "_meta": {
   "title": "Math Expression"
  }
 },
 "698": {
  "inputs": {
   "filename_prefix": "video/WanDancer_preview",
   "format": "auto",
   "video": [
    "696:642",
    0
   ],
   "format.codec": "auto"
  },
  "class_type": "SaveVideo",
  "_meta": {
   "title": "Save Video"
  }
 },
 "699": {
  "inputs": {
   "filename_prefix": "video/WanDancer",
   "format": "auto",
   "video": [
    "696:158",
    0
   ],
   "format.codec": "auto"
  },
  "class_type": "SaveVideo",
  "_meta": {
   "title": "Save Video"
  }
 }
}