stable-diffusion-webui的基础功能手动安装,了解代码结构、依赖、模型出处
阿里云国内75折 回扣 微信号:monov8 |
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6 |
前言
虽然当前有很多stable-diffusion-webui 的一键安装包但是不易于彻底理解该项目
主要介绍了手动安装 stable-diffusion-webui 基础功能的过程手动安装了解代码结构、依赖、模型出处
一、手动下载stable-diffusion-webui
cd stable-diffusion-webui
conda create -n sd-webui python=3.10.6 -y
conda activate sd-webui
运行 launch.py 的结果
python launch.py
问题1无法安装某些git项目
方法1.1 重新安装
python launch.py
方法1.2下载到服务器手动安装
python -m pip install ./open_clip-main
问题2 无法下载某些git项目
报错提示
方法2.1 手动下载到服务器指定位置(windows下名称会多个master)
这些项目位置在stable-diffusion-webui/repositories/
可能存在的问题代码版本与web-ui官方指定不一致
其中CodeFormer需要安装
cd repositories/CodeFormer
pip install -r requirements.txt
二、安装程序的主依赖
cd yourpath/stable-diffusion-webui/
pip install -r requirements.txt
三、模型下载
No checkpoints found. When searching for checkpoints, looked at:
- filestable-diffusion-webui/model.ckpt
- directory stable-diffusion-webui/models/Stable-diffusion
Can't run without a checkpoint. Find and place a .ckpt file into any of those locations. The program will exit.
迅雷下载NovalAI(动漫生成)模型
magnet:?xt=urn:btih:a20087e7807f28476dd7b0b2e0174981709d89cd&dn=novelaileakpt2&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A6969%2Fannounce&tr=http%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=https%3A%2F%2Ftracker.nanoha.org%3A443%2Fannounce
下载界面
启动
python webui.py --listen