Home

Awesome

ReliTalk - Drive any portrait with only a single training video required

[Project Page] | [Paper] | [Demo Video]

This repository provides the official PyTorch implementation for the following paper:

ReliTalk: Relightable Talking Portrait Generation from a Single Video</br> Haonan Qiu, Zhaoxi Chen, Yuming Jiang, Hang Zhou, Wayne Wu, Xiangyu Fan, Lei Yang, and Ziwei Liu</br>

From MMLab@NTU affiliated with S-Lab, Nanyang Technological University and SenseTime Research.

Generated Samples

Relighting with rotated single lighting source.

<img src="docs/rotate_light.gif" width="92%" height="92%"/>

Relightable audio-driven talking portrait generation.

<img src="docs/demo.gif" width="92%" height="92%"/>

Datasets

Video Data: HDTF

Getting Started

Preparing Dataset

Prepare the dataset following intructions in ./preprocess/README.md.

Link the dataset folder to ./data/datasets. Link the experiment output folder to ./data/experiments.

Relighting

Train for rough normal

cd code
python scripts/exp_runner.py --conf ./confs/IMavatar_supervised_Obama.conf

Generate rough normal

python scripts/exp_runner.py --conf ./confs/IMavatar_supervised_Obama_test.conf --is_eval --checkpoint [epoch1]

Train for reflectance decomposition

mv ../data/experiments/Obama/IMavatar/Obama_train/eval/Obama_eval/epoch_[epoch1]/normal ../data/datasets/Obama/Obama/Obama_eval/

mv ../data/experiments/Obama/IMavatar/Obama_train/eval/Obama_train/epoch_[epoch1]/normal ../data/datasets/Obama/Obama/Obama_train/

mv ../data/experiments/Obama ../data/experiments/Obama_store

python scripts/exp_runner_relight.py --conf ./confs/IMavatar_supervised_Obama_light.conf

Inference for relighting

python scripts/exp_runner_relight.py --conf ./confs/IMavatar_supervised_Obama_test_light.conf --is_eval --checkpoint [epoch2]

We are still working on organizing the code of the remaining functions.

Citation

If you find this work useful for your research, please consider citing our paper:

@misc{qiu2023relitalk,
      title={ReliTalk: Relightable Talking Portrait Generation from a Single Video}, 
      author={Haonan Qiu and Zhaoxi Chen and Yuming Jiang and Hang Zhou and Xiangyu Fan and Lei Yang and Wayne Wu and Ziwei Liu},
      year={2023},
      eprint={2309.02434},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Acknowledgments

This code borrows heavily from IMavatar.