TL;DR
This paper introduces SAIN, a novel deep learning network for automatically generating intermediate sketch frames (inbetweens) in hand-drawn 2D animation. By leveraging multi-level guidance from pixel, stroke, and region correspondences, SAIN significantly improves the quality and accuracy of sketch interpolation, addressing key limitations of existing methods.
What Problem Does This Paper Address?
Creating hand-drawn 2D animation is a meticulous process, with the generation of "inbetweens" – the intermediate frames between key sketches – being particularly labor-intensive. While automatic inbetweening is highly desirable, current methods struggle with two main issues: 1) the inherent lack of texture and color details in sketches makes it difficult for traditional interpolation techniques to accurately track motion, and 2) significant changes between keyframes can lead to exaggerated or incorrect interpolations. This paper aims to bridge this gap by developing a robust sketch-aware interpolation network that can produce high-quality inbetweens, thereby streamlining the animation workflow.
Methods
The core of the proposed solution is the Sketch-Aware Interpolation Network (SAIN). SAIN employs a multi-stream U-Transformer architecture that integrates three levels of guidance:
- Pixel-Level Motion Dynamics: This uses bi-directional optical flow to capture fine-grained pixel movements, refining the input sketches.
- Stroke-Level Correspondence: A novel mechanism identifies and tracks salient points along the strokes in consecutive keyframes. This helps in understanding the precise movement of individual lines and outlines.
- Region-Level Correspondence: This approach identifies and matches regions within the sketches, providing a coarser understanding of object movement and structure.
These multi-level insights are fed into a multi-stream U-Transformer. This architecture utilizes two key building blocks: a Convolution & Self-Attention Block (CSB) for local and global pattern modeling, and a Convolution & Cross-Attention Block (CCB) which specifically leverages stroke and region information for more targeted inbetweening. The CSB stream focuses on integrating all multi-level dynamics, while the CCB streams utilize stroke and region features for a more sketch-specific modeling. Finally, these streams are fused to generate the interpolated sketch frame.
Datasets
The authors introduce a new, large-scale dataset called STD-12K. This dataset comprises 30 sketch animation series, totaling over 25 hours of content, and covers a diverse range of artistic styles. It was constructed by extracting contours and refining strokes from existing 2D animation movies. This dataset is intended to facilitate future research in sketch inbetweening, addressing a noted lack of publicly available benchmarks.
Key Insights and Ideas
- Multi-level Guidance is Crucial: The paper strongly advocates for the necessity of combining pixel, stroke, and region-level information. Relying on just one or two levels leads to significant performance degradation, highlighting the complexity of sketch inbetweening.
- Stroke Correspondence is Key for Sparsity: Traditional methods often fail with sparse sketch data. The explicit modeling of stroke correspondence proves vital for accurately capturing the movement of individual lines, which is fundamental to sketch animation.
- Transformer Architecture Adapts Well: The use of a U-Transformer with self and cross-attention mechanisms allows the model to effectively learn complex patterns and long-range dependencies within the sketch data.
- New Dataset Empowers Research: The creation of STD-12K is a significant contribution, providing a much-needed resource for the community to benchmark and advance sketch inbetweening techniques.
Key Results
SAIN demonstrates state-of-the-art performance on the newly introduced STD-12K dataset. Quantitatively, it achieves superior results across metrics like PSNR, SSIM, IE, and CD compared to existing methods, including sketch-based (AnimeInbet, Sketchformer, LDFI), animation-based (SGCVI, EISAI), and video-based (Super SloMo, AdaCoF, RIFE, VFIformer, DQBC) approaches. Qualitatively, SAIN produces visually more coherent and detailed inbetweens, avoiding the blurriness, artifacts, and missing strokes observed in other methods, especially in scenarios with significant motion or complex stroke changes.
Limitations and Future Work
The authors acknowledge a few limitations:
- Linear Stroke Correspondence: The current stroke-level correspondence assumes a linear path between keyframes, which might not always be accurate for complex movements.
- Exaggerated Motions: While SAIN performs well, scenarios with extremely exaggerated motions or less confident keypoints can still pose challenges.
Future work could focus on developing a more learnable and adaptive stroke-level correspondence mechanism. Additionally, improving performance in scenarios with highly exaggerated motions and exploring adaptability to freestyle or poorly-drawn sketches are promising directions.
Summary updated