公司网站建设合同,专业的营销网站建设公司排名,杭州搜索引擎推广,网络营销推广目的下载源码#xff1a;
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui 一般方法就是#xff1a;
bash webui.sh
但是很遗憾这个国内很难成功#xff0c;而且很容易陷入困境#xff0c;因此需要下面方法
核心思想#xff1a;环境和源码分开安装
下…下载源码
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui 一般方法就是
bash webui.sh
但是很遗憾这个国内很难成功而且很容易陷入困境因此需要下面方法
核心思想环境和源码分开安装
下载一个anconda并安装由于过程简单这个省略然后
conda create -n sd python3.8 -y
conda activate sd
pip install torch2.0.0cu118 torchvision0.15.0cu118 --extra-index-url https://download.pytorch.org/whl/cu118
cd stable-diffusion-webui
pip install -r requirements.txt
后面缺什么就pip什么
mkdir repositories git clone https://github.com/Stability-AI/stablediffusion.git repositories/stable-diffusion-stability-ai git clone https://github.com/CompVis/taming-transformers.git repositories/taming-transformers git clone https://github.com/sczhou/CodeFormer.git repositories/CodeFormer git clone https://github.com/salesforce/BLIP.git repositories/BLIP
git clone https://github.com/crowsonkb/k-diffusion.git repositories/k-diffusion
(可选)安装GFPGAN面部修复 pip install githttps://github.com/TencentARC/GFPGAN.git --prefer-binary 可选安装CodeFormer所需的库面部修复 pip install -r repositories/CodeFormer/requirements.txt --prefer-binary
安装完跑起来
python webui.py
如果报什么错解决什么错就行了如果报错
no module named open_clip
安装pip install open_clip_torch即可
执行python webui.py后面操作会自动下载模型如果下载不了手动下载对应目录即可。