Wan2.2 Animate turns a single reference image into a lifelike performance that follows a driving video’s full‑body motion and facial expressions. This ComfyUI Wan2.2 Animate workflow fuses pose transfer, face mocap, background control, and LoRA add‑ons so characters move naturally while identity stays intact.
Designed for avatars, performance re‑creations, music videos, and story beats, Wan2.2 Animate produces clean, temporally stable clips with optional audio passthrough, quality upscaling, and interpolation. It ships as a guided graph with sensible defaults, so you can focus on creative choices rather than plumbing.
Overall flow. The graph ingests a driving video and a single reference image, prepares a clean subject/background and a face‑aware crop, then feeds pose, face, image, and text embeds into Wan2.2 Animate for sampling and decode. A final stage upscales details and optionally interpolates frames before export.
WanVideoModelLoader
(#22) and WanVideoSetLoRAs
(#48) wire the model and adapters, while WanVideoVAELoader
(#38) and CLIPLoader
(#175) provide VAE and text backbones.Size
width
and height
in the size group and confirm the frame_count
matches the frames you plan to load from the driving video. VHS_LoadVideo
(#63) reports the count; keep the sampler’s num_frames
consistent to avoid tail truncation.PixelPerfectResolution
(#152) helper reads the driving clip to suggest stable generation sizing.Background Masking
VHS_LoadVideo
(#63); audio is extracted automatically for later passthrough. Use PointsEditor
(#107) to place a few positive points on the subject and run Sam2Segmentation
(#104) to generate a clean mask.GrowMask
(#100) and BlockifyMask
(#108) stabilize and expand edges, and DrawMaskOnImage
(#99) gives a quick sanity check. This mask lets Wan2.2 Animate focus on the performer while respecting the original background.Reference Image
ImageResizeKJv2
(#64) matches it to your working resolution, and the output is stored for the animation stage.Face Images
DWPreprocessor
(#177) finds pose keypoints, FaceMaskFromPoseKeypoints
(#120) isolates the face region, and ImageCropByMaskAndResize
(#96) produces aligned face crops. A small preview exporter is included for quick QA (VHS_VideoCombine
(#112)).Sampling & Decode
WanVideoClipVisionEncode
(#70), prompts are encoded with CLIPTextEncode
(#172, #182, #183), and everything is fused by WanVideoAnimateEmbeds
(#62).WanVideoSampler
(#27) runs the core Wan2.2 Animate diffusion. You can work in “context window” mode for very long clips or use the original long‑gen path; the included note explains when to match the context window to the frame count for stability. The sampler’s output is decoded by WanVideoDecode
(#28) and saved with optional audio passthrough (VHS_VideoCombine
(#30)).Result collage
ImageConcatMulti
(#77, #66) and GetImageSizeAndCount
(#42) assemble a side‑by‑side panel of reference, face, pose, and output. Use it to spot‑check identity and motion alignment before final export.Upscale and Interpolate
UltimateSDUpscaleNoUpscale
(#180) refines edges and textures with the provided UNet (UNETLoader
(#181)) and VAE (VAELoader
(#184)); positive/negative prompts can gently steer detail.RIFEInterpolation
(#188) optionally doubles motion smoothness, and VHS_VideoCombine
(#189) writes the final Wan2.2 Animate clip.VHS_LoadVideo
(#63)
Sam2Segmentation
(#104) + PointsEditor
(#107)
GrowMask
tends to out‑stabilize complex backgrounds without haloing. See SAM 2 for video‑aware segmentation guidance. PaperDWPreprocessor
(#177) + FaceMaskFromPoseKeypoints
(#120)
WanVideoModelLoader
(#22) and WanVideoSetLoRAs
(#48)
WanVideoAnimateEmbeds
(#62) and WanVideoSampler
(#27)
UltimateSDUpscaleNoUpscale
(#180)
RIFEInterpolation
(#188)
Links you may find useful:
This workflow implements and builds upon the following works and resources. We gratefully acknowledge Wan2.2 and @ArtOfficialLabs for Wan2.2 Animate Demo for their contributions and maintenance. For authoritative details, please refer to the original documentation and repositories linked below.
Note: Use of the referenced models, datasets, and code is subject to the respective licenses and terms provided by their authors and maintainers.
RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.