以下是在CentOS上顺利安装Stable Diffusion的步骤:
sudo yum update -y。python3-devel、cmake、protobuf、rust等库。wget -q https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh,赋予执行权限并运行chmod +x webui.sh,./webui.sh。echo "export PATH=/usr/local/python3/bin:$PATH" >> ~/.bashrc等。pip install huggingface_hub,再使用相关命令从Hugging Face下载,如snapshot_download(repo_id="stabilityai/stable-diffusion-2-1", cache_dir='/your_path/')。python launch.py或./webui.sh,然后在浏览器中访问http://127.0.0.1:7860。