安装
这里参考了https://github.com/AUTOMATIC1111/stable-diffusion-webui的官方说明。
这里依旧使用conda虚拟环境:(anaconda 为例)
wget https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh
chmod +x Anaconda3-5.3.0-Linux-x86_64.sh
./Anaconda3-5.3.0-Linux-x86_64.sh
建立虚拟环境:(这里只需python版本大于3.0)
conda create -n sd python=3.10
conda init bash #添加conda环境进入Bash configuration file
source /root/.bashrc #重新加载bash配置
conda activate sd# 加载虚拟环境
安装stable diffusion:
bash <(wget -qO- https://raw.githubusercon