Disco Diffusion:PytorchStreamReader 读取 zip 存档失败:找不到中央目录

Disco Diffusion: PytorchStreamReader failed reading zip archive: failed finding central directory

我正在尝试 运行 Disco Diffusion v5 基本上使用默认设置,但在尝试创建图像时出现此错误。有谁知道如何解决这个问题?

Starting Run: Horse 02(0) at frame 0

Prepping model...

RuntimeError                              Traceback (most recent call last)
<ipython-input-20-da8a92ac51ae> in <module>()
    148 print('Prepping model...')
    149 model, diffusion = create_model_and_diffusion(**model_config)
--> 150 model.load_state_dict(torch.load(f'{model_path}/{diffusion_model}.pt', map_location='cpu'))
    151 model.requires_grad_(False).eval().to(device)
    152 for name, param in model.named_parameters():

1 frames
/usr/local/lib/python3.7/dist-packages/torch/serialization.py in __init__(self, name_or_buffer)
    240 class _open_zipfile_reader(_opener):
    241     def __init__(self, name_or_buffer) -> None:
--> 242         super(_open_zipfile_reader, self).__init__(torch._C.PyTorchFileReader(name_or_buffer))
    243 
    244 

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

同样的问题。我已经使用了三个不同版本的模型和库存变量,只是 text/prompt 变化。

仍然失败 RuntimeError:PytorchStreamReader 读取 zip 存档失败:找不到中央目录

我的系统没有改变,但模型在过去两天停止了 运行。甚至将 Google Colab 升级到 Colab+,但并不开心。

我解决这个问题的方法是删除 google 驱动器中的文件夹 'AI' 并重新 运行 。 我猜这个问题可能是由于第一个 运行 没有正确下载的不完整 pre-traning 模型引起的,这导致无法下载正确版本的模型。