Skip to content

johntharian/sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sync

Getting Started

Clone the repository

Setting up backend

cd sync

cd server

wget "https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth" -O "Wav2Lip/face_detection/detection/sfd/s3fd.pth"

Create a virtual env using conda with python version==3.6

conda create -n sync python=3.6

conda activate sync

Install the required libraries in the conda env

pip install librosa==0.7.0

pip install numpy==1.17.1

pip install opencv-contrib-python==4.2.0.34

pip install opencv-python==4.1.0.25

pip install torchvision==0.3.0

pip install tqdm==4.45.0

pip install numba==0.48

pip install resampy==0.3.1

These are required for running Wav2lip

pip install -r requirements.txt

Replace upload_dir with the path to the directory you want to use for uploading files

Download the weights from weights and paste in the server directory

Modify the checkpoint_path

Modify the command = f'cd /app/Wav2Lip && python inference.py --checkpoint_path "{checkpoint_path}" --face "{videof_path}" --audio "{audiof_path}"' with the correct path to Wav2Lip

The result will be stored at Wav2Lip/results/result_voice.mp4', so need to update res_path with the correct path. To start the server RUN ### uvicorn main:app --reload

Setting up frontend

cd frontend

npm i

To start the app

npm start

About

Lipsync videos using Wav2Lip

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published