Zz-ww / SadTalker-Video-Lip-Sync

本项目基于SadTalkers实现视频唇形合成的Wav2lip。通过以视频文件方式进行语音驱动生成唇形,设置面部区域可配置的增强方式进行合成唇形(人脸)区域画面增强,提高生成唇形的清晰度。使用DAIN 插帧的DL算法对生成视频进行补帧,补充帧间合成唇形的动作过渡,使合成的唇形更为流畅、真实以及自然。
1.74k stars 295 forks source link

Why inferencing are this error? how to resolve it. #26

Open waveboy800 opened 1 year ago

waveboy800 commented 1 year ago

Traceback (most recent call last): File "G:\dev\SadTalker-Video-Lip-Sync-master\inference.py", line 123, in main(args) File "G:\dev\SadTalker-Video-Lip-Sync-master\inference.py", line 58, in main restorer_model = GFPGANer(model_path='checkpoints/GFPGANv1.3.pth', upscale=1, arch='clean', File "G:\dev\SadTalker-Video-Lip-Sync-master\third_part\GFPGAN\gfpgan\utils.py", line 76, in init self.face_helper = FaceRestoreHelper( File "E:\anaconda\envs\sadtalker\lib\site-packages\facexlib\utils\face_restoration_helper.py", line 99, in init self.face_det = init_detection_model(det_model, half=False, device=self.device, model_rootpath=model_rootpath) File "E:\anaconda\envs\sadtalker\lib\site-packages\facexlib\detection__init__.py", line 22, in init_detection_model load_net = torch.load(model_path, map_location=lambda storage, loc: storage) File "E:\anaconda\envs\sadtalker\lib\site-packages\torch\serialization.py", line 713, in load return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args) File "E:\anaconda\envs\sadtalker\lib\site-packages\torch\serialization.py", line 938, in _legacy_load typed_storage._storage._set_from_file( RuntimeError: unexpected EOF, expected 333577 more bytes. The file might be corrupted.

c8241998 commented 1 year ago

you should download a complete checkpoint