소개
Code for paper 'Audio-Driven Emotional Video Portraits'.
창작 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalAudio-Driven Emotional Video Portraits [CVPR2021]
Xinya Ji, Hang Zhou, Kaisiyuan Wang, Wayne Wu, Chen Change Loy, Xun Cao, Feng Xu

Given an audio clip and a target video, our Emotional Video Portraits (EVP) approach is capable of generating emotion-controllable talking portraits and change the emotion of them smoothly by interpolating at the latent space.
Installation
We train and test based on Python3.6 and Pytorch. To install the dependencies run:
pip install -r requirements.txt
Testing
Download the pre-trained models and data under the following link: google-drive (we release results of two target person: M003 and M030), unzip the
test.zipand put the file in corresponding places.Step1 : audio2landmark
The emotion of predicted landmark motions can be manipulated by the emotion features (recommanded):
python audio2lm/test.py --config config/target_test.yaml --audio path/to/audio --condition feature --emo_feature path/to/featureor by the emotional audio of the target person:
python audio2lm/test.py --config config/target_test.yaml --audio path/to/audio --condition feature --emo_audio path/to/emo_audioThe results will be stored in
results/target.movStep2 : landmark2video
A parametric 3D face model and the corresponding fitting algorithm should be used here to regress the geometry, expression and pose parameters of the predicted landmarks and the target video. Here we release some parameters of the testing results.
lm2video/data/target/3DMM/3DMM:images and landmark positions of the videolm2video/data/target/3DMM/target_test:parameters of target's videolm2video/data/target/3DMM/target_test_pose:pose parameters of videolm2video/data/target/3DMM/test_results:parameters of predicted landmarksHere we use vid2vid to generate video from edgemaps:
Generate the testing data by running:
python lm2video/lm2map.pyand copy the results in
lm2video/results/tovid2vid/datasets/face/.Replace the
face_dataset.pyandbase_options.pyin vid2vid tolm2video/face_dataset.pyandlm2video/base_options.py, the 106 keypoint version.Copy
lm2video/data/target/latest_net_G0.pthtovid2vid/checkpoints/target/,lm2video/test_target.shtovid2vid/scripts/faceand run:bash ./scripts/face/test_target.sh
Training
Download the pre-trained models and data under the following link: google-drive (we release data of M030), unzip the
train.zipand put the file in corresponding places.Step1 : emotion_pretrain:
Generate the trainig data(MFCC) from the raw audio:
python emotion_pretrain/code/mfcc_preprocess.pyThe emotion classification for MFCC:
python emotion_pretrain/code/train.py
- Step2 : disentanglement
Use DTW to align the audio:
python disentanglement/dtw/MFCC_dtw.pyCross-reconstruction for disentanglement:
python disentanglement/code/train_content+cla.py
- Step3 : landmark
Generate the data for training:
python landmark/code/preprocess.pyTraining the Audio-to-Landmark module:
python landmark/code/train.py
Citation
@article{ji2021audio,
title={Audio-Driven Emotional Video Portraits},
author={Ji, Xinya and Zhou, Hang and Wang, Kaisiyuan and Wu, Wayne and Loy, Chen Change and Cao, Xun and Xu, Feng},
journal={arXiv preprint arXiv:2104.07452},
year={2021}
}
관련 프로젝트 살펴보기
불러오는 중…