MStypulkowski / diffused-heads

Official repository for Diffused Heads: Diffusion Models Beat GANs on Talking-Face Generation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Diffused Heads

Official repository for Diffused Heads: Diffusion Models Beat GANs on Talking-Face Generation.

Project | Paper | Demo

Setup

Python 3.x environment with ffmpeg is needed. The rest of the requirements can be installed using:

pip install -r requirements.txt

Sampling

Due to LRW license agreement, we are only able to provide a checkpoint of our model trained on CREMA.

The entire test set generated by our method can be downloaded from here.

  1. Download and unpack checkpoints (our model and pretrained audio encoder).

  2. Download and unpack preprocessed CREMA video and audio files.

  3. Specify paths and options in config_crema.yaml (check comments in the file).

  4. Run the script

python sample.py

Using your own data

Audio

You can use audio recordings of your choosing freely. The only requirements are 16 kHz audio rate and a single audio channel. Please note our model is able to generate videos up to 9 seconds long depending on the audio.

Identity frame

It is highly recommended to use a frame from the provided CREMA videos. This instance of the model was trained on clips with green background only. If you want to use your identity frame anyway, please follow this repo for face alignment. Additionally, you may want to try segmenting the person and replacing background to green.

Training

A training script will be uploaded in the future (ETA December 2023).

Citation

@article{stypulkowski2023diffused,
  title={Diffused heads: Diffusion models beat gans on talking-face generation},
  author={Stypu{\l}kowski, Micha{\l} and Vougioukas, Konstantinos and He, Sen and Zi{\k{e}}ba, Maciej and Petridis, Stavros and Pantic, Maja},
  journal={arXiv preprint arXiv:2301.03396},
  year={2023}
}

License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0

About

Official repository for Diffused Heads: Diffusion Models Beat GANs on Talking-Face Generation

License:Other


Languages

Language:Python 100.0%