AniPortrait: Audio-Driven Synthesis of Photorealistic Portrait Animation

Huawei Wei, Zejun Yang, Zhisheng WangarXiv 2024

Abstract: In this study, we propose AniPortrait, a novel framework for generating high-quality animation driven by audio and a reference portrait image. Our methodology is divided into two stages. Initially, we extract 3D intermediate representations from audio and project them into a sequence of 2D facial landmarks. Subsequently, we employ a robust diffusion model, coupled with a motion module, to convert the landmark sequence into photorealistic and temporally consistent portrait animation. Experimental results demonstrate the superiority of AniPortrait in terms of facial naturalness, pose diversity, and visual quality, thereby offering an enhanced perceptual experience. Moreover, our methodology exhibits considerable potential in terms of flexibility and controllability, which can be effectively applied in areas such as facial motion editing or face reenactment. We release code and model weights at https://github.com/scutzzj/AniPortrait

Introduction

Creating "talking head" animations that appear authentic is a significant challenge in computer vision. It requires precise synchronization between speech-driven lip movements, nuanced facial expressions, and natural head poses. Existing approaches, primarily based on GANs or NeRFs, often suffer from limited generalization to unseen faces or complex backgrounds. Furthermore, they frequently exhibit temporal instability, resulting in jittery videos that break visual realism. AniPortrait addresses these issues by leveraging Diffusion Models to ensure high visual fidelity and smooth, temporally consistent motion.

Methodology

The AniPortrait framework is structured into two distinct modules: Audio2Lmk and Lmk2Video.

The AniPortrait framework consists of two stages: Audio2Lmk for landmark extraction and Lmk2Video for video generation.

1. Audio2Lmk (The "Brain")

This stage converts raw audio into a sequence of 2D facial landmarks. The process begins by extracting robust speech features using a pre-trained wav2vec2.0 model. Unlike direct 2D prediction methods, AniPortrait first predicts 3D facial meshes and 6D head poses. This 3D intermediate representation is crucial for flexibility, as it allows for easier editing of head angles and poses. These 3D representations are then projected into a sequence of 2D landmarks that represent the target motion.

2. Lmk2Video (The "Artist")

This stage renders the final video using the reference image and the generated landmark sequence. Built upon Stable Diffusion 1.5 and the AnimateAnyone architecture, it features a redesigned PoseGuider. To capture subtle lip movements, the authors implemented a multi-scale strategy that injects landmark features into multiple layers of the UNet. Additionally, the model incorporates landmarks from the original reference image to better understand the specific facial geometry of the subject before animation begins.

Datasets and Training

The framework was trained using several high-quality datasets:

  • Internal Dataset: Approximately one hour of high-quality speech from a single speaker for 3D mesh extraction training.
  • HDTF (High-Resolution Talking Face): Utilized for head pose prediction training.
  • VFHQ and CelebV-HQ: Large-scale facial video datasets used to train the diffusion-based video generation (Lmk2Video).
  • MediaPipe: Employed as the primary tool for extracting 3D meshes and 2D landmarks for training annotations.

Key Insights

  • 3D Control Layer: Utilizing 3D meshes as an intermediate step enables high controllability. Users can perform face reenactment by applying landmarks from a source video to a new image or manually edit 3D poses to change camera angles.
  • Enhanced Lip-Sync: To improve fine-grained mouth detail, AniPortrait differentiates upper and lower lips with distinct colors during landmark rendering, making the model more sensitive to mouth shapes.
  • Multi-Scale Injection: Injecting landmark features at multiple scales across the network architecture is vital for maintaining identity while allowing for expressive movement.

Results

AniPortrait produces animations that are notably more stable and realistic than previous state-of-the-art models. The diffusion backbone ensures that output resolution and texture remain consistent with the reference image.

AniPortrait demonstrates high-quality results across various modes, including audio-driven animation, self-driven motion, and face reenactment for both real and stylized characters.

The system demonstrates three distinct operational modes:

  1. Audio-Driven: Generates animation from audio and a single reference image.
  2. Self-Driven: Uses motion from a source video to animate a reference image.
  3. Face Reenactment: Extracts landmarks from one individual and applies them to another, maintaining the target's identity.

Conclusion

While AniPortrait sets a new standard for portrait animation, some limitations remain. Facial expressions can occasionally feel unnatural, a persistent challenge in 3D-based synthesis. Furthermore, the acquisition of large-scale 3D facial data is resource-intensive. Future research may explore predicting video directly from audio to achieve even more fluid results, potentially bypassing intermediate 3D representations.

Summary updated

BibTeX
@misc{wei2024aniportrait,
  author = {Huawei Wei and Zejun Yang and Zhisheng Wang},
  title = {{AniPortrait: Audio-Driven Synthesis of Photorealistic Portrait Animation}},
  year = {2024},
  eprint = {2403.17694},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.17694},
}
Figure