GithubHelp home page GithubHelp logo

peterzhousz / av-sync Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tavihalperin/av-sync

0.0 1.0 0.0 6.98 MB

Python implementation of the paper " Dynamic Temporal Alignment of Speech to Lips"

Python 98.87% Shell 1.13%

av-sync's Introduction

AVSnap

This repository contains demo code for the paper Dynamic Temporal Alignment of Speech to Lips (Tavi Halperin, Ariel Efrat, and Shmuel Peleg). The repository reuses code from the demo for the audio-to-video synchronisation network (SyncNet).

The model and code can be used for research purposes under Creative Commons Attribution License. Please cite the papers below if you make use of the software.

Prerequisites

The following packages are required:

pytorch (0.4.0)
numpy (1.14.3)
scipy (1.0.1)
python_speech_features (0.6)
cuda (8.0)
ffmpeg (3.4.2)
tensorflow (1.2, 1.4)
scikit-image (0.14,1)
imageio (2.2.0)

The demo has been tested with the package versions shown above, but may also work on other versions.

Demo

First, download face detection and SyncNet models

sh download_model.sh

To run the demo, aligning audio from video2.avi to video from video1.avi

python run_pipeline.py data/video1.avi
python run_pipeline.py data/video2.avi
python align_audio.py data/video1.avi data/video2.avi --modality=all

The alignment will be computed based on both video and audio of the input videos. You can use only one of the modalities by changing the flag --modality to one of va/aa/av/vv, the first letter indicates which modality is used from the first input, and the last letter indicates which is used from the second.

Outputs:

data/out/video1_video2/modality_all.mp4

Publications

@inproceedings{halperin19dynamic,
  title     =   {Dynamic Temporal Alignment of Speech to Lips‏},
  author    =   {Halperin, Tavi and Ephrat, Ariel and Peleg, Shmuel},
  booktitle =   {2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)},
  year      =   {2019},
}

SyncNet is taken from:

@InProceedings{Chung16a,
  author       = "Chung, J.~S. and Zisserman, A.",
  title        = "Out of time: automated lip sync in the wild",
  booktitle    = "Workshop on Multi-view Lip-reading, ACCV",
  year         = "2016",
}

av-sync's People

Contributors

joonson avatar tavihalperin avatar

Watchers

paper2code - bot 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.