Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

_pickle.UnpicklingError: invalid load key, '!'. #25

Open
LZH-0225 opened this issue Aug 4, 2022 · 3 comments
Open

_pickle.UnpicklingError: invalid load key, '!'. #25

LZH-0225 opened this issue Aug 4, 2022 · 3 comments

Comments

@LZH-0225
Copy link

LZH-0225 commented Aug 4, 2022

Using cuda for inference.
(80, 2612)
Length of mel chunks: 813
  0%|                                                                                             | 0/7 [00:00<?, ?it/s]Reading video frames from start...
  0%|                                                                                             | 0/7 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "inference.py", line 355, in <module>
    main()
  File "inference.py", line 292, in main
    for i, (img_batch, mel_batch, frames, coords) in enumerate(tqdm(gen,
  File "/home/lizhaohui/miniconda3/envs/wav2lip/lib/python3.8/site-packages/tqdm/std.py", line 1195, in __iter__
    for obj in iterable:
  File "inference.py", line 156, in datagen
    face, coords = face_detect([frame_to_save])[0]
  File "inference.py", line 93, in face_detect
    detector = face_detection.FaceAlignment(face_detection.LandmarksType._2D,
  File "/home/lizhaohui/wav2lip-hq/face_detection/api.py", line 62, in __init__
    self.face_detector = face_detector_module.FaceDetector(device=device, verbose=verbose)
  File "/home/lizhaohui/wav2lip-hq/face_detection/detection/sfd/sfd_detector.py", line 24, in __init__
    model_weights = torch.load(path_to_detector)
  File "/home/lizhaohui/miniconda3/envs/wav2lip/lib/python3.8/site-packages/torch/serialization.py", line 713, in load
    return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
  File "/home/lizhaohui/miniconda3/envs/wav2lip/lib/python3.8/site-packages/torch/serialization.py", line 920, in _legacy_load
    magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '!'.

The above error occurred in my operation

@wsx958191
Copy link

hello, I have also encountered this problem. How can I solve this problem ?

@LZH-0225
Copy link
Author

hello, I have also encountered this problem. How can I solve this problem ?

I didn't solve it.
The paddeGAN wav2lip I use now.
https://github.com/PaddlePaddle/PaddleGAN

@wsx958191
Copy link

Thank you very much for your reply. It seems that padlegan is not effective. Can you add wechat for communication? wsx958191331

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants