Stable Diffusion 3.5 本地AI绘画教程:从安装到出图全流程
Stable Diffusion 3.5 是 Stability AI 推出的最新开源图像生成模型,包含 Medium(2.5B)、Large(8B)和 Turbo 三个版本。本文教你从零搭建本地AI绘画环境。
📊 版本对比
| 版本 | 参数量 | 显存需求 | 生成速度 |
|---|---|---|---|
| Medium | 2.5B | 8GB+ | ~10s |
| Large | 8B | 24GB+ | ~30s |
| Turbo | 2.5B | 8GB+ | ~2s |
🛠️ ComfyUI 部署
# 克隆 ComfyUI
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
# 安装依赖
pip install -r requirements.txt
# 下载 SD3.5 模型放到 models/checkpoints/
# 从 HuggingFace 下载 sd3.5_medium.safetensors
# 启动
python main.py --listen
✍️ 提示词技巧
# 正向提示词模板
prompt = """masterpiece, best quality, 1girl,
long black hair, wearing white dress,
standing in cherry blossom garden,
soft lighting, depth of field,
cinematic composition"""
# 负向提示词
negative = "worst quality, low quality, blurry, deformed, ugly"
🎨 ControlNet 精确控制
ControlNet 让你通过线稿、深度图、姿态骨骼等精确控制生成内容:
| 控制类型 | 用途 |
|---|---|
| Canny 边缘 | 保留线稿结构 |
| Depth 深度 | 保持空间关系 |
| OpenPose 姿态 | 控制人物动作 |
| IP-Adapter | 参考图风格迁移 |
🎯 总结
SD3.5 开源免费,配合 ComfyUI 可以实现专业级的AI绘画工作流。Medium版本8GB显卡就能跑,Turbo版本2秒出图。掌握提示词+ControlNet,你就是AI画师。

发表回复