MegaPortraits: One-shot Megapixel Neural Head Avatars

Nikita Drobyshev, Jenya Chelishev, Taras Khakhulin, Aleksei Ivakhnenko, Victor Lempitsky, Egor Zakharov

TL;DR

This paper introduces MegaPortraits, a novel system for generating high-resolution (megapixel) neural head avatars from a single input image. It tackles the challenging "cross-driving" scenario where the source and driving images have different appearances, achieving state-of-the-art results and enabling real-time avatar applications through a distilled student model.

What Problem Does This Paper Address?

Creating realistic and controllable digital avatars of human heads, often referred to as neural head avatars, has been a significant research area. A key challenge is "cross-reenactment" or "cross-driving," where the goal is to animate a source person's head with the motion and expression from a different person's head. Existing methods often struggle with this, leading to artifacts or a loss of identity, especially when aiming for high resolutions. Furthermore, most publicly available datasets for training these models are limited to medium resolutions (e.g., 512x512), making it difficult to achieve the megapixel quality desired for many applications. This paper aims to bridge this gap by developing a system that can generate megapixel avatars with high fidelity in cross-driving scenarios, even when the source and driver appearances differ significantly.

Methods

MegaPortraits employs a multi-stage approach:

  • Base Model (512x512): This stage focuses on achieving high-quality cross-reenactment at a medium resolution. It utilizes a novel architecture that represents appearance as volumetric features and motion as latent descriptors. A key innovation is a contrastive loss function designed to better disentangle appearance and motion representations, mitigating "appearance leakage" from the driver to the synthesized image. They also incorporate a specialized gaze loss for improved eye realism.
  • High-Resolution Model (1024x1024): To achieve megapixel resolution, they employ a two-stage training strategy. First, the medium-resolution base model is trained. Then, a separate image-to-image translation network (enhancer) is trained to upscale the output of the base model to megapixel resolution. This enhancer is trained on high-resolution image datasets and uses a combination of super-resolution and adversarial losses, including a cycle-consistency loss to maintain content.
  • Student Model (Distillation): For real-time applications, the authors distill the megapixel model into a lightweight student model. This student model is trained to mimic the output of the full teacher model but is optimized for speed and can be "locked" to a specific set of pre-defined identities, making it suitable for applications like video conferencing and preventing misuse for deepfakes.

Datasets

The paper utilizes several datasets:

  • VoxCeleb2: A large-scale dataset of talking head videos, used for training the base model at 256x256 and 512x512 resolutions.
  • VoxCeleb2HQ: A high-quality subset of VoxCeleb2, curated by the authors, used for training and evaluating the base model at 512x512.
  • FFHQ: A dataset of high-resolution face images, used for training the high-resolution enhancer model.
  • Proprietary Dataset: A private dataset of selfie videos and pictures, used for training the distilled student model.

Key Insights and Ideas

  • Disentanglement is Crucial for Cross-Driving: The paper highlights that effectively disentangling appearance and motion is paramount for successful cross-driving synthesis, especially at higher resolutions where simpler methods fail. Their contrastive loss is a key enabler here.
  • Two-Stage Training for High Resolution: Directly training megapixel avatars from scratch on video data is challenging due to dataset limitations. The proposed two-stage approach (medium-resolution base model + high-resolution enhancer) effectively leverages existing medium-resolution video data and high-resolution image data for super-resolution.
  • Distillation for Real-Time and Safety: Distilling a large, high-quality model into a smaller, faster one is essential for practical deployment. The student model's ability to be "identity-locked" is a significant step towards safer and more controlled avatar applications.
  • Gaze Loss Improves Realism: Incorporating a specialized gaze loss significantly enhances the naturalness of the generated avatars, particularly in the eye region.

Key Results

  • State-of-the-Art Cross-Reenactment: MegaPortraits outperforms existing methods like Face-V2V, FOMM, and HeadGAN in cross-reenactment scenarios across various metrics (FID, CSIM, user studies) at both 256x256 and 512x512 resolutions.
  • Megapixel Resolution Achieved: The system successfully generates avatars at 1024x1024 resolution, demonstrating superior high-frequency detail fidelity compared to baseline super-resolution methods.
  • Real-Time Performance: The distilled student model achieves real-time inference speeds (up to 130 FPS on a modern GPU) while closely matching the quality of the teacher model.
  • Improved Identity Preservation: The method shows better preservation of the source image's identity and appearance, even when the driving image has a substantially different look.

Limitations and Future Work

  • Limited Head Rotation: The training data primarily consists of near-frontal views, which limits the model's ability to generate high-quality avatars for extreme head rotations.
  • Lack of Shoulder Modeling: The current system does not model shoulder motion, which can lead to misalignment in self-reenactment scenarios when the background or shoulders are visible.
  • Temporal Flicker: Due to the use of static high-resolution images for training the enhancer, some temporal flicker can be observed in the generated videos.
  • Future Work: The authors suggest addressing the limitations of head rotation and shoulder modeling, potentially through architectural choices or specialized losses. They also aim to tackle temporal flicker for smoother video generation.

Summary updated

BibTeX
@inproceedings{drobyshev2022megaportraits,
  author = {Nikita Drobyshev and Jenya Chelishev and Taras Khakhulin and Aleksei Ivakhnenko and Victor Lempitsky and Egor Zakharov},
  title = {{MegaPortraits: One-shot Megapixel Neural Head Avatars}},
  booktitle = {ACM Multimedia},
  year = {2022},
  url = {https://openreview.net/forum?id=PQBHQS1HnOd},
}
Figure