A Diffusion Transformer model for 3D video-like data used in Wan-Animate-2 by the Alibaba Wan Team. It animates a character image with the motion of a driving video through an…
WanAnimate2Transformer3DModel
A Diffusion Transformer model for 3D video-like data used in Wan-Animate-2 by the Alibaba Wan Team. It animates a character image with the motion of a driving video through an in-context reference mechanism: each segment first runs a reference pass (kv_cache_mode="extract") that caches every layer's reference K/V, then the denoising passes (kv_cache_mode="cached") attend jointly over the generation tokens and the cached reference tokens through a flex BlockMask.
The model can be loaded with the following code snippet.
from diffusers import WanAnimate2Transformer3DModel
transformer = WanAnimate2Transformer3DModel.from_pretrained("Wan-AI/Wan2.2-Animate-2-14B-Diffusers", subfolder="transformer", dtype=torch.bfloat16)
WanAnimate2Transformer3DModel
[[autodoc]] WanAnimate2Transformer3DModel
Transformer2DModelOutput
[[autodoc]] models.modeling_outputs.Transformer2DModelOutput
Source and license
Source: Diffusers documentation, adapted for this site. Licensing and attribution follow the terms of the upstream project.