安装Stable-Diffusion报错

venv "C:\Users\zyb\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)]
Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
Installing requirements for Web UI
Launching Web UI with arguments: --lowvram --precision full --no-half --skip-torch-cuda-test
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
No module 'xformers'. Proceeding without it.
Loading weights [cc6cb27103] from C:\Users\zyb\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.ckpt
Creating model from config: C:\Users\zyb\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
Failed to create model quickly; will retry using slow method.
LatentDiffusion: Running in eps-prediction mode
loading stable diffusion model: RuntimeError
Traceback (most recent call last):
  File "C:\Users\zyb\stable-diffusion-webui\webui.py", line 139, in initialize
    modules.sd_models.load_model()
  File "C:\Users\zyb\stable-diffusion-webui\modules\sd_models.py", line 438, in load_model
    sd_model = instantiate_from_config(sd_config.model)
  File "C:\Users\zyb\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\util.py", line 89, in instantiate_from_config
    return get_obj_from_str(config["target"])(**config.get("params", dict()))
  File "C:\Users\zyb\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 550, in __init__
    super().__init__(conditioning_key=conditioning_key, *args, **kwargs)
  File "C:\Users\zyb\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 92, in __init__
    self.model = DiffusionWrapper(unet_config, conditioning_key)
  File "C:\Users\zyb\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 1314, in __init__
    self.diffusion_model = instantiate_from_config(diff_model_config)
  File "C:\Users\zyb\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\util.py", line 89, in instantiate_from_config
    return get_obj_from_str(config["target"])(**config.get("params", dict()))
  File "C:\Users\zyb\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\diffusionmodules\openaimodel.py", line 667, in __init__
    ) if not use_spatial_transformer else SpatialTransformer(  # always uses a self-attn
  File "C:\Users\zyb\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\attention.py", line 307, in __init__
    [BasicTransformerBlock(inner_dim, n_heads, d_head, dropout=dropout, context_dim=context_dim[d],
  File "C:\Users\zyb\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\attention.py", line 307, in 
    [BasicTransformerBlock(inner_dim, n_heads, d_head, dropout=dropout, context_dim=context_dim[d],
  File "C:\Users\zyb\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\attention.py", line 258, in __init__
    self.attn1 = attn_cls(query_dim=dim, heads=n_heads, dim_head=d_head, dropout=dropout,
  File "C:\Users\zyb\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\attention.py", line 155, in __init__
    self.to_k = nn.Linear(context_dim, inner_dim, bias=False)
  File "C:\Users\zyb\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\linear.py", line 96, in __init__
    self.weight = Parameter(torch.empty((out_features, in_features), **factory_kwargs))
RuntimeError: [enforce fail at ..\c10\core\impl\alloc_cpu.cpp:72] data. DefaultCPUAllocator: not enough memory: you tried to allocate 6553600 bytes.


Stable diffusion model failed to load, exiting

你可能感兴趣的:(人工智能,python,深度学习)