安装
-
创建环境
conda create -n stableDiffusion python=3.10.6
-
拉取脚本:
wget -q https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh
-
运行:
bash webui.sh -f
可以直接使用root
运行
运行
-
启动
python launch.py --listen --enable-insecure-extension-access
-
设置账号、密码启动
python launch.py --listen --enable-insecure-extension-access --gradio-auth username:password
-
使用python启动
python webui.py --xformers --listen --enable-insecure-extension-access
-
后台运行
./start.sh
nohup ./stableDiffusion.sh >> ./output.log 2>&1 &
- stableDiffusion.sh
# 开启代理 export http_proxy=http://127.0.0.1:7890/ export https_proxy=http://127.0.0.1:7890/ echo "代理开启,7890" python webui.py --xformers --listen --enable-insecure-extension-access echo "程序启动"
- 查看日志:
tail -f output.log
- 访问:Stable Diffusion-http://192.168.192.8:7860/
模型下载
- Civitai: The Home of Open-Source Generative AI
- Hugging Face – The AI community building the future.
- Stable Diffusion Models (cyberes.github.io)
- 出图效率倍增!47个高质量的 Stable Diffusion 常用模型推荐 - 知乎 (zhihu.com)
- (9 封私信 / 21 条消息) Stable diffusion 有哪些不错的模型? - 知乎 (zhihu.com)
Prompt 文档
问题
- 解决不能使用root运行 [Bug]: ERROR: This script must not be launched as root, aborting... · Issue #9093 · AUTOMATIC1111/stable-diffusion-webui (github.com)
- Ubuntu 20.04 安装 Stable Diffusionn_cannot locate tcmalloc (improves cpu memory usage)-CSDN博客 常见报错问题解决
文章评论