支持无缝视频连接和多参考图像,适用于 Wan Animate 和 Scail-2
Multi-reference image injection and seamless video connection for ComfyUI's WanAnimate pipeline.
ComfyUI-WanAnimatePlus adds five major feature groups to the WanVideo workflow:
When used together, canvas layout and frame offsets are automatically coordinated without conflicts.
Supports Bernini models. Allows passing source video, reference video, or reference images as generation conditions. Supports v2v, rv2v, r2v, and t2v tasks.
Use cases:
Adds a wrapper-native WanAnimatePlus SCAIL_2 Embeds node for SCAIL-2 models. It prepares reference image, driving pose, colored pose mask, reference mask, optional prefix/transition hard-freeze latents, and prefix-aligned colored masks for the WanAnimatePlus sampler.
Adds WanAnimatePlus SCAIL_2 Flow Embeds, WanAnimatePlus SCAIL_2 Flow Sampler, and WanAnimatePlus VAE Decode. These nodes use official ComfyUI MODEL, VAE, CONDITIONING, LATENT, and IMAGE interfaces so they can fit into official-style workflows while preserving WanAnimatePlus SCAIL-2 prefix, transition, bg, mask, loop colormatch, and two-phase sampling behavior.
Adds WanAnimatePlus Animate2 Embeds for official ComfyUI Animate2 models. It maps Plus-style ref_image, prefix_frames, and bg_image onto official Animate2 CONDITIONING (concat_latent_image, concat_mask, pose_video_latent) and LATENT. Sample with the same WanAnimatePlus SCAIL_2 Flow Sampler used by SCAIL-2 Flow; there is no separate Animate2 sampler.
RunningHub is an online ComfyUI compute platform. If your local hardware cannot run AI models, you can run the workflows below for free on RunningHub; register through the links to receive 1000 credits.
| Scail2 Ultra-long Video Two-stage Sampling Non-degradation Workflow | Ultra-powerful all-in-one WanAnimate Plus version workflow |
|---|---|
| https://www.runninghub.ai/post/2073345711527444480/?inviteCode=rh-v1565 | https://www.runninghub.ai/post/2073345712362110976/?inviteCode=rh-v1565 |
Allows 1–5 additional reference images. Internally expands the canvas pixel space and encodes reference images across the front frames, with automatic frame offset coordination for control signals (pose / face).
Allows passing the last 21 frames of the previous video segment. Writes these pixel frames directly into the front of the generation canvas, with sampled+reversed padding for control signal offsets.
Generates condition latents from source video, reference video, and/or reference images via VAE encoding. Supports v2v, rv2v, r2v, and t2v — task is auto-detected from connected inputs.
Provides SCAIL-2 ref / pose / mask conditioning through WanAnimatePlus SCAIL_2 Embeds.
ref_image, pose_images, pose_image_mask, prefix_frames, prefix_mask, bg_image, and reference_image_masktransition_video hard-freeze conditioningprefix_frames are encoded as full-resolution reference latents and do not expand the output canvas; disable single_frame_prefix_encoding to use the legacy 37 front pixel-frame prefix layoutprefix_mask follows the same reference-mask path as reference_image_maskProvides official Animate2 conditioning through WanAnimatePlus Animate2 Embeds, sampled by WanAnimatePlus SCAIL_2 Flow Sampler.
ref_image, prefix_frames, and bg_image onto official concat_latent_image / concat_mask / pose_video_latentprefix_frames are extra frozen identity latents (max 5) and are trimmed after samplingbg_image fills the unknown canvas instead of mid-grey and remains generatedframe_window_size is smaller than num_framesWanAnimate2Cache / PoseBranchCache; use those nodes directly when caching is neededPlace this repository into ComfyUI's custom_nodes directory:
cd ComfyUI/custom_nodes
git clone https://github.com/wuwukaka/ComfyUI-WanAnimatePlus.git
Restart ComfyUI after installation.
Important: To use
prefix_frames,transition_video,Bernini, orSCAIL_2 Embeds, you must replace the full workflow chain with WanAnimatePlus nodes. Mixing WanAnimatePlus nodes with original WanVideoWrapper nodes in the same workflow will result in degraded output.
WanAnimatePlus categoryModelLoader, VAELoader, ContextOptions, AnimateEmbeds, Sampler, Decode, and supporting nodesWanAnimatePlus Easy Sampler or WanAnimatePlus Easy SamplerSettings is recommended because they keep the full sampler functionality while exposing only the common controlsMODEL/VAE/CONDITIONING/LATENT/IMAGE chains:WanAnimatePlus SCAIL_2 Flow Embeds -> WanAnimatePlus SCAIL_2 Flow Sampler -> WanAnimatePlus VAE DecodeWanAnimatePlus Animate2 Embeds -> WanAnimatePlus SCAIL_2 Flow Sampler -> WanAnimatePlus VAE Decodeprefix_frames and/or transition_video inputs as neededexample_workflows/ directoryWanAnimatePlus exposes a complete workflow chain to avoid cross-package object mixing with the original WanVideoWrapper nodes.
Core nodes:
WanAnimatePlus ModelLoaderWanAnimatePlus VAELoaderWanAnimatePlus TextEncodeCachedWanAnimatePlus ClipVisionEncodeWanAnimatePlus ContextOptionsWanAnimatePlus AnimateEmbedsWanAnimatePlus Sampler / WanAnimatePlus Samplerv2WanAnimatePlus Easy Sampler / WanAnimatePlus Easy SamplerSettingsWanAnimatePlus Scheduler / WanAnimatePlus Schedulerv2WanAnimatePlus Decode / WanAnimatePlus EncodeWanAnimatePlus LoraSelect / WanAnimatePlus LoraSelectMulti / WanAnimatePlus SetLoRAsWanAnimatePlus BlockSwap / WanAnimatePlus SetBlockSwapWanAnimatePlus TorchCompileSettingsWanAnimatePlus SamplerExtraArgsWanAnimatePlus Uni3C ControlnetLoader / WanAnimatePlus Uni3C EmbedsWanAnimatePlus BerniniWanAnimatePlus SCAIL_2 EmbedsWanAnimatePlus SCAIL_2 Flow EmbedsWanAnimatePlus SCAIL_2 Flow SamplerWanAnimatePlus Animate2 EmbedsWanAnimatePlus VAE DecodeThese nodes are recommended for SCAIL-2 and WanAnimate workflows. They simplify the visible node panel to common controls such as steps, cfg, shift, seed, force_offload, and scheduler, while still using the full WanAnimatePlus sampler settings and feature path underneath.
WanAnimatePlus Easy Sampler runs sampling directly. WanAnimatePlus Easy SamplerSettings outputs SAMPLER_ARGS for use with WanAnimatePlus SamplerFromSettings.
Core node, replaces the original WanVideoAnimateEmbeds.
New inputs:
| Input | Description |
|---|---|
prefix_frames |
1–5 additional reference images for multi-reference guided generation |
transition_video |
Last 21 frames of the previous video segment for seamless video connection |
Other inputs are identical to the original WanVideoAnimateEmbeds: vae, width, height, num_frames, ref_images, pose_images, face_images, bg_images, mask, start_ref_image, clip_embeds, etc.
Generates condition latents from source video, reference video, and/or reference images for Bernini models.
Inputs:
| Input | Description |
|---|---|
vae |
VAE model for encoding |
width / height / num_frames |
Output dimensions |
source_video |
Source video to edit/restyle (v2v/rv2v). Resized to width/height |
reference_video |
Moving content to composite (video insertion), native aspect |
reference_images |
Reference image(s) as in-context tokens (r2v/rv2v). Native aspect |
ref_max_size |
Max long-edge size for reference media (default 848) |
force_offload |
Offload VAE after encoding to save VRAM |
tiled_vae |
Use tiled VAE encoding for memory savings |
The task (v2v, rv2v, r2v, t2v) is automatically inferred from which inputs are connected.
Creates SCAIL-2 conditioning for WanAnimatePlus sampling. Use this node with SCAIL-2 checkpoints that include the pose and mask streams.
Inputs:
| Input | Description |
|---|---|
vae |
VAE model for encoding |
width / height / num_frames |
Target dimensions; width and height are aligned to multiples of 32 |
ref_image |
Reference image for SCAIL-2 conditioning |
bg_image |
Optional single background image for animation mode. In single-frame mode it is encoded as an extra background reference latent; in legacy canvas-prefix mode it is appended after user prefix_frames. Ignored in replacement mode |
pose_images |
Driving pose video/images, encoded at half resolution |
pose_image_mask |
Colored per-identity pose mask sequence |
prefix_mask |
Optional colored mask images matching prefix_frames; in single-frame mode it follows the reference-mask path, and in legacy canvas-prefix mode it is expanded as 1+4+4... and written into prefix pixel mask frames |
reference_image_mask |
Colored reference mask image |
replacement_mode |
Enables SCAIL-2 replacement-mode RoPE and reference-mask compositing |
preserve_main_ref_background |
Animation mode only; keeps the main reference image background when enabled, or uses reference_image_mask as a black-background alpha crop when disabled. Ignored in replacement mode |
single_frame_prefix_encoding |
Encodes prefix_frames as individual full-resolution reference latents instead of expanding the canvas; enabled by default |
prefix_frames |
Optional prefix images. In default single-frame mode these become reference-stream latents; with single-frame mode disable |
暂无开放 Issues,或尚未同步最近议题。