Introduction
Sketch-to-image (s2i) synthesis is often considered the "holy grail" of digital art tools, enabling users to generate realistic masterpieces from rough outlines and reference photos. Despite its potential, the task is hindered by three major challenges: the extreme scarcity of large-scale datasets containing paired human sketches and photos, the significant domain gap between clean edge maps and messy human drawings, and the difficulty of disentangling "style" (color, texture) from "content" (geometry, layout) in reference images.
This paper introduces a novel self-supervised framework that eliminates the need for manually paired datasets. By combining a synthetic sketch generator with a decoupled auto-encoder and adversarial refinement, the model achieves state-of-the-art, high-resolution (1024x1024) results that are both content-faithful and style-consistent.
Methods
The authors propose a two-stage pipeline that relies on self-supervision to bridge the gap between sketches and photorealistic images.
1. TOM: Synthetic Sketch Generation
To address data scarcity, the authors developed TOM (Train Once and get Multiple transfers), a GAN-based sketch generator. Unlike standard edge detectors like Canny, TOM is trained to produce "human-like" sketches characterized by random deformations and varying line styles. This allows the model to generate multiple distinct sketches for a single RGB image, providing a rich synthetic training set that mimics the imperfections of real-world drawing.
2. Disentangled Auto-Encoder (AE)
The core of the system is an Auto-Encoder designed to separate style from content effectively:
- Style Encoder: Employs heavy data augmentation (rotation, scaling) and a triplet loss to ensure it captures translation-invariant style features rather than spatial layouts.
- Content Encoder: Specifically designed to "hallucinate" missing details from sparse, deformed sketches.
- Momentum Mutual-Information Minimization: This specialized loss function ensures that style and content features remain mathematically independent, preventing the reference image's geometry from overriding the sketch's original structure.
3. Adversarial Refinement
In the second stage, a GAN (comprising Generator $G_2$ and Discriminator $D$) is trained to take the Auto-Encoder's output and refine fine-grained details. This stage is crucial for pushing the output resolution to a crisp 1024x1024.
Key Insights
- Efficiency over Complexity: The research demonstrates that a well-designed Auto-Encoder using pure self-supervision can outperform complex CycleGAN-based architectures while being significantly less computationally expensive.
- Robustness to Imperfection: By training on "messy" synthetic sketches from TOM rather than perfect edge maps, the model becomes robust to the natural deformations found in human sketches.
- Semantic Awareness: The effective decoupling of style and content allows for "semantic-infer ability." For instance, when applying a landscape's style to a face sketch, the model intelligently maps colors to appropriate facial features (hair, skin, eyes) rather than simply overlaying a texture.
Key Results
The proposed model achieved new state-of-the-art (SOTA) performance across both quantitative and qualitative metrics. On the CelebA-HQ portrait dataset, the model reached a Frechet Inception Distance (FID) of 13.6, surpassing the previous SOTA, CocosNet (14.3). On the more complex WikiArt dataset, the improvement was even more pronounced, with an FID of 32.6 compared to Sketch2art's 84.2.
Beyond metrics, the model excels at style mixing, allowing users to blend attributes from multiple reference images (e.g., taking hair color from one photo and skin tone from another) into a single, coherent output at 1024x1024 resolution.
Limitations and Future Work
While the model performs exceptionally well on portraits, the authors noted that highly complex artistic compositions in the WikiArt dataset can occasionally suffer from "content interference," where shapes from the reference image bleed into the sketch. Future research may focus on even more sophisticated disentanglement techniques or incorporating higher-level semantic labels to handle diverse artistic styles more robustly.
Summary updated