前往 WaytoAGI 飞书知识库 · 1 亿+ 次访问的开源 AI 知识库 →
通往 AGI 之路 WaytoAGI

社区问答存档

stable diff

以下是关于 Stable Diffusion 的相关信息:

  • 中文大模型基准测评 2023 年度报告中未直接提及 Stable Diffusion 的相关内容。
  • 有关于 Stable Diffusion 安装过程中常见报错解决方法的教程:
    • 目录不正确报错:(E:\ai\stable-diffusion-webui\automatic)E:\ai\stable-diffusion-webui>webui-user.bat 、fatal:not a git repository(or any of the parent directories):.git 、venv “E:\ai\stable-diffusion-webui\venv\Scripts\Python.exe” 、Python 3.10.10 | packaged by Anaconda,Inc.|(main,Mar 21 2023,18:39:17)[MSC v.1916 64 bit(AMD64)] 、Commit hash: 、Installing requirements for Web UI 、Launching Web UI with arguments:–xformers 、Loading weights[fe4efff1e1]from E:\ai\stable-diffusion-webui\models\Stable-diffusion\Model.ckpt 、Creating model from config:E:\ai\stable-diffusion-webui\configs\v1-inference.yaml 、LatentDiffusion:Running in eps-prediction mode 、DiffusionWrapper has 859.52 M params. 、Applying xformers cross attention optimization. 、Textual inversion embeddings loaded(0): 、Model loaded in 4.9s(load weights from disk:1.7s,create model:0.4s,apply weights to model:0.5s,apply half():0.7s,move model to device:0.7s,load textual inversion embeddings:0.9s). 、Traceback(most recent call last):
    • 显存不足报错:File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”,line 664,in _apply 、param_applied = fn(param) 、File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”,line 987,in convert 、return t.to(device,dtype if t.is_floating_point()or t.is_complex()else None,non_blocking) 、torch.cuda.OutOfMemoryError:CUDA out of memory.Tried to allocate 20.00 MiB(GPU 0; 2.00 GiB total capacity; 1.66 GiB already allocated; 0 bytes free; 1.71 GiB reserved in total by PyTorch)If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF 、Stable diffusion model failed to load,exiting 、请按任意键继续。 。解决方法包括换个好一些的显卡(至少英伟达 2060 以上),或者开启低显存模式(在 stable-diffusion-webui 文件夹下找到 webui-user.bat,用文本或代码编辑器打开该文件夹)。