CodeFormer icon indicating copy to clipboard operation
CodeFormer copied to clipboard

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

Open jingyuLin1999 opened this issue 1 year ago • 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

jingyuLin1999 avatar Jan 24 '24 14:01 jingyuLin1999