FaceController: Controllable Attribute Editing for Face in the Wild

Zhiliang Xu, Xiyu Yu, Zhibin Hong, Zhen Zhu, Junyu Han, Jingtuo Liu, Errui Ding, Xiang Bai

Introduction

Editing facial attributes in real-world "in the wild" images presents a significant challenge in computer vision. Current approaches typically fall into two categories: GAN inversion and direct encoding. While GAN inversion offers high quality, it is computationally intensive and slow. Conversely, direct encoding is fast but often struggles with attribute disentanglement, where changing one feature (like pose) inadvertently alters another (like identity). FaceController addresses these issues by providing a high-fidelity, feed-forward network for precise, real-time control over facial identity, expression, pose, illumination, and local textures.

Methodology

FaceController treats face editing as a multi-stream fusion problem, integrating three primary inputs to achieve fine-grained control:

  1. 3DMM Coefficients: These provide structural priors for pose, expression, and lighting extracted via an off-the-shelf network.
  2. Identity Encoder: Utilizing a pre-trained ArcFace model, it extracts high-level identity embeddings to ensure identity preservation.
  3. Region-wise Style Encoder: Based on the SEAN architecture, this uses segmentation masks to extract 512-dimensional style codes for specific facial regions (e.g., eyes, lips, skin), enabling granular makeup transfer.

The core innovation is the Identity-Style (IS) Normalization module. This module extends Spatially-Adaptive Denormalization (SPADE) by modulating feature maps using both global identity embeddings and local region-wise style codes, effectively bridging the gap between the structural control of 3D models and the photorealism of GANs.

Overview of the FaceController architecture, detailing the multi-stream input fusion and the Identity-Style (IS) Normalization modules.

To train without paired data, the authors employ unsupervised losses, including identity loss, histogram matching for texture consistency, and a unique landmark loss. The landmark loss uses 3DMM-projected landmarks to enforce target poses without overwriting source identity details.

Experiments and Results

The model was trained on large-scale datasets including CelebA-HQ, FFHQ, and VGGFace, and evaluated against benchmarks like FaceForensics++ and the MT-dataset.

Face Swapping and Makeup Transfer

FaceController demonstrates state-of-the-art performance in face swapping, achieving an Identity Retrieval score of 98.27% and a Fréchet Inception Distance (FID) of 3.51 on FaceForensics++. It outperforms established methods such as FaceShifter and FSGAN in both identity preservation and visual quality. In makeup transfer tasks, user studies indicated a preference for FaceController over specialized models like LADN and SEAN due to its superior ability to preserve identity while accurately transferring fine-grained styles.

Qualitative comparison of FaceController against various state-of-the-art face swapping methods across different subjects.

Efficiency

As a feed-forward network, FaceController generates results in a single pass, offering a significant speed advantage over optimization-based GAN inversion methods, making it suitable for real-time applications.

Conclusion and Future Work

FaceController provides a versatile "Swiss Army Knife" for face editing. While highly effective, the model faces challenges with extreme head rotations, which can cause background artifacts, and maintaining gaze consistency. Future work aims to incorporate specific eyeball landmarks to better constrain gaze direction and improve background inpainting for extreme poses.

Summary updated

BibTeX
@inproceedings{xu2021facecontroller,
  author = {Zhiliang Xu and Xiyu Yu and Zhibin Hong and Zhen Zhu and Junyu Han and Jingtuo Liu and Errui Ding and Xiang Bai},
  title = {{FaceController: Controllable Attribute Editing for Face in the Wild}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i4.16417},
}
Figure