RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory
jingyuLin1999 opened this issue · 3 comments
when i use "python inference_colorization.py --input_path D:\CodeFormer\myinput", i meet this issue, how to solve this ?
[NOTE] The input face images should be aligned and cropped to a resolution of 512x512.
Traceback (most recent call last):
File "D:\software\CodeFormer\inference_colorization.py", line 51, in <module>
checkpoint = torch.load(ckpt_path)['params_ema']
File "D:\software\python3.10.11\lib\site-packages\torch\serialization.py", line 993, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
File "D:\software\python3.10.11\lib\site-packages\torch\serialization.py", line 447, in __init__
super().__init__(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory
python version 3.10.11
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
I'm also experiencing this issue, and it is due to incomplete model files downloaded with the script.
My solution was to download the release model files from OneDrive. Then overwrite the original folder.
Unfortunately, it still doesn't work
I'm also experiencing this issue, and it is due to incomplete model files downloaded with the script.
My codeformer.pth only downloaded 2%. I don't know how to re-download it and don't know if this solution will work.
if you resolve your issue, please give me some references. 3Q