| 配置 | 最低 | 推荐 |
|---|---|---|
| GPU | NVIDIA GTX 1060 6GB | RTX 3060 / 4070 / A100 |
| 显存 | 6GB | 12GB+ |
| RAM | 16GB | 32GB |
| 磁盘 | 50GB | 100GB+ SSD |
✅ 必须:NVIDIA GPU + CUDA
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webuiwebui-user.batsafetensors放到:
models/Stable-diffusion/浏览器打开:
http://127.0.0.1:7860sudo apt update
sudo apt install -y python3 python3-venv git wgetnvidia-smi安装 CUDA:
sudo apt install nvidia-cuda-toolkitgit clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt运行:
python launch.py --listen --port 7860ufw allow 7860访问:
http://服务器IP:7860curl -fsSL https://get.docker.com | shdocker run -it --gpus all \
-p 7860:7860 \
-v $(pwd)/models:/app/models \
stable-diffusion-webui| 平台 | 特点 |
|---|---|
| RunPod | 便宜、支持按小时 |
| Vast.ai | 超低价 GPU |
| AutoDL | 国内推荐 |
| Lambda Labs | 企业级 |
| Colab | 新手入门 |
stable-diffusion-webuipython launch.py --listen --port 7860 --gradio-auth user:passwordlocation / {
proxy_pass http://127.0.0.1:7860;
}✅ 支持:
API 启动:
python launch.py --api--medvram你可以告诉我:
✅ 是在 本地 / 云服务器 部署?
✅ GPU 型号?
✅ 是否需要 多人使用 / API / 商业部署?
我可以直接给你定制的 部署脚本 + 自动化方案。