在CentOS上部署Stable Diffusion需要满足一些硬件和软件要求。以下是一些关键的要求和步骤:
sudo yum update -y
sudo yum install -y git python3 python3-pip python3-devel gcc
sudo yum install git -y
cd /usr/local
wget https://www.python.org/ftp/python/3.10.6/Python-3.10.6.tgz
tar -zxvf Python-3.10.6.tgz
cd Python-3.10.6
./configure --prefix=/usr/local/python3 --with-openssl=/usr/local/openssl --with-openssl-rpathauto
make -j$(nproc)
sudo make install
sudo ln -s /usr/local/python3/bin/python3.10 /usr/bin/python3
sudo ln -s /usr/local/python3/bin/pip3.10 /usr/bin/pip3
pip3 install --upgrade pip
git clone https://github.com/CompVis/stable-diffusion.git
cd stable-diffusion
pip install -r requirements.txt
wget https://huggingface.co/CompVis/stable-diffusion-v1-5/resolve/main/dreambooth-v2.1.pt
python run.py --model dreambooth-v2.1.pt --port 8000
打开浏览器,访问 http://
来使用Stable Diffusion WebUI。
请注意,以上步骤是一个大致的指南,具体的安装过程可能会因系统配置和网络环境的不同而有所差异。如果在安装过程中遇到问题,可以参考相关的教程或在社区寻求帮助。