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

Unable to load: wav2Lip.pth #441

Open arunasank opened 1 year ago

arunasank commented 1 year ago
Load checkpoint from: checkpoints/wav2lip.pth
  0% 0/5 [00:57<?, ?it/s]
Traceback (most recent call last):
  File "inference.py", line 280, in <module>
    main()
  File "inference.py", line 252, in main
    model = load_model(args.checkpoint_path)
  File "inference.py", line 171, in load_model
    checkpoint = _load(path)
  File "inference.py", line 162, in _load
    checkpoint = torch.load(checkpoint_path)
  File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 795, in load
    return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
  File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 1002, in _legacy_load
    magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '\x0d'.
sahilg06 commented 1 year ago

Try downloading wav2lip.pth again? it happened to me when the weights were not downloaded properly.

prajwalrajup commented 1 year ago

This worked for me thank you.