mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-04-20 12:50:50 +00:00
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory #195
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Nicoxyy on GitHub (Jun 10, 2022).
(base) I:\AIchange\chaofen\GFPGAN>python inference_gfpgan.py -i inputs/whole_imgs -o results -v 1.3 -s 2
Traceback (most recent call last):
File "I:\AIchange\chaofen\GFPGAN\inference_gfpgan.py", line 155, in
main()
File "I:\AIchange\chaofen\GFPGAN\inference_gfpgan.py", line 69, in main
bg_upsampler = RealESRGANer(
File "i:\aichange\chaofen\real-esrgan\realesrgan\utils.py", line 56, in init
loadnet = torch.load(model_path, map_location=torch.device('cpu'))
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\serialization.py", line 705, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\serialization.py", line 243, in init
super(_open_zipfile_reader, self).init(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory