System Requirements and Environment Setup
1. Install Required Python Libraries
Run the following command to install the necessary Python libraries:
pip install -r requirements.txt
2. Download Pre-trained Weight Files
-
StableDiffusion V1.5
-
sd-vae-ft-mse
-
image_encoder
-
wav2vec2-base-960h
Model Usage and Command Line Tools
1. Self-Driven Animation
Specify the animation configuration file and use the -acc parameter to accelerate video generation. The command is as follows:
python -m scripts.pose2vid --config ./configs/prompts/animation.yaml -W 512 -H 512 -acc
2. Facial Reproduction
Add source facial video and reference image, and generate facial animation using the following command:
python -m scripts.vid2vid --config ./configs/prompts/animation_facereenac.yaml -W 512 -H 512 -acc
3. Audio-Driven Animation
After adding audio and reference images in the configuration file, run the following command to generate audio-driven video animation:
python -m scripts.audio2vid --config ./configs/prompts/animation_audio.yaml -W 512 -H 512 -acc
Online Demo and Gradio Interface
Users can also experience the web demo of AniPortrait through the Gradio interface on HuggingFace Spaces. Run the following command to start the local demo:
python -m scripts.app
With AniPortrait, users can easily generate high-quality animations, enhancing not only the visual experience but also significantly improving interactivity and realism.
ShanZha’s Experience

Download Link: https://www.songshuhezi.com/index_open/aniportrait.html

I am an AI entrepreneur proficient in various AI tools. Through AI tools, I achieved a fan growth of over 200,000 in just three months. I represented my team in several innovative entrepreneurship competitions, where we won second place with our outstanding AI project in the innovation and entrepreneurship competition held jointly in Chengdu and Chongqing.

-
AI Tool Review – BrushNet: Local Repainting Tool
-
Surname Avatars: Zhang, Wang, Chen, Zhao, Huang, Yang, Peng, Zhu, Cheng, Zheng, He, Xiao, Pan, Tang, Du, Wu, Qian, Qin, Lin, Wei, Chang, Yue, Jin, Jiang, Tong, Lei, Jia, …
-
AI Tool Review – so-vits-svc: Achieving AI Song Cover Freedom