Abstract
Recovering a photorealistic face from an artistic portrait is a challenging task since crucial facial details are often distorted or completely lost in artistic compositions. To handle this loss, we propose an Attribute-guided Face Recovery from Portraits (AFRP) that utilizes a Face Recovery Network (FRN) and a Discriminative Network (DN). FRN consists of an autoencoder with residual block-embedded skip-connections and incorporates facial attribute vectors into the feature maps of input portraits at the bottleneck of the autoencoder. DN has multiple convolutional and fully-connected layers, and its role is to enforce FRN to generate authentic face images with corresponding facial attributes dictated by the input attribute vectors. For the preservation of identities, we impose the recovered and ground-truth faces to share similar visual features. Specifically, DN determines whether the recovered image looks like a real face and checks if the facial attributes extracted from the recovered image are consistent with given attributes. Our method can recover photorealistic identity-preserving faces with desired attributes from unseen stylized portraits, artistic paintings, and hand-drawn sketches. On large-scale synthesized and sketch datasets, we demonstrate that our face recovery method achieves state-of-the-art results.
Introduction
While "style transfer"—the process of turning a photograph into an artistic painting—has become a popular application of deep learning, the inverse problem of photorealistic face recovery remains significantly more difficult. Artistic portraits often distort facial geometry, alter textures, or omit fine details entirely.
Existing reconstruction methods typically rely on standard autoencoders, which often produce blurry results or "hallucinate" incorrect features, such as changing a subject's hair color. Furthermore, standard facial landmark detectors usually fail on stylized art, making it difficult for traditional models to align and process these images correctly. The AFRP framework addresses these challenges by using auxiliary semantic information—high-level facial attributes—to guide the reconstruction process.
The AFRP Framework
The proposed architecture consists of two primary components designed to bridge the gap between stylized art and photorealism:
- Face Recovery Network (FRN): This autoencoder is enhanced with residual block-embedded skip-connections. These connections allow the network to filter out "style noise" while preserving essential structural information. At the network's bottleneck, a 20-dimensional facial attribute vector (e.g., "smiling," "black hair," "young") is concatenated, providing a semantic blueprint for the missing high-frequency details.
- Discriminative Network (DN): Unlike standard GAN discriminators, this DN is conditional. It evaluates both the photorealism of the generated face and its consistency with the input attribute vector. This forces the generator to actively utilize the provided semantic information rather than finding a "lazy" path to realism.
To handle alignment without relying on external landmark detectors (which often fail on art), the model incorporates Spatial Transformer Networks (STNs). These allow the model to automatically compensate for rotations and translations within the portrait.
Training Objectives
The model is optimized using a combination of three loss functions:
- Pixel-wise $\ell_2$ loss: Ensures basic intensity similarity between the recovered image and the ground truth.
- Identity-preserving loss: Utilizes features from a pre-trained FaceNet to ensure the recovered face maintains the subject's unique identity.
- Adversarial/Attribute loss: Driven by the DN to ensure both visual realism and attribute accuracy.
Experimental Results
The authors evaluated AFRP using the CelebA dataset and a synthesized dataset of 110,000 pairs featuring styles like Candy, Wave, and Mosaic. Testing was conducted on "unseen" styles, including Sketch, Starry Night, and The Scream, as well as real-world gallery paintings.
Quantitative and Qualitative Performance
AFRP outperformed state-of-the-art methods like pix2pix and CycleGAN in both PSNR (Peak Signal-to-Noise Ratio) and SSIM (Structural Similarity). Specifically, AFRP achieved a PSNR of approximately 20.01, compared to 18.45 for pix2pix.
In face retrieval tests—where the goal is to match a recovered face back to a database of real photos—AFRP achieved a 93.08% success rate on seen styles and 83.14% on unseen styles. This significantly outperformed competing models, which typically achieved success rates between 30% and 75%.
Attribute Manipulation
Because attributes are an explicit input, the model allows for post-editing of portraits. Users can generate versions of a person from a single sketch with different hair colors, ages, or expressions, effectively using the portrait as a base for semantic editing.
Conclusion
By utilizing facial attributes as semantic anchors, the AFRP framework successfully "destylizes" artistic portraits while preserving the subject's identity. The use of a conditional discriminator and spatial transformers allows the model to overcome the geometric distortions and detail loss inherent in artistic styles. Future work may extend this framework to more complex artistic styles or integrate it as a preprocessing step for facial analysis tools that currently require photorealistic input.
Summary updated