Abstract
Sketching is an intuitive and effective way for content creation. While significant progress has been made for photorealistic image generation by using generative adversarial networks, it remains challenging to take a fine-grained control on synthetic content. The instance normalization layer, which is widely adopted in existing image translation networks, washes away details in the input sketch and leads to loss of precise control on the desired shape of the generated face images. In this paper, we comprehensively investigate the effect of instance normalization on generating photorealistic face images from hand-drawn sketches. We first introduce a visualization approach to analyze the feature embedding for sketches with a group of specific changes. Based on the visual analysis, we modify the instance normalization layers in the baseline image translation model. We elaborate a new set of hand-drawn sketches with 11 categories of specially designed changes and conduct extensive experimental analysis. The results and user studies demonstrate that our method markedly improve the quality of synthesized images and the conformance with user intention.
Introduction
Sketch-based image synthesis allows users to create photorealistic faces from simple line drawings. However, current state-of-the-art models, such as pix2pixHD, often suffer from a lack of "local integrity." For instance, a small, intentional change to a mouth shape might be ignored by the generator, or a change in one area might unexpectedly alter unrelated features like the eyes or hair. This research identifies Instance Normalization (IN) as the primary cause of this loss of precision. While IN is effective for capturing global styles, it tends to treat local structural details as noise, effectively "washing away" the specificities of the input sketch.
Methodology
The study employed a multi-faceted approach to diagnose and resolve the information loss:
Feature Visualization
Using Principal Component Analysis (PCA), the researchers visualized feature embeddings at the first five layers ($L_0$ to $L_4$) of the generator. They observed that in standard models, features for specific points (e.g., the corner of an eye) became increasingly scattered and influenced by distant, unrelated parts of the sketch as they progressed through the network. This "receptive field contamination" suggested that IN was broadcasting local changes across the entire image.
Architectural Modification
Based on the visualization results, the baseline pix2pixHD generator was modified. The researchers found that removing Instance Normalization layers from the first two convolutional blocks of the "front-end" ($G_F$) provided an optimal balance. This modification preserves low-level structural details without compromising the stability of the training process.
Data Augmentation for Robustness
To bridge the gap between clean synthetic edge maps and messy hand-drawn sketches, the team applied random translations and rotations to training contours while keeping target photos fixed. This improved the model's ability to handle real-world user inputs.
Experimental Results
The modified model was evaluated using the CelebA-HQ dataset and a custom set of 198 hand-drawn sketches across 11 categories of local changes (e.g., "adding hair," "modifying nose shape").
Qualitative Performance and Local Fidelity
The proposed method demonstrates superior local fidelity compared to the baseline. When a user modifies a specific feature in the sketch, the generator reflects that change accurately without distorting other facial regions.
Quantitative and User Evaluation
In a user study involving 60 volunteers, the proposed method was preferred 87.2% of the time over the pix2pixHD baseline. Users noted sharper textures, particularly around high-detail areas like teeth and eyes, and a much higher conformance to their original sketching intent.
Conclusion
This research highlights a fundamental tension in generative models: normalization layers often treat spatial structure as "style." By selectively removing early Instance Normalization layers, the authors achieved significantly better alignment with user intent and improved image sharpness. This work provides a practical architectural guideline for future sketch-to-image synthesis tasks where fine-grained control is paramount.
Summary updated