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

KeyError: 'state_dict' #142

Closed titanlambda closed 3 years ago

titanlambda commented 3 years ago

While running inference.py this is the error:

Traceback (most recent call last): File "inference.py", line 279, in main() File "inference.py", line 251, in main model = load_model(args.checkpoint_path) File "inference.py", line 171, in load_model s = checkpoint["state_dict"] KeyError: 'state_dict'

wav2Lip_error
titanlambda commented 3 years ago

Requirements.txt librosa==0.7.0 numpy==1.17.1 opencv-contrib-python>=4.2.0.34 opencv-python==4.1.0.25 tensorflow==1.13.1 torch==1.1.0 torchvision==0.3.0 tqdm==4.45.0 numba==0.48

prajwalkr commented 3 years ago

Please check if the checkpoint file is not corrupted.

prajwalkr commented 3 years ago

Possible duplicate of https://github.com/Rudrabha/Wav2Lip/issues/141, please comment there if your issue is not resolved