Rudrabha / Wav2Lip

This repository contains the codes of "A Lip Sync Expert Is All You Need for Speech to Lip Generation In the Wild", published at ACM Multimedia 2020. For HD commercial model, please try out Sync Labs
https://synclabs.so
9.8k stars 2.13k forks source link

ImportError: No module named 'cv2'" #23

Closed FarangoJones closed 3 years ago

FarangoJones commented 3 years ago

I tried the following command : "python inference.py --checkpoint_path checkpoints/wav2lip_gan.pth --face video.mp4 --audio audio.wav" but I'm getting this error :

"Traceback (most recent call last): File "inference.py", line 3, in import scipy, cv2, os, sys, argparse, audio ImportError: No module named 'cv2'"

What should I do to fix this ? I'm on python 3.5.6.

Rudrabha commented 3 years ago

pip install -r requirements.txt Please follow the steps given in the Readme thoroughly to run the code.