sd-wav2lip-uhq
sd-wav2lip-uhq copied to clipboard
RuntimeError: unexpected EOF, expected 45345 more bytes. The file might be corrupted.
Facial Repair Model There is nothing wrong with choosing codeformer. When GFPGAN is selected then an error is reported
error information:
[INFO] Loading the predictor... [INFO] Loading File... Face Restoration model: GFPGAN Traceback (most recent call last): File "E:\workplace\sd_webui_new\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict output = await app.get_blocks().process_api( File "E:\workplace\sd_webui_new\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api result = await self.call_function( File "E:\workplace\sd_webui_new\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function prediction = await anyio.to_thread.run_sync( File "E:\workplace\sd_webui_new\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "E:\workplace\sd_webui_new\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "E:\workplace\sd_webui_new\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run result = context.run(func, *args) File "E:\workplace\sd_webui_new\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper response = f(*args, **kwargs) File "E:\workplace\sd_webui_new\extensions\sd-wav2lip-uhq\scripts\ui.py", line 165, in generate return w2luhq.execute() File "E:\workplace\sd_webui_new\extensions\sd-wav2lip-uhq\scripts\wav2lip\wav2lip_uhq.py", line 177, in execute image_restored = modules.face_restoration.restore_faces(w2l_frame_to_restore) File "E:\workplace\sd_webui_new\modules\face_restoration.py", line 19, in restore_faces return face_restorer.restore(np_image) File "E:\workplace\sd_webui_new\modules\gfpgan_model.py", line 106, in restore return gfpgan_fix_faces(np_image) File "E:\workplace\sd_webui_new\modules\gfpgan_model.py", line 51, in gfpgan_fix_faces model = gfpgann() File "E:\workplace\sd_webui_new\modules\gfpgan_model.py", line 38, in gfpgann model = gfpgan_constructor(model_path=model_file, upscale=1, arch='clean', channel_multiplier=2, bg_upsampler=None, device=devices.device_gfpgan) File "E:\workplace\sd_webui_new\venv\lib\site-packages\gfpgan\utils.py", line 79, in init self.face_helper = FaceRestoreHelper( File "E:\workplace\sd_webui_new\venv\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:\workplace\sd_webui_new\venv\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:\workplace\sd_webui_new\modules\safe.py", line 108, in load return load_with_extra(filename, *args, extra_handler=global_extra_handler, **kwargs) File "E:\workplace\sd_webui_new\modules\safe.py", line 156, in load_with_extra return unsafe_torch_load(filename, *args, **kwargs) File "E:\workplace\sd_webui_new\venv\lib\site-packages\torch\serialization.py", line 1028, in load return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args) File "E:\workplace\sd_webui_new\venv\lib\site-packages\torch\serialization.py", line 1264, in _legacy_load typed_storage._untyped_storage._set_from_file( RuntimeError: unexpected EOF, expected 45345 more bytes. The file might be corrupted.
Depends on the configuration information:
pytorch 11.8 torch 2.1.0 transformers 4.30.2