Zejun-Yang/AniPortrait sits at 5.0k stars on GitHub, written primarily in Python. AniPortrait: Audio-Driven Synthesis of Photorealistic Portrait Animation
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
AniPortrait: Audio-Driven Synthesis of Photorealistic Portrait Animations
Author: Huawei Wei, Zejun Yang, Zhisheng Wang
Organization: Tencent Games Zhiji, Tencent
Here we propose AniPortrait, a novel framework for generating high-quality animation driven by
audio and a reference portrait image. You can also provide a video to achieve face reenacment.
Pipeline
Updates / TODO List
✅ [2024/03/27] Now our paper is available on arXiv.
✅ [2024/03/27] Update the code to generate pose_temp.npy for head pose control.
✅ [2024/04/02] Update a new pose retarget strategy for vid2vid. Now we support substantial pose difference between ref_image and source video.
✅ [2024/04/03] We release our Gradio demo on HuggingFace Spaces (thanks to the HF team for their free GPU support)!
✅ [2024/04/07] Update a frame interpolation module to accelerate the inference process. Now you can add -acc in inference commands to get a faster video generation.
✅ [2024/04/21] We have released the audio2pose model and pre-trained weight for audio2video. Please update the code and download the weight file to experience.
Various Generated Videos
Self driven
Face reenacment
Video Source: 鹿火CAVY from bilibili
Audio driven
Installation
Build environment
We recommend a python version >=3.10 and cuda version =11.7. Then build environment as follows:
pip install -r requirements.txt
Download weights
All the weights should be placed under the ./pretrained_weights direcotry. You can download weights manually as follows:
Download our trained weights, which include the following parts: denoising_unet.pth, reference_unet.pth, pose_guider.pth, motion_module.pth, audio2mesh.pt, audio2pose.pt and film_net_fp16.pt. You can also download from wisemodel.
Download pretrained weight of based models and other components:
StableDiffusion V1.5
sd-vae-ft-mse
image_encoder
wav2vec2-base-960h
Finally, these weights should be orgnized as follows:
Note: If you have installed some of the pretrained models, such as StableDiffusion V1.5, you can specify their paths in the config file (e.g. ./config/prompts/animation.yaml).
Gradio Web UI
You can try out our web demo by the following command. We alse provide online demo in Huggingface Spaces.
python -m scripts.app
Inference
Kindly note that you can set -L to the desired number of generating frames in the command, for example, -L 300.
Acceleration method: If it takes long time to generate a video, you can download film_net_fp16.pt and put it under the ./pretrained_weights direcotry. Then add -acc in the command.
Here are the cli commands for running inference scripts:
You can refer the format of animation.yaml to add your own reference images or pose videos. To convert the raw video into a pose video (keypoint sequence), you can run with the following command:
We first thank the authors of EMO, and part of the images and audios in our demos are from EMO. Additionally, we would like to thank the contributors to the Moore-AnimateAnyone, majic-animate, animatediff and Open-AnimateAnyone repositories, for their open research and exploration.
Citation
@misc{wei2024aniportrait,
title={AniPortrait: Audio-Driven Synthesis of Photorealistic Portrait Animations},
author={Huawei Wei and Zejun Yang and Zhisheng Wang},
year={2024},
eprint={2403.17694},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
How active is development on Zejun-Yang/AniPortrait?
The most recent commit recorded on Zejun-Yang/AniPortrait was 2.1 years ago, based on the GitHub push timestamp. The repository has 613 forks — one of the better signals of community interest.
How many stars does Zejun-Yang/AniPortrait have?
Zejun-Yang/AniPortrait has 5.0k GitHub stars — refresh the page for the live number, or check github.com/Zejun-Yang/AniPortrait. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is Zejun-Yang/AniPortrait open source?
Yes — Zejun-Yang/AniPortrait ships under the Apache-2.0 license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/Zejun-Yang/AniPortrait.
What is Zejun-Yang/AniPortrait?
Zejun-Yang/AniPortrait (Zejun-Yang/AniPortrait) is a Python project on GitHub. From the project's own README: AniPortrait: Audio-Driven Synthesis of Photorealistic Portrait Animation
Where do I read more about Zejun-Yang/AniPortrait?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/Zejun-Yang/AniPortrait is the definitive source.
Read full README in the tab above.
Want a second opinion on AniPortrait?
Ask an AI that can read this page — one click and you get its take on AniPortrait.