← 返回列表

Stable Diffusion完全指南:从入门到精通

发布日期:2026-04-06 来源:GoDaily 阅读:37
Stable Diffusion完全指南:从入门到精通

Warning: Undefined array key 0 in /www/wwwroot/web01.com/news_detail.php on line 18

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /www/wwwroot/web01.com/news_detail.php on line 18

Warning: Undefined array key 0 in /www/wwwroot/web01.com/news_detail.php on line 18

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /www/wwwroot/web01.com/news_detail.php on line 18

Warning: Undefined array key 0 in /www/wwwroot/web01.com/news_detail.php on line 18

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /www/wwwroot/web01.com/news_detail.php on line 18

Warning: Undefined array key 0 in /www/wwwroot/web01.com/news_detail.php on line 18

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /www/wwwroot/web01.com/news_detail.php on line 18

Warning: Undefined array key 0 in /www/wwwroot/web01.com/news_detail.php on line 18

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /www/wwwroot/web01.com/news_detail.php on line 18

Stable Diffusion是什么

Stable Diffusion是Stability AI公司发布的开源AI图像生成模型,于2022年8月发布。它可以在普通GPU上运行,无需高昂的云计算费用,迅速成为最受欢迎的AI绘画工具之一。

本地部署

系统要求

  • **显卡**:至少6GB显存(NVIDIA显卡最佳)
  • **内存**:16GB RAM
  • **存储**:至少20GB可用空间
  • **操作系统**:Windows 10/11、Linux、macOS

推荐配置

  • **显卡**:RTX 3060 12GB 或更高
  • **内存**:32GB RAM
  • **存储**:SSD 500GB

主流WebUI

AUTOMATIC1111 WebUI

最流行的Stable Diffusion图形界面,功能最全,插件丰富。

安装步骤: 1. 安装Python 3.10+ 2. 克隆GitHub仓库 3. 下载模型文件 4. 运行webui.bat或webui.sh

ComfyUI

节点式工作流,更适合高级用户和专业工作流程。

提示词语法

基本结构

``` [主体], [细节], [风格], [光照], [质量] ```

常用标签

  • **人物**:portrait, 1girl, man
  • **风格**:anime, photorealistic, oil painting
  • **质量**:highly detailed, 8k, masterpiece
  • **否定词**:lowres, bad anatomy, blurry

权重调节

  • 括号增加权重:(word)
  • 双括号大幅增加权重:((word))
  • 减少权重:[word]

常用模型

写实风格

  • Realistic Vision
  • Juggernaut XL
  • Deliberate

动漫风格

  • Anything V5
  • Counterfeit
  • MeinaMix

艺术风格

  • Stable Diffusion XL
  • Playground v2

ControlNet使用

ControlNet是一系列强大的控制插件,可以精确控制生成图像的:

1. Canny:边缘检测 2. Pose:姿态控制 3. Depth:深度图 4. Segmentation:语义分割 5. Lineart:线稿

生成参数

参数说明推荐值
Steps采样步数20-30
CFG Scale提示词引导7-12
Seed随机种子-1随机
Denoising去噪强度0.7

常见问题

Q: 生成速度慢? A: 检查CUDA是否正常工作,降低分辨率或batch count。

Q: 图像模糊? A: 增加步数,提高分辨率,使用高清修复。

Q: 出现多余的手或脸? A: 使用负面提示词,添加更多细节描述。

资源推荐

  • [Civitai](https://civitai.com) - 模型分享社区
  • [Stable Diffusion Web](https://stability.ai) - 官方在线版
  • [Midjourney对比](https://993899.com) - 了解其他工具