AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
143.16k stars 26.98k forks source link

RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory --- What zip archive are we talking about ? #2575

Open greymogh opened 2 years ago

greymogh commented 2 years ago

Hello everyone,

I'm trying to lauch stable-diffusion-webui from few days, but impossible. I'm a newbie, I am on windows 10. I dowloaded model, stable-diffusion, python 3, git. There were some bugs until the one which bring me here to ask for help.

To correct first bugs I had to add to the "webui-user" (batch) in the line set COMMANDLINE_ARGS= "--skip-torch-cuda-test --disable-safe-unpickle --lowvram" ๐Ÿ‘

And now I arrived to the point where there is :

Installing requirements for Web UI Launching Web UI with arguments: --disable-safe-unpickle --lowvram Warning: caught exception 'Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx', memory monitor disabled LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. making attention of type 'vanilla' with 512 in_channels Working with z of shape (1, 4, 32, 32) = 4096 dimensions. making attention of type 'vanilla' with 512 in_channels Loading weights [7460a6fa] from C:\Users\DELL\Documents\stable-diffusion-webui-master\stable-diffusion-webui-master\models\Stable-diffusion\model.ckpt Traceback (most recent call last): File "C:\Users\DELL\Documents\stable-diffusion-webui-master\stable-diffusion-webui-master\launch.py", line 169, in start_webui() File "C:\Users\DELL\Documents\stable-diffusion-webui-master\stable-diffusion-webui-master\launch.py", line 164, in start_webui webui.webui() File "C:\Users\DELL\Documents\stable-diffusion-webui-master\stable-diffusion-webui-master\webui.py", line 92, in webui initialize() File "C:\Users\DELL\Documents\stable-diffusion-webui-master\stable-diffusion-webui-master\webui.py", line 85, in initialize shared.sd_model = modules.sd_models.load_model() File "C:\Users\DELL\Documents\stable-diffusion-webui-master\stable-diffusion-webui-master\modules\sd_models.py", line 182, in load_model load_model_weights(sd_model, checkpoint_info) File "C:\Users\DELL\Documents\stable-diffusion-webui-master\stable-diffusion-webui-master\modules\sd_models.py", line 137, in load_model_weights pl_sd = torch.load(checkpoint_file, map_location="cpu") File "C:\Users\DELL\Documents\stable-diffusion-webui-master\stable-diffusion-webui-master\modules\safe.py", line 106, in load return unsafe_torch_load(filename, *args, kwargs) File "C:\Users\DELL\Documents\stable-diffusion-webui-master\stable-diffusion-webui-master\venv\lib\site-packages\torch\serialization.py", line 705, in load with _open_zipfile_reader(opened_file) as opened_zipfile: File "C:\Users\DELL\Documents\stable-diffusion-webui-master\stable-diffusion-webui-master\venv\lib\site-packages\torch\serialization.py", line 242, in init super(_open_zipfile_reader, self).init(torch._C.PyTorchFileReader(name_or_buffer)) RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory**

I tried to re-download stable-diffusion, python 3, put codeformer.pth in models/codeformer (all this "solutions" were find on internet), but nothing. I checked on this site, on reddit and some others websites to get any solutions, nothing.

RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory : which zip archive and where are we talking about ?

Do you have any general idea for this issue please ?

The idea of someone experienced, even trivial, may be the right one, I will try the proposed solutions.

Thanks by advance for your time and your expertise !

notdanilo commented 1 year ago

I am also facing this issue

Embraer145 commented 1 year ago

same problem

bennapp commented 1 year ago

same

StriveForFuture commented 1 year ago

same ,i am use img2img, Interrogate clip ,it can't work