Abstract
Sketch-to-image translation is a challenging task due to the sparse nature of input sketches. Traditional methods often require manual user hints or perfectly paired training data and frequently suffer from semantic inconsistencies. This paper introduces Adversarial Segmentation Consistency (ASC), a novel approach that utilizes a pre-trained, frozen segmentation network to guide the colorization process. By ensuring that generated images produce realistic semantic segmentation maps, the proposed method significantly improves the realism and semantic accuracy of sketch colorization without requiring additional manual input.
Introduction
Sketch colorization involves generating a realistic, fully colored image from a sparse line drawing. This task is inherently difficult because sketches lack texture, shading, and background details. Existing solutions typically rely on user-provided color scribbles or large datasets of perfectly paired sketch-photo examples. Furthermore, standard Generative Adversarial Networks (GANs) often produce "color bleeding" or semantically nonsensical results because their discriminators focus on local textures rather than global semantic logic.
Methodology: Adversarial Segmentation Consistency
The core of the proposed approach is the Adversarial Segmentation Loss (ASL). The underlying hypothesis is that if a colorized image is realistic, a standard segmentation network should be able to recognize its constituent objects as effectively as it does in a real photo.
The workflow consists of four main stages:
- Generation: A baseline GAN (e.g., Pix2Pix or CycleGAN) generates a color image from an input sketch.
- Segmentation: The generated image and a corresponding real image are passed through a pre-trained, frozen panoptic segmentation network (trained on COCO-Stuff).
- Adversarial Critique: Two auxiliary discriminators, $D_M$ (Multi-class) and $D_B$ (Binary), analyze the resulting segmentation maps to distinguish between those derived from real versus generated images.
- Consistency Optimization: The GAN is trained to minimize this adversarial loss, forcing it to produce images with semantically coherent coloring.
Datasets and Evaluation
The method was evaluated across five diverse datasets: ADE20k Bedroom, Cityscapes, Illustration, and two custom-curated datasets, COCO Elephant and COCO Sheep. These datasets test the model's ability to handle complex indoor scenes, urban environments, and specific animals in natural settings.
Key Results
The integration of ASL yielded significant improvements across several metrics:
- Image Quality: The Frechet Inception Distance (FID) improved by up to 35 points on the elephant dataset compared to baseline models.
- User Preference: In subjective evaluations, participants preferred ASL-enhanced images over baseline CycleGAN outputs by a significant margin (e.g., 80% vs. 20% for the bedroom dataset).
- Semantic Accuracy: Mean Intersection over Union (mIoU) scores demonstrated that colorized images were more recognizable to computer vision models, indicating higher semantic fidelity.
- Unpaired Performance: Notably, adding ASL to unpaired models (CycleGAN) allowed them to achieve performance levels comparable to, or exceeding, traditional paired models.
Conclusion
Adversarial Segmentation Consistency provides a powerful mechanism for improving sketch colorization by leveraging semantic segmentability as a proxy for realism. By utilizing pre-trained networks, the method avoids the need for domain-specific segmentation labels or manual user guidance. While challenges remain in capturing fine-grained textures in highly complex scenes, this approach represents a significant step toward more robust and semantically aware image synthesis from sparse inputs.
Summary updated