[Paper Review] DeepFacePencil: Creating Face Images from Freehand Sketches
This paper proposes DeepFacePencil, a conditional generative adversarial network with a dual generator and spatial attention pooling (SAP) module to generate photorealistic face images from freehand sketches. By adaptively adjusting the balance between realism and sketch conformance across spatial locations, the model generalizes robustly to diverse sketch styles, including poorly drawn or deformed strokes, outperforming existing methods in image quality and robustness on both synthesized and real hand-drawn sketches.
In this paper, we explore the task of generating photo-realistic face images from hand-drawn sketches. Existing image-to-image translation methods require a large-scale dataset of paired sketches and images for supervision. They typically utilize synthesized edge maps of face images as training data. However, these synthesized edge maps strictly align with the edges of the corresponding face images, which limit their generalization ability to real hand-drawn sketches with vast stroke diversity. To address this problem, we propose DeepFacePencil, an effective tool that is able to generate photo-realistic face images from hand-drawn sketches, based on a novel dual generator image translation network during training. A novel spatial attention pooling (SAP) is designed to adaptively handle stroke distortions which are spatially varying to support various stroke styles and different levels of details. We conduct extensive experiments and the results demonstrate the superiority of our model over existing methods on both image quality and model generalization to hand-drawn sketches.
Motivation & Objective
- To address the challenge of generating high-quality, photorealistic face images from freehand sketches with diverse stroke styles and imperfections.
- To overcome the limitation of existing image-to-image translation models trained on edge-aligned synthetic sketches, which fail to generalize to real hand-drawn sketches with stroke distortions.
- To develop a method that adaptively balances image realism and sketch conformance across different regions of a sketch, depending on stroke quality.
- To improve model generalization by incorporating deformed sketches into the training data and using a learnable attention mechanism to handle spatially varying distortions.
Proposed method
- A dual generator training strategy is employed, where two generators are trained simultaneously to improve feature learning and robustness.
- A novel spatial attention pooling (SAP) module is introduced to relax stroke alignment by applying multiple pooling operations with varying kernel sizes, generating multiple relaxed sketch representations.
- The SAP module fuses multiple relaxed sketches through a learnable spatial attention layer that dynamically assigns importance based on local stroke quality and distortion.
- The attention weights are computed per spatial location to prioritize realism in poorly drawn regions and conformance in well-drawn regions.
- The model is trained using a conditional GAN framework with adversarial, perceptual, and identity loss components to ensure photorealism and structural consistency.
- Deformed sketches with varying stroke offsets are synthesized during training to enhance robustness to real-world drawing variations.
Experimental results
Research questions
- RQ1Can a deep learning model generate photorealistic face images from freehand sketches with high fidelity and generalization to diverse stroke styles?
- RQ2How can a model balance image realism and sketch conformance when input sketches contain inconsistent or distorted strokes?
- RQ3To what extent can a model trained on synthetic edge maps generalize to real hand-drawn sketches with irregular stroke patterns?
- RQ4Does the integration of spatially adaptive attention mechanisms improve performance on low-quality or deformed sketches?
Key findings
- The proposed DeepFacePencil model significantly outperforms baseline models in image quality on both synthesized and real hand-drawn sketches, as measured by FID and LPIPS metrics.
- On expert-drawn sketches, the model produces more realistic textures and intact facial structures compared to baselines, even when baselines are fine-tuned with deformed sketches.
- On common-user sketches drawn with mice, the model maintains high visual quality with minimal artifacts, while baseline models produce blurry and distorted results.
- The model generalizes effectively to large stroke deformations (up to d=30), producing realistic images without artifacts, whereas baselines exhibit severe distortions in facial features.
- The spatial attention pooling (SAP) module enables adaptive balancing between realism and conformance, with higher attention assigned to reliable sketch regions and more regularization in ambiguous or distorted areas.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.