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
10.19k stars 2.19k forks source link

inference error No module named face_detection.core #261

Closed ghost closed 3 years ago

ghost commented 3 years ago

I've been trying to run the inference.py to use the pre-trained model but i got this error: File "inference.py", line 7, in import torch, face_detection File "C:\wav2lip\face_detection__init__.py", line 1, in from .core import FaceDetector ModuleNotFoundError: No module named 'face_detection.core'

Tried to install face_detection using "pip install face_detection" but it upgrades torch and still doesn't work. Requirements are all fine, so i don't know what else to do.

ghost commented 3 years ago

If anyone else have the same problem, fixed it by changing "face_detection/init.py" file

ERROR - from .core import FaceDetector
FIXED - from .detection.core import FaceDetector
prajwalkr commented 3 years ago

I see, we did not encounter this problem in Linux, thanks for pointing it out.