stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: File "C:\Users\Tariq\stable-diffusion-webui\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 Press any key to continue . . .
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
After formating my pc I tried to install automatic1111 again an I had this error
Steps to reproduce the problem
venv "C:\Users\Tariq\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 685f9631b56ff8bd43bce24ff5ce0f9a0e9af490
Installing requirements for Web UI
Launching Web UI with arguments: --disable-safe-unpickle --lowvram
No module 'xformers'. Proceeding without it.
Loading config from: C:\Users\Tariq\stable-diffusion-webui\models\Stable-diffusion\768-v-ema.yaml
LatentDiffusion: Running in v-prediction mode
DiffusionWrapper has 865.91 M params.
Traceback (most recent call last):
File "C:\Users\Tariq\stable-diffusion-webui\launch.py", line 295, in
What should have happened?
Should start normally
Commit where the problem happens
webui-user
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
venv "C:\Users\Tariq\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 685f9631b56ff8bd43bce24ff5ce0f9a0e9af490
Installing requirements for Web UI
Launching Web UI with arguments: --disable-safe-unpickle --lowvram
No module 'xformers'. Proceeding without it.
Loading config from: C:\Users\Tariq\stable-diffusion-webui\models\Stable-diffusion\768-v-ema.yaml
LatentDiffusion: Running in v-prediction mode
DiffusionWrapper has 865.91 M params.
Traceback (most recent call last):
File "C:\Users\Tariq\stable-diffusion-webui\launch.py", line 295, in <module>
start()
File "C:\Users\Tariq\stable-diffusion-webui\launch.py", line 290, in start
webui.webui()
File "C:\Users\Tariq\stable-diffusion-webui\webui.py", line 132, in webui
initialize()
File "C:\Users\Tariq\stable-diffusion-webui\webui.py", line 62, in initialize
modules.sd_models.load_model()
File "C:\Users\Tariq\stable-diffusion-webui\modules\sd_models.py", line 308, in load_model
sd_model = instantiate_from_config(sd_config.model)
File "C:\Users\Tariq\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\util.py", line 79, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
File "C:\Users\Tariq\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 563, in __init__
self.instantiate_cond_stage(cond_stage_config)
File "C:\Users\Tariq\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 630, in instantiate_cond_stage
model = instantiate_from_config(config)
File "C:\Users\Tariq\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\util.py", line 79, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
File "C:\Users\Tariq\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\encoders\modules.py", line 147, in __init__
model, _, _ = open_clip.create_model_and_transforms(arch, device=torch.device('cpu'), pretrained=version)
File "C:\Users\Tariq\stable-diffusion-webui\venv\lib\site-packages\open_clip\factory.py", line 201, in create_model_and_transforms
model = create_model(
File "C:\Users\Tariq\stable-diffusion-webui\venv\lib\site-packages\open_clip\factory.py", line 165, in create_model
load_checkpoint(model, checkpoint_path)
File "C:\Users\Tariq\stable-diffusion-webui\venv\lib\site-packages\open_clip\factory.py", line 91, in load_checkpoint
state_dict = load_state_dict(checkpoint_path)
File "C:\Users\Tariq\stable-diffusion-webui\venv\lib\site-packages\open_clip\factory.py", line 80, in load_state_dict
checkpoint = torch.load(checkpoint_path, map_location=map_location)
File "C:\Users\Tariq\stable-diffusion-webui\modules\safe.py", line 106, in load
return load_with_extra(filename, *args, **kwargs)
File "C:\Users\Tariq\stable-diffusion-webui\modules\safe.py", line 151, in load_with_extra
return unsafe_torch_load(filename, *args, **kwargs)
File "C:\Users\Tariq\stable-diffusion-webui\venv\lib\site-packages\torch\serialization.py", line 705, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
File "C:\Users\Tariq\stable-diffusion-webui\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
Press any key to continue . . .
Additional information, context and logs
No response