Abstract
Automating the colorization of cartoon sketches remains a significant challenge in digital art production. This paper presents a novel deep learning framework that utilizes a single reference image to guide the colorization process. By integrating a multi-scale U-Net architecture with a multi-scale discriminator and employing Adaptive Instance Normalization (AdaIN), the proposed system effectively propagates complex color schemes and shading while strictly maintaining the structural integrity of the original line art. Experimental results demonstrate that this approach significantly outperforms existing state-of-the-art methods in both quantitative metrics and visual quality.
1. Introduction
The manual colorization of cartoon sketches is a labor-intensive bottleneck in the animation and digital illustration industries. Existing automated solutions often struggle with three primary issues: a lack of stylistic guidance leading to "flat" results, the requirement for tedious manual hints (e.g., color points), or the introduction of artifacts that compromise the original sketch's structural lines during general-purpose style transfer. To address these limitations, we propose a reference-guided system that combines the ease of a single-image style guide with the precision required for professional-grade line art preservation.
2. Methodology
The proposed framework consists of three primary components designed to disentangle style from structure and ensure high-fidelity colorization.
2.1 Color Style Extractor
A 4-block downscaling residual network is employed to compress a reference image into a 256-dimensional style code. This latent representation captures global color composition and local shading nuances while discarding the specific geometric features of the reference image.
2.2 Colorization Network (Generator)
The generator utilizes a U-Net architecture to process the input sketch. Style information is fused into the feature maps using Adaptive Instance Normalization (AdaIN). A key feature of this network is its multi-scale output capability; during training, it generates images at various resolutions. This hierarchical approach allows the model to simultaneously learn coarse color blocks and fine-grained local shading.
2.3 Multi-scale Discriminator
To enhance realism and ensure aesthetic consistency, a multi-scale discriminator evaluates the generated outputs at different resolutions. This adversarial setup encourages the generator to maintain global color balance while refining local details, such as shadows and highlights. The training process is optimized using a composite loss function comprising multi-scale reconstruction loss and multi-scale adversarial loss.
3. Experimental Setup
The framework was trained and evaluated using a large-scale dataset of 17,769 anime sketch-color pairs. The data was split into 14,224 pairs for training and 3,545 for evaluation. Performance was quantified using standard metrics: Peak Signal-to-Noise Ratio (PSNR), Structural Similarity Index (SSIM), and Fréchet Inception Distance (FID).
4. Results and Discussion
The proposed method demonstrates superior performance compared to traditional style transfer (e.g., Gatys, WCT, AdaIN) and specialized sketch colorization techniques.
4.1 Quantitative Analysis
Our model achieved a PSNR of 17.25 and an SSIM of 0.74, indicating high reconstruction accuracy. Notably, the FID score of 27.99 was approximately half that of the nearest competitor, signifying a substantial improvement in the realism of the generated artwork.
4.2 Qualitative Analysis
Visually, the method effectively prevents "color bleeding" across structural boundaries, a common failure mode in existing models. The use of adversarial learning further ensures artistic logic, such as color symmetry in character features. The multi-scale approach successfully balances global thematic coloring with local artistic nuances.
5. Conclusion
This paper introduces a robust framework for reference-guided cartoon sketch colorization. By leveraging multi-scale architectures and AdaIN-based style fusion, the system achieves high-quality results that respect the original line art. Future work will focus on improving color mapping for structurally dissimilar reference images and addressing temporal consistency for application in full animation sequences.
Summary updated