Code Monkey home page Code Monkey logo

apb2face's Introduction

APB2Face โ€” Official PyTorch Implementation

Python 3.7 PyTorch 1.3.1 License MIT

Official pytorch implementation of the paper "APB2FACE: AUDIO-GUIDED FACE REENACTMENT WITH AUXILIARY POSE AND BLINK SIGNALS, ICASSP'20".

For any inquiries, please contact Jiangning Zhang at [email protected]

Using the Code

Requirements

This code has been developed under Python3.7, PyTorch 1.3.1 and CUDA 10.1 on Ubuntu 16.04.

# Install python3 packages
pip3 install -r requirements.txt

Inference

  • Download pretraind Audio-to-Landmark model for the person man1 to the path landmark2face/APB/man1_best.pth.
  • Download pretraind Landmark-to-Face model for the person man1 to the path landmark2face/checkpoints/man1_Res9/latest_net_G.pth
python3 test.py 

You can view the result in result/man1.avi

Training

  1. Train Audio-to-Landmark model.

    python3 audio2landmark/main.py
  2. Train Landmark-to-Face model.

    cd landmark2face
    sh experiments/train.sh

    you can watch the checkpoint in checkpoints/man1_Res9

  3. Do following operations before the test.

    copy audio2landmark/APBNet.py landmark2face/APB/APBNet.py  # if you modify APBNet.py
    copy audio2landmark/APBDataset.py landmark2face/APB/APBDataset.py  # if you modify APBDataset.py
    copy audio2landmark/checkpoints/man1-xxx/man1_best.pth landmark2face/APB/man1_best.pth

Datasets in the paper

We propose a new AnnVI dataset, you can download it from Google Drive or Baidu Cloud (Key:str3).

Citation

If you think this work is useful for your research, please consider citing:

@inproceedings{zhang2020apb2face,
  title={APB2FACE: Audio-Guided Face Reenactment with Auxiliary Pose and Blink Signals},
  author={Zhang, Jiangning and Liu, Liang and Xue, Zhucun and Liu, Yong},
  booktitle={ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)},
  pages={4402--4406},
  year={2020},
  organization={IEEE}
}

Acknowledgements

We thank for the source code from the great work pytorch-CycleGAN-and-pix2pix.

apb2face's People

Contributors

zhangzjn avatar

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.