RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory #195

Open
opened 2026-01-29 21:45:34 +00:00 by claunia · 0 comments
Owner

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

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 <module> 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#195