{
 "158": {
  "inputs": {
   "resize_mode": "Just Resize",
   "original_image": [
    "23",
    0
   ],
   "image_gen_width": [
    "159",
    0
   ],
   "image_gen_height": [
    "160",
    0
   ]
  },
  "class_type": "PixelPerfectResolution",
  "_meta": {
   "title": "Pixel Perfect Resolution"
  }
 },
 "145": {
  "inputs": {
   "file": "video_wan2_2_14B_animate_original_video.mp4"
  },
  "class_type": "LoadVideo",
  "_meta": {
   "title": "Load Video"
  }
 },
 "108": {
  "inputs": {
   "model": "sam2_hiera_base_plus.safetensors",
   "segmentor": "video",
   "device": "cuda",
   "precision": "fp16"
  },
  "class_type": "DownloadAndLoadSAM2Model",
  "_meta": {
   "title": "(Down)Load SAM2Model"
  }
 },
 "229": {
  "inputs": {
   "points_store": "{\"positive\":[{\"x\":256,\"y\":256}],\"negative\":[{\"x\":0,\"y\":0}]}",
   "coordinates": "[{\"x\":256,\"y\":256}]",
   "neg_coordinates": "[{\"x\":0,\"y\":0}]",
   "bbox_store": "[{}]",
   "bboxes": "[{}]",
   "bbox_format": "xyxy",
   "width": 640,
   "height": 640,
   "normalize": false,
   "bg_image": [
    "212",
    0
   ]
  },
  "class_type": "PointsEditor",
  "_meta": {
   "title": "Points Editor"
  }
 },
 "212": {
  "inputs": {
   "upscale_method": "lanczos",
   "crop": "center",
   "image": [
    "23",
    0
   ],
   "width": [
    "159",
    0
   ],
   "height": [
    "160",
    0
   ]
  },
  "class_type": "ImageScale",
  "_meta": {
   "title": "Upscale Image"
  }
 },
 "100": {
  "inputs": {
   "detect_hand": "disable",
   "detect_body": "disable",
   "detect_face": "enable",
   "bbox_detector": "yolox_l.onnx",
   "pose_estimator": "dw-ll_ucoco_384_bs5.torchscript.pt",
   "scale_stick_for_xinsr_cn": "disable",
   "image": [
    "212",
    0
   ],
   "resolution": [
    "158",
    0
   ]
  },
  "class_type": "DWPreprocessor",
  "_meta": {
   "title": "DWPose Estimator"
  }
 },
 "101": {
  "inputs": {
   "detect_hand": "enable",
   "detect_body": "enable",
   "detect_face": "disable",
   "bbox_detector": "yolox_l.onnx",
   "pose_estimator": "dw-ll_ucoco_384_bs5.torchscript.pt",
   "scale_stick_for_xinsr_cn": "disable",
   "image": [
    "212",
    0
   ],
   "resolution": [
    "158",
    0
   ]
  },
  "class_type": "DWPreprocessor",
  "_meta": {
   "title": "DWPose Estimator"
  }
 },
 "23": {
  "inputs": {
   "video": [
    "145",
    0
   ]
  },
  "class_type": "GetVideoComponents",
  "_meta": {
   "title": "Get Video Components"
  }
 },
 "21": {
  "inputs": {
   "text": "The character is dancing in the room",
   "clip": [
    "2",
    0
   ]
  },
  "class_type": "CLIPTextEncode",
  "_meta": {
   "title": "CLIP Text Encode (Positive Prompt)"
  }
 },
 "1": {
  "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",
   "clip": [
    "2",
    0
   ]
  },
  "class_type": "CLIPTextEncode",
  "_meta": {
   "title": "CLIP Text Encode (Negative Prompt)"
  }
 },
 "9": {
  "inputs": {
   "crop": "none",
   "clip_vision": [
    "4",
    0
   ],
   "image": [
    "10",
    0
   ]
  },
  "class_type": "CLIPVisionEncode",
  "_meta": {
   "title": "CLIP Vision Encode"
  }
 },
 "10": {
  "inputs": {
   "image": "video_wan2_2_14B_animate_reference_image.png"
  },
  "class_type": "LoadImage",
  "_meta": {
   "title": "Load Image"
  }
 },
 "107": {
  "inputs": {
   "keep_model_loaded": true,
   "individual_objects": false,
   "sam2_model": [
    "108",
    0
   ],
   "image": [
    "212",
    0
   ],
   "coordinates_positive": [
    "229",
    0
   ]
  },
  "class_type": "Sam2Segmentation",
  "_meta": {
   "title": "Sam2Segmentation"
  }
 },
 "274": {
  "inputs": {
   "expand": 10,
   "tapered_corners": true,
   "mask": [
    "107",
    0
   ]
  },
  "class_type": "GrowMask",
  "_meta": {
   "title": "Grow Mask"
  }
 },
 "275": {
  "inputs": {
   "color": "0, 0, 0",
   "device": "cpu",
   "image": [
    "212",
    0
   ],
   "mask": [
    "276",
    0
   ]
  },
  "class_type": "DrawMaskOnImage",
  "_meta": {
   "title": "Draw Mask On Image"
  }
 },
 "276": {
  "inputs": {
   "block_size": 32,
   "device": "cpu",
   "masks": [
    "274",
    0
   ]
  },
  "class_type": "BlockifyMask",
  "_meta": {
   "title": "Blockify Mask"
  }
 },
 "242:87": {
  "inputs": {
   "samples": [
    "242:92",
    0
   ],
   "vae": [
    "3",
    0
   ]
  },
  "class_type": "VAEDecode",
  "_meta": {
   "title": "VAE Decode"
  }
 },
 "242:92": {
  "inputs": {
   "samples": [
    "242:91",
    0
   ],
   "trim_amount": [
    "242:90",
    3
   ]
  },
  "class_type": "TrimVideoLatent",
  "_meta": {
   "title": "Trim Video Latent"
  }
 },
 "242:85": {
  "inputs": {
   "length": 4096,
   "image": [
    "242:87",
    0
   ],
   "batch_index": [
    "242:90",
    4
   ]
  },
  "class_type": "ImageFromBatch",
  "_meta": {
   "title": "Get Image from Batch"
  }
 },
 "242:90": {
  "inputs": {
   "length": 77,
   "batch_size": 1,
   "continue_motion_max_frames": 5,
   "positive": [
    "21",
    0
   ],
   "negative": [
    "1",
    0
   ],
   "vae": [
    "3",
    0
   ],
   "width": [
    "159",
    0
   ],
   "height": [
    "159",
    0
   ],
   "video_frame_offset": [
    "232:62",
    5
   ],
   "clip_vision_output": [
    "9",
    0
   ],
   "reference_image": [
    "10",
    0
   ],
   "face_video": [
    "100",
    0
   ],
   "pose_video": [
    "101",
    0
   ],
   "background_video": [
    "275",
    0
   ],
   "character_mask": [
    "276",
    0
   ],
   "continue_motion": [
    "232:58",
    0
   ]
  },
  "class_type": "WanAnimateToVideo",
  "_meta": {
   "title": "WanAnimateToVideo"
  }
 },
 "242:88": {
  "inputs": {
   "fps": 16,
   "bit_depth": "auto",
   "color_space": "sRGB",
   "codec": "none",
   "images": [
    "242:86",
    0
   ],
   "audio": [
    "23",
    1
   ]
  },
  "class_type": "CreateVideo",
  "_meta": {
   "title": "Create Video"
  }
 },
 "242:91": {
  "inputs": {
   "seed": 387378783691198,
   "steps": 6,
   "cfg": 1,
   "sampler_name": "euler",
   "scheduler": "simple",
   "denoise": 1,
   "model": [
    "60",
    0
   ],
   "positive": [
    "242:90",
    0
   ],
   "negative": [
    "242:90",
    1
   ],
   "latent_image": [
    "242:90",
    2
   ]
  },
  "class_type": "KSampler",
  "_meta": {
   "title": "KSampler"
  }
 },
 "242:86": {
  "inputs": {
   "image1": [
    "232:58",
    0
   ],
   "image2": [
    "242:85",
    0
   ]
  },
  "class_type": "ImageBatch",
  "_meta": {
   "title": "Batch Images (DEPRECATED)"
  }
 },
 "243": {
  "inputs": {
   "filename_prefix": "video/ComfyUI",
   "format": "auto",
   "video": [
    "242:88",
    0
   ],
   "format.codec": "auto"
  },
  "class_type": "SaveVideo",
  "_meta": {
   "title": "Save Video"
  }
 },
 "232:57": {
  "inputs": {
   "samples": [
    "232:63",
    0
   ],
   "trim_amount": [
    "232:62",
    3
   ]
  },
  "class_type": "TrimVideoLatent",
  "_meta": {
   "title": "Trim Video Latent"
  }
 },
 "232:58": {
  "inputs": {
   "samples": [
    "232:57",
    0
   ],
   "vae": [
    "3",
    0
   ]
  },
  "class_type": "VAEDecode",
  "_meta": {
   "title": "VAE Decode"
  }
 },
 "232:62": {
  "inputs": {
   "length": 77,
   "batch_size": 1,
   "continue_motion_max_frames": 5,
   "video_frame_offset": 0,
   "positive": [
    "21",
    0
   ],
   "negative": [
    "1",
    0
   ],
   "vae": [
    "3",
    0
   ],
   "width": [
    "159",
    0
   ],
   "height": [
    "160",
    0
   ],
   "clip_vision_output": [
    "9",
    0
   ],
   "reference_image": [
    "10",
    0
   ],
   "face_video": [
    "100",
    0
   ],
   "pose_video": [
    "101",
    0
   ],
   "background_video": [
    "275",
    0
   ],
   "character_mask": [
    "276",
    0
   ]
  },
  "class_type": "WanAnimateToVideo",
  "_meta": {
   "title": "WanAnimateToVideo"
  }
 },
 "232:230": {
  "inputs": {
   "length": 4096,
   "image": [
    "232:58",
    0
   ],
   "batch_index": [
    "232:62",
    4
   ]
  },
  "class_type": "ImageFromBatch",
  "_meta": {
   "title": "Get Image from Batch"
  }
 },
 "232:15": {
  "inputs": {
   "fps": 16,
   "bit_depth": "auto",
   "color_space": "sRGB",
   "codec": "none",
   "images": [
    "232:230",
    0
   ],
   "audio": [
    "23",
    1
   ]
  },
  "class_type": "CreateVideo",
  "_meta": {
   "title": "Create Video"
  }
 },
 "232:63": {
  "inputs": {
   "seed": 1106558644923357,
   "steps": 6,
   "cfg": 1,
   "sampler_name": "euler",
   "scheduler": "simple",
   "denoise": 1,
   "model": [
    "60",
    0
   ],
   "positive": [
    "232:62",
    0
   ],
   "negative": [
    "232:62",
    1
   ],
   "latent_image": [
    "232:62",
    2
   ]
  },
  "class_type": "KSampler",
  "_meta": {
   "title": "KSampler"
  }
 },
 "19": {
  "inputs": {
   "filename_prefix": "video/ComfyUI",
   "format": "auto",
   "video": [
    "232:15",
    0
   ],
   "format.codec": "auto"
  },
  "class_type": "SaveVideo",
  "_meta": {
   "title": "Save Video"
  }
 },
 "99": {
  "inputs": {
   "lora_name": "WanAnimate_relight_lora_fp16.safetensors",
   "strength_model": 1,
   "model": [
    "18",
    0
   ]
  },
  "class_type": "LoraLoaderModelOnly",
  "_meta": {
   "title": "Load LoRA"
  }
 },
 "2": {
  "inputs": {
   "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
   "type": "wan",
   "device": "default"
  },
  "class_type": "CLIPLoader",
  "_meta": {
   "title": "Load CLIP"
  }
 },
 "3": {
  "inputs": {
   "vae_name": "wan_2.1_vae.safetensors"
  },
  "class_type": "VAELoader",
  "_meta": {
   "title": "Load VAE"
  }
 },
 "60": {
  "inputs": {
   "shift": 8,
   "model": [
    "99",
    0
   ]
  },
  "class_type": "ModelSamplingSD3",
  "_meta": {
   "title": "ModelSamplingSD3"
  }
 },
 "4": {
  "inputs": {
   "clip_name": "clip_vision_h.safetensors"
  },
  "class_type": "CLIPVisionLoader",
  "_meta": {
   "title": "Load CLIP Vision"
  }
 },
 "18": {
  "inputs": {
   "lora_name": "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
   "strength_model": 1,
   "model": [
    "20",
    0
   ]
  },
  "class_type": "LoraLoaderModelOnly",
  "_meta": {
   "title": "Load LoRA"
  }
 },
 "20": {
  "inputs": {
   "unet_name": "Wan2_2-Animate-14B_fp8_e4m3fn_scaled_KJ.safetensors",
   "weight_dtype": "default"
  },
  "class_type": "UNETLoader",
  "_meta": {
   "title": "Load Diffusion Model"
  }
 },
 "160": {
  "inputs": {
   "value": 640
  },
  "class_type": "PrimitiveInt",
  "_meta": {
   "title": "Height"
  }
 },
 "159": {
  "inputs": {
   "value": 640
  },
  "class_type": "PrimitiveInt",
  "_meta": {
   "title": "Width"
  }
 }
}