Abstract
Automating the "inbetweening" process in 2D animation—the creation of intermediate frames between keyframes—remains a significant challenge due to the unique properties of sketches, such as texture sparsity and exaggerated motion. This paper introduces the Sketch-Aware Interpolation Network (SAIN), a novel deep learning framework that bridges the gap between image-based and stroke-based interpolation. By integrating multi-level guidance across pixel, stroke, and region levels within a specialized U-Transformer architecture, SAIN achieves state-of-the-art performance in generating high-quality, structurally consistent animation frames.
Introduction
In traditional 2D animation, artists define major poses through "keyframes," while the tedious task of drawing "inbetweens" ensures fluid motion. Automating this labor-intensive process would revolutionize the industry. However, standard video interpolation methods typically fail on sketches for two primary reasons:
- Texture Sparsity: Sketches lack the color and dense texture found in natural video, making it difficult for optical flow algorithms to establish reliable motion anchors.
- Exaggerated Motion: Animation often employs non-linear, rapid movements where objects undergo significant deformation, leading to "broken" lines or blurry artifacts in automated results.
Existing solutions generally fall into two categories: stroke-based methods, which require manual vectorization, and image-based methods, which often produce distorted, low-quality results. SAIN addresses these issues by adopting an image-based approach that incorporates the structural awareness of stroke-based techniques.
Methodology: The SAIN Architecture
SAIN is designed to "think" like a stroke-based system while operating on pixel data. Its core innovation lies in a Multi-Level Guidance strategy that extracts three distinct layers of information to guide the interpolation process:
- Pixel-Level: Utilizes standard bi-directional optical flow to capture fine-grained motion dynamics.
- Stroke-Level: Employs salient point matching (via SuperPoint and SuperGlue) to track the movement of individual lines across frames.
- Region-Level: Uses the "trapped-ball" segmentation algorithm to identify enclosed areas, ensuring that the character's volume remains consistent during motion.
As shown in the architecture diagram, the network features a Multi-Stream U-Transformer composed of specialized blocks:
- Convolution and Self-Attention Block (CSB): Captures the global and local structural integrity of the sketch.
- Convolution and Cross-Attention Block (CCB): Fuses stroke and region guidance into the interpolation stream, allowing the model to accurately warp lines even during large motion jumps.
Datasets
To train and evaluate the model, the researchers introduced STD-12K (Sketch Triplet Dataset-12K), a large-scale dataset containing 12,000 triplets derived from 30 different animation series. This dataset covers a wide variety of artistic styles and character complexities. Additionally, the model was benchmarked against the AnimeRun dataset to test its generalization capabilities across different data distributions.
Key Results and Insights
SAIN significantly outperforms existing state-of-the-art (SOTA) methods in both quantitative and qualitative evaluations. On the STD-12K dataset, SAIN achieved a PSNR of 20.32 and an SSIM of 0.8727, surpassing specialized animation interpolators like EISAI and general video models like VFIformer.
Qualitatively, SAIN avoids the "broken stroke" artifacts common in older methods like LDFI and maintains facial features and structural consistency better than video-based models like DQBC. The use of cross-attention allows the model to selectively attend to specific strokes from keyframes, preventing the "ghosting" or "melting" effects seen in previous approaches. By explicitly modeling the empty regions between lines, SAIN turns the sparsity of sketches into a structural advantage.
Conclusion and Future Work
While SAIN represents a major leap forward, it currently assumes a relatively linear path for stroke motion, which can be a limitation for complex circular arcs. Furthermore, its performance is dependent on the quality of initial pre-processing for stroke and region matching. Future research will focus on developing a fully learnable correspondence mechanism to eliminate reliance on pre-defined point-matching algorithms, making the system even more robust for diverse animation styles.
Summary updated