TL;DR
InstanceAnimator is a novel Diffusion Transformer (DiT) framework designed for multi-instance sketch video colorization that eliminates the rigid dependency on a single reference keyframe. By introducing a flexible canvas guidance system, instance-grouped attention, and decoupled control pathways, it enables precise, independent colorization of multiple characters and backgrounds with high detail fidelity.
What Problem Does This Paper Address?
Automating the colorization of sketch animations using reference images can drastically reduce production costs. However, existing exemplar-based video colorization methods suffer from three core limitations:
- First-Frame Dependency: They rely heavily on a single, fully colored initial reference frame. This prevents animators from making independent creative edits (like changing a character's outfit mid-scene) and fails during large character motions or camera pans where the first frame's perspective becomes obsolete.
- Character Misalignment: Modern Diffusion Transformer (DiT) architectures excel at global modeling but lack pixel-level alignment mechanisms. In multi-character scenarios, this often causes "color bleeding" or identity mix-ups between different characters.
- Detail Degradation: Fine-grained visual elements—such as clothing patterns, small props, and subtle facial expressions—frequently become blurred or lost during the color propagation process.
Methods
InstanceAnimator addresses these challenges by building an end-to-end framework on top of a pre-trained Diffusion Transformer (DiT) backbone, introducing three key architectural innovations:
- Canvas Guidance Condition: Instead of relying on a fixed reference frame, users can freely place pre-designed reference characters and background elements onto a blank canvas. This composite canvas serves as a spatio-temporal anchor, allowing natural color propagation even under extreme motion or camera trajectory shifts.
- Instance-Aware Attention: To prevent cross-character color contamination, reference instances are encoded into latent features and concatenated with the sketch and noise latents. The authors implement an instance-grouped attention scheme where an attention mask forces each character's features to interact independently with the joint sketch/noise feature map without attending to other characters.
- Adaptive Decoupled Control Module: Rather than blending all conditioning inputs together, this module processes text descriptions (via a T5 encoder), backgrounds, and character instances (via CLIP vision encoders) through separate, dedicated multi-layer perceptron (MLP) branches. Separate cross-attention layers act as condition experts, dynamically weighted by a learnable mechanism at each denoising step to preserve granular details.
Datasets
To train and evaluate full decoupled control in animation, the authors introduced the OpenAnimate Dataset.
- Composition: Contains over 42K high-quality video clips filtered from the Sakuga42M dataset and various internet animation films.
- Annotations: Each clip is meticulously broken down into its constituent components, providing a reference frame, isolated multiple reference instances, a background image, and a detailed text description covering character location, appearance, motion, and background context.
Key Insights and Ideas
- Canvas as a Spatio-Temporal Anchor: Moving away from rigid pixel-matching paradigms to a flexible reference canvas allows DiT models to learn intrinsic visual relationships rather than strict spatial constraints, making the pipeline robust to large-scale motion transformations.
- Isolating Attention Prevents Identity Confusion: Standard self-attention in transformers naturally mixes token information. By enforcing an instance-grouped attention mask, the model guarantees that character identities remain distinct, solving the multi-character color conflict problem inherent to prior models.
- Decoupled Pathways for Customization: Keeping text, background, and instance features in separate cross-attention streams allows users to independently scale control weights during inference. This enables features like modifying background lighting or swapping textures without altering the foreground characters.
Key Results
- Quantitative Performance: Evaluated on a test set of 100 complex, multi-character animation clips, InstanceAnimator achieved state-of-the-art results across nearly all major metrics, including the lowest Fréchet Inception Distance (FID: 121.901) and Learned Perceptual Image Patch Similarity (LPIPS: 0.201), alongside a high Structural Similarity Index (SSIM: 0.681).
- Efficiency: While ranking second in raw quality metrics to ToonComposer, InstanceAnimator achieves its results with 14 times fewer parameters and without requiring a complete first frame as a condition.
- Advanced Background Control: The framework demonstrates robust visual background control, allowing users to seamlessly swap out background images or alter them semantically via text prompts while maintaining perfect foreground consistency.
Limitations and Future Work
The primary limitation noted by the authors is the clean sketch prerequisite for semantic background control. For text-driven background modifications to work perfectly, the input line drawing sequence should ideally be blank in the background regions. If the input sketches already contain heavy background linework, the model struggles to decouple and synthesize alternative text-guided background environments cleanly.
Summary updated