TL;DR
This paper introduces a novel method for transferring facial expressions between any two unconstrained face images, leveraging the power of StyleGAN. By inferring and manipulating hierarchical "style vectors" that disentangle facial attributes, they can realistically combine the appearance of one face with the expression of another, without needing paired data or geometric annotations.
What Problem Does This Paper Address?
Facial expression transfer and reenactment are crucial for applications like photo editing, virtual reality, and even creating synthetic media. However, existing methods often struggle with a few key issues:
- Geometry-based methods: These rely on fitting 3D models or tracking keypoints, which typically require video input and can lead to unrealistic results for hidden facial regions (like teeth) or when appearances differ significantly.
- Data-driven methods: These often require large, paired datasets (e.g., the same person with different expressions), which are difficult to obtain. They can also be identity-specific, meaning a new model needs to be trained for each individual, limiting scalability.
- Lack of disentanglement: Many methods struggle to separate facial appearance (like identity, age, gender) from facial expression, leading to artifacts or unwanted changes.
The authors aim to overcome these limitations by developing a method that works on single images, is identity-agnostic, and can effectively disentangle and transfer expressions.
Methods
The core of their approach lies in leveraging the StyleGAN architecture. Here's a breakdown:
- Face Detection and Normalization: Standard face detection and landmark extraction are used to crop and align the input face images, preparing them for StyleGAN.
- Style Inference: This is a key innovation. Instead of using StyleGAN to generate images, they reverse the process. Given a normalized face image, they use an optimization procedure to infer its corresponding "style vector" in StyleGAN's latent space. This style vector is hierarchical, meaning different parts of it encode different facial attributes (e.g., hair color, pose, expression). The optimization uses a perceptual loss (based on VGG features) to ensure the generated image from the inferred style vector closely matches the input image.
- Style Fuse and Regenerate: Once style vectors ($s_1$ for the target identity and $s_2$ for the source expression) are inferred, they are fused. The authors propose a linear combination scheme where the style vector for the new face ($s_0$) is a mix of $s_1$ and $s_2$. Crucially, they constrain this fusion to be an integer linear programming problem by assuming that specific layers of the style vector control expression. By selectively replacing certain layers of $s_1$ with those from $s_2$, they generate a new image ($I_0$) that combines the appearance of the first image with the expression of the second.
- Warp and Blend: The regenerated image $I_0$ is then warped to align with the original target face $I_1$ using facial landmarks. A mask is used to blend the warped image, ensuring a seamless integration and preserving the original identity's features while incorporating the new expression.
Datasets
The paper mentions using the following datasets for evaluation and illustration:
- FFHQ (Flickr-Faces-HQ)
- CelebA-HQ
- Random web images
The StyleGAN model used was pre-trained on the FFHQ dataset. The authors also used videos from [26] for quantitative evaluation, where performers mimic expressions from an instruction video.
Key Insights and Ideas
- StyleGAN as a Disentangler: The paper demonstrates that StyleGAN's latent style vectors inherently capture disentangled facial attributes, including expressions. By inferring these vectors, they can manipulate them.
- Reversing StyleGAN: The novel idea of inferring style vectors from existing images, rather than just generating new ones, opens up new avenues for image manipulation.
- Hierarchical Control: The hierarchical nature of StyleGAN's style vectors allows for fine-grained control. The authors found that specific layers (e.g., layer 4) are particularly influential for facial expressions.
- No Geometry Needed: By relying on StyleGAN's latent space and style vectors, the method bypasses the need for explicit 3D geometry, keypoints, or dense correspondence maps, making it more robust to unconstrained inputs.
- Scalability through Style Vectors: Since the method infers style vectors from images and uses a pre-trained StyleGAN, it can be applied to any identity without retraining, making it highly scalable for generating large datasets of expression-transferred faces.
Key Results
- Qualitative: The method produces visually plausible and realistic results, accurately transferring expressions from a source image to a target identity while preserving the target's appearance. It handles variations in skin color, pose, and gender effectively.
- Quantitative: When compared to prior methods like cGAN and direct transfer on video datasets, their approach achieved the smallest $l_1$ and $l_2$ errors and the highest SSIM (Structural Similarity Index Measure), outperforming them numerically.
- Efficiency: Processing a pair of images takes approximately 2 minutes, with most of the time spent on style vector inference.
Limitations and Future Work
- Failure Cases: The method struggles when a large portion of the face is occluded, failing to recover the complete face or generate meaningful expressions. Excessive shadows in the source identity can also lead to uncanny results.
- Future Work: The authors are interested in extending their framework to incorporate head pose reenactment for more realistic video generation. They also aim to improve time efficiency for real-time expression transfer.
Summary updated