stable-diffusion-webui (Stable Diffusion 网页界面)
165,288
Stars
31,155
Forks
1,240
Watchers
2,512
Open Issues
AGPL-3.0
许可证
Python
语言
2022-08-22
创建时间
2026-03-02
最近更新
项目能做什么
功能强大的 Stable Diffusion 浏览器端 Web UI 交互界面。
来源:基于仓库元数据
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
项目简介
Stable Diffusion web UI 是一个基于 Gradio 库实现的 Stable Diffusion 网页可视化操作界面。
核心功能
- 基础绘图模式:支持原生文生图(txt2img)与图生图(img2img)。
- 图像修复与扩展:支持向外绘制扩展(Outpainting)、局部重绘(Inpainting,兼容 RunwayML 专用重绘模型)与彩色涂鸦(Color Sketch)。
- 提示词(Prompt)增强与控制:
- 权重调节:支持如
((tuxedo))或(tuxedo:1.21)语法,可在选中文本后使用Ctrl+Up/Down(macOS 为Command+Up/Down)快捷调节。 - 多重提示词与编辑:支持组合提示词(Composable-Diffusion,使用大写
AND隔开并可加权重,如a cat :1.2 AND a dog);支持无 token 长度限制;支持反向提示词(Negative prompt)、提示词矩阵(Prompt Matrix)与生成中途切换词条的 Prompt Editing。 - 反推提示词:集成 CLIP interrogator 与针对二次元标签的 DeepDanbooru。
- 图像放大与面部修复:Extras 面板集成 GFPGAN、CodeFormer 面板修复,以及 RealESRGAN、ESRGAN、SwinIR、Swin2SR、LDSR 等多种超分辨率放大算法;支持 Highres Fix(高分辨率修复)。
- 模型与训练扩展:
- 支持 Textual Inversion(多向量嵌入)、Hypernetworks、Loras 及模型融合(Checkpoint Merger,最多合并 3 个模型),并提供独立的预览选取界面。
- 支持 Clip skip 与动态切换 VAE。
- 提供图像预处理与模型训练页面(Training tab)。
- 参数测试与对比:支持 X/Y/Z plot(多参数三维对比图)、Loopback(图生图循环处理)与变体(Variations)微调。
- 元数据与参数复原:生成参数自动写入 PNG(chunks)或 JPEG(EXIF);可将图片直接拖入 PNG info 面板或提示词框直接读取并复原参数。
- 硬件友好与性能优化:
- 支持 4GB 显存显卡运行(有反馈 2GB 亦可运行),支持 8GB/6GB 显存进行嵌入微调。
- 支持通过启动参数
--xformers显著提升特定显卡生成速度。 - 其他功能:内置 API 支持、自定义脚本(Custom scripts)、平铺无缝贴图(Tiling)、带预估时间的进度条及低显存实时预览。
适合谁用
此部分原文未说明,请查看原仓库。
安装步骤
README 原文仅提及: - 提供一键安装与运行脚本(需用户自行提前安装 Python 和 Git)。
详细安装步骤原文未包含,请查看原仓库。
配置说明
--xformers:添加到命令行启动参数中,可为特定显卡大幅提升运算速度。--allow-code:添加到命令行启动参数中,允许从 UI 界面运行任意 Python 代码。- UI 参数微调:支持通过文本配置文件修改界面元素的默认值、最大值、最小值和步长(step)。
其余详细配置参数原文未说明,请查看原仓库。
常见问题
此部分原文未说明,请查看原仓库。
原始 README 摘录(英文原文,节选前 3000 字符)
# Stable Diffusion web UI
A web interface for Stable Diffusion, implemented using Gradio library.

## Features
[Detailed feature showcase with images](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features):
- Original txt2img and img2img modes
- One click install and run script (but you still must install python and git)
- Outpainting
- Inpainting
- Color Sketch
- Prompt Matrix
- Stable Diffusion Upscale
- Attention, specify parts of text that the model should pay more attention to
- a man in a `((tuxedo))` - will pay more attention to tuxedo
- a man in a `(tuxedo:1.21)` - alternative syntax
- select text and press `Ctrl+Up` or `Ctrl+Down` (or `Command+Up` or `Command+Down` if you're on a MacOS) to automatically adjust attention to selected text (code contributed by anonymous user)
- Loopback, run img2img processing multiple times
- X/Y/Z plot, a way to draw a 3 dimensional plot of images with different parameters
- Textual Inversion
- have as many embeddings as you want and use any names you like for them
- use multiple embeddings with different numbers of vectors per token
- works with half precision floating point numbers
- train embeddings on 8GB (also reports of 6GB working)
- Extras tab with:
- GFPGAN, neural network that fixes faces
- CodeFormer, face restoration tool as an alternative to GFPGAN
- RealESRGAN, neural network upscaler
- ESRGAN, neural network upscaler with a lot of third party models
- SwinIR and Swin2SR ([see here](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/2092)), neural network upscalers
- LDSR, Latent diffusion super resolution upscaling
- Resizing aspect ratio options
- Sampling method selection
- Adjust sampler eta values (noise multiplier)
- More advanced noise setting options
- Interrupt processing at any time
- 4GB video card support (also reports of 2GB working)
- Correct seeds for batches
- Live prompt token length validation
- Generation parameters
- parameters you used to generate images are saved with that image
- in PNG chunks for PNG, in EXIF for JPEG
- can drag the image to PNG info tab to restore generation parameters and automatically copy them into UI
- can be disabled in settings
- drag and drop an image/text-parameters to promptbox
- Read Generation Parameters Button, loads parameters in promptbox to UI
- Settings page
- Running arbitrary python code from UI (must run with `--allow-code` to enable)
- Mouseover hints for most UI elements
- Possible to change defaults/mix/max/step values for UI elements via text config
- Tiling support, a checkbox to create images that can be tiled like textures
- Progress bar and live image generation preview
- Can use a separate neural network to produce previews with almost none VRAM or compute requirement
- Negative prompt, an extra text field that allows you to list what y
阅读完整原文
商业机会分析 规则生成(AI 未配置)
综合评分 51.5 分。该项目在“个人可实施性”维度得 60 分,“付费可能性”维度得 15.0 分,差异化空间 70.0 分(评分依据见评分卡)。
面向细分需求的二次开发产品
| 产品构想 | 基于 stable-diffusion-webui 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。 |
| 目标用户 | 该细分场景用户 |
| 难度/周期 | 中 · 2~6 周 |
| 收费模式 | 买断制 / 订阅制 / 广告 |
| 竞争风险 | 细分需求规模需验证 |
| 依据 | AI 推测:基于项目主题标签的判断 |
封装为在线小工具或 API 服务
| 产品构想 | 把项目最常用的一个功能做成网页小工具,靠流量变现或按量计费。 |
| 目标用户 | 搜索引擎带来的长尾用户 |
| 难度/周期 | 低 · 1~3 周 |
| 收费模式 | 免费引流 + 增值功能 / API 按量计费 |
| 竞争风险 | 同质化竞争,需做好 SEO |
| 依据 | AI 推测:基于技术栈与部署特征的判断 |
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| morluto/rea | 中文介绍暂未生成 Reverse engineer anything with agents, from app behavior dow |
450,531 | TypeScript |
| openclaw/openclaw | 中文介绍暂未生成 The AI that really does things. Any OS. Any Platform. The lo |
394,311 | TypeScript |
| obra/superpowers | 中文介绍暂未生成 An agentic skills framework & software development methodolo |
315,834 | Shell |
| NousResearch/hermes-agent | 中文介绍暂未生成 The agent that grows with you |
262,506 | Python |
| n8n-io/n8n | 中文介绍暂未生成 Fair-code workflow automation platform with native AI capabi |
210,056 | TypeScript |
| firecrawl/firecrawl | 中文介绍暂未生成 Supercharge your AI agents with data from the web and beyond |
200,618 | TypeScript |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2022-08-22,最近推送 2026-03-02,发布过 27 个 Release |
| 社区活跃 | Star 165,288 / Fork 31,155 / Issue 2,512(数据支持,可自行核实) |
| 许可证 | AGPL-3.0 商用需注意传染性条款 |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git cd stable-diffusion-webui # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。