GithubHelp home page GithubHelp logo

paopao1027 / diffused-heads-colab Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hoalarious/diffused-heads-colab

0.0 0.0 0.0 5.21 MB

Fork of Diffused Heads with colab

License: Other

Python 13.55% Jupyter Notebook 86.45%

diffused-heads-colab's Introduction

Diffused Heads

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.