CodeFormer
CodeFormer copied to clipboard
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory
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