Abstract
Animated graphics are typically distributed as flattened raster videos, making subsequent editing of individual layers—or "sprites"—difficult. This paper presents a fast, optimization-based framework for decomposing these videos back into their constituent editable components. By leveraging a pre-trained video object segmentation model for initialization and enforcing a static texture constraint, the proposed method achieves high-quality decomposition significantly faster than existing state-of-the-art techniques.
Introduction
In graphic design, animations are built from discrete "sprites"—images like logos, text, or characters that undergo transformations over time. Once exported as a standard video file, these layers are flattened into a single pixel stream. Recovering these original layers from a raster video is a challenging inverse problem. While general video decomposition methods exist, they are often optimized for natural scenes, resulting in slow processing times and blurry outputs when applied to the clean, sharp edges of motion graphics. This work introduces a tool designed specifically for the structured world of animated graphics, enabling interactive editing workflows.
Methodology
The decomposition is framed as an optimization problem: identifying the textures and motion parameters that reconstruct the input video when rendered. The approach relies on three core pillars:
- Static Sprite Assumption: Unlike natural objects that deform, most animated sprites are static images. The model optimizes only for affine transformations (position, rotation, scale) and opacity, significantly narrowing the search space and improving stability.
- Neural Texture Prior: To ensure clean and coherent textures, a U-Net architecture serves as a deep image prior. Instead of optimizing individual pixels, the system optimizes the weights of a network that generates the texture, preventing noise and artifacts.
- VOS-Based Initialization: To avoid local minima, the process begins with a "warm start." Users provide bounding boxes for objects in a single frame, and a pre-trained Video Object Segmentation (VOS) model tracks these objects across the sequence, providing a robust initial state for the optimization.
The Crello Animation Dataset
To evaluate the method, the authors introduced the Crello Animation dataset. Scraped from a professional design service, it contains 299 high-quality templates. Unlike existing datasets like DAVIS, Crello features up to six layers per video, including complex typography and illustrations. Crucially, it provides perfect ground truth for every layer, including occluded regions, allowing for rigorous quantitative assessment.
Results and Discussion
The proposed method demonstrates a superior quality-efficiency tradeoff compared to Layered Neural Atlases (LNA) and Deformable Sprites (DS).
- Efficiency: Within a 10-minute optimization window, the method achieved a Sprite RGB Error (L1) of 0.1179, significantly lower than LNA (0.2654) and DS (0.2965).
- Visual Quality: Qualitative results show that the method recovers much sharper boundaries for text and illustrations. Previous methods often produced "blurry" edges due to over-parameterization or lack of appropriate priors for graphic content.
- Sprite-Centric Metrics: The authors highlight that standard frame-level reconstruction error is insufficient for editing tasks. They propose "Sprite Error" to measure how accurately individual layers are recovered, which more closely aligns with the needs of designers.
Limitations and Future Work
The current framework assumes static textures, meaning it cannot handle non-rigid deformations like a walking character or fluid effects. Additionally, the model stores motion parameters per frame; future iterations could utilize keyframe interpolation to generate outputs that are more natively compatible with professional software like Adobe After Effects. Finally, explicitly modeling motion blur and lighting changes remains an area for future exploration.
Summary updated