Nodes/ComfyUI-WanAnimatePreprocessV2/Face/Pose Delta Editor
ComfyUI Node

Face/Pose Delta Editor

Apply user-edited landmark deltas to a per-frame face/pose landmark stream in anchor-relative space, so the edit follows the face as the head moves. Multi-keyframe with eased blend.

By Code2Collapse·Created 10 months ago·Updated 7 days ago· 18
Face/Pose Delta Editor
  • landmarks
  • pose_data
  • landmarks_modified
  • info_json
  • pose_data
◄keyframe_edits_json{ "keyframes": [], "ease": "smooth_step", "extrapolate": "hold" }►
◄anchor_modeintereye►
◄left_eye_idx-1►
◄right_eye_idx-1►
◄external_anchors_json►
Category🐺 C2C/🧍 Wan Animate Preprocess/Extras

Inputs (7)

NameTypeDefaultDescription
keyframe_edits_jsonSTRING{ "keyframes": [], "ease": "smooth_step", "extrapolate": "hold" }JSON describing one or more keyframe edits in anchor-relative space (1.0 unit = inter-ocular distance).
anchor_modeCOMBOintereyeHow to compute the per-frame face anchor. 'intereye' is robust under head turns; 'centroid' is a fallback for non-face landmark sets.
left_eye_idxINT-1-1–100000Landmark index of the outer eye corner on the image's left. -1 = by the face's point count: 36 for the iBUG-68 points of pose_data, 33 for MediaPipe FaceMesh.
right_eye_idxINT-1-1–100000Landmark index of the outer eye corner on the image's right. -1 = by the face's point count: 45 for the iBUG-68 points of pose_data, 263 for MediaPipe FaceMesh.
landmarksoptLANDMARKSPer-frame landmarks (T,N,2), e.g. FantasyPortrait's. A single frame (N,2) is promoted to T=1. Used when pose_data is not connected.
pose_dataoptPOSEDATAPose and Face Detection (V2)'s pose data: the edit moves the face points of every frame (iBUG-68) and the edited pose data goes on to Draw ViT Pose (V2). Takes precedence over landmarks.
external_anchors_jsonoptSTRINGOptional override for per-frame anchors. JSON: {"centers": [[cx,cy], ...], "scales": [s, ...]}. If present, replaces the computed intereye/centroid anchors.

Outputs (3)

NameTypeDescription
landmarks_modifiedLANDMARKSModified landmarks (T, N, 2) — same shape and ordering as input.
info_jsonSTRINGJSON: per-frame anchor stats, keyframes used, deltas applied, weights at head/tail frames. Useful for debugging the blend.
pose_dataPOSEDATA—