Giter VIP home page Giter VIP logo

lip2speech's Introduction

Lip2Speech [PDF]

A pipeline for lip reading a silent speaking face in a video and generate speech for the lip-read content, i.e Lip to Speech Synthesis.

overview

Video Input Processed Input Speech Output

Architecture Overview

method

LRW

Alignment Plot Melspectogram Output

Usage

Demo

The pretrained model is available here [265.12 MB]

Download the pretrained model and place it inside savedmodels directory. To visulaize the results, we run demo.py.

python3 demo.py

Default arguments

  • dataset: LRW (10 Samples)
  • root: Datasets/SAMPLE_LRW
  • model_path: savedmodels/lip2speech_final.pth
  • encoding: voice

Evaluate

Evaluates the ESTOI score for the given Lip2Speech model. (Higer is better)

python3 evaluate.py --dataset LRW --root Datasets/LRW --model_path savedmodels/lip2speech_final.pth

Train

To train the model, we run train.py

python3 train.py --dataset LRW --root Datasets/LRW --finetune_model_path savedmodels/lip2speech_final.pth
  • finetune_model_path - Use as base model to finetune to dataset. (optional)

Acknowledgement

tacotron2

Citation

If you use this software in your work, please cite it using the following metadata.

@software{Millerdurai_Lip2Speech_2021,
author = {Millerdurai, Christen and Abdel Khaliq, Lotfy and Ulrich, Timon},
month = {8},
title = {{Lip2Speech}},
url = {https://github.com/Chris10M/Lip2Speech},
version = {1.0.0},
year = {2021}
}

lip2speech's People

Contributors

chris10m avatar lotfyhussein avatar mrkristen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lip2speech's Issues

How to train the model on Custom Dataset

Hello, I hope you are doing well. I want your help in training the model on our custom dataset, where we have taken videos from 15 speakers, speaking in Urdu. Its one second long video, where speaker is just speaking one word. In total I have 2700 videos

MelSpec2Audio not found anywhere on the internet

Hey Chris10M,
I can't seem to find MelSpec2Audio anywhere on the internet except for its single occurrence in evaluate.py file. Can you please guide me through this error?
Thank you

p.s.
error:
2023-03-21 11:20:10 | INFO | numexpr.utils | NumExpr defaulting to 2 threads.
Traceback (most recent call last):
File "/content/drive/MyDrive/Colab Notebooks/lip2speech/Lip2Speech-main/demo.py", line 9, in
from datasets import MelSpec2Audio
ImportError: cannot import name 'MelSpec2Audio' from 'datasets' (/usr/local/lib/python3.9/dist-packages/datasets/init.py)

Video Preprocessing

Hi,

Nice work!

Could you point me towards the code you use to crop the face and mouth from the LRW samples into the .npz files found at Datasets/SAMPLE_LRW ? I'd like to try it out with my own data

Thanks

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.