| 阶段 | 预计时间 |
|---|---|
| 系统准备 + 驱动安装 | 30 分钟~2 小时 |
| CUDA / cuDNN 配置 | 30 分钟~1 小时 |
| 下载 Stable Diffusion WebUI | 5~15 分钟 |
| 下载模型(checkpoint) | 10 分钟~数小时 |
| 依赖安装(Python / torch) | 20 分钟~1 小时 |
| 总计 | 1~4 小时(常见) |
⚠️ 如果你第一次配置 GPU 环境,建议预留 半天。
CentOS 的 NVIDIA 驱动安装比 Ubuntu 麻烦:
如果你已经装好:
nvidia-smi# 1. 安装依赖
yum install -y git wget
# 2. 安装 miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
# 3. 创建环境
conda create -n sd python=3.10 -y
conda activate sd
# 4. 克隆 WebUI
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
cd stable-diffusion-webui
# 5. 启动(会自动装依赖)
./webui.sh如果你有 NVIDIA 显卡 + 网络还行:
如果你愿意,可以告诉我:
我可以给你 一步一步针对你机器的安装方案,甚至帮你避开 CentOS 的坑。