windows stable-diffusion-webui 一键运行,无需配置教程(仅供学习)
一.一步完成启动
直接上完整文件 包含模型,python环境 下载结束直接运行 (夸克网盘)(需要有N卡支持)
链接:https://pan.quark.cn/s/c126b8ba78b8?pwd=6fpw
提取码:6fpw
解压后
进入 Stable Diffusion WebUI 目录 解压目录所在位置 cd D:\notebook\AIGC\picture_ai\SDwebui\stable-diffusion-webui 激活python虚拟环境 .venv\Scripts\activate.bat 启动 WebUI 并使用暗色主题 webui.bat --theme dark
嫌启动麻烦的可以下一个 bat 处理命令
新建 文本文件 按照自己目录写入下列文件,保存后修改后缀txt 为 bat
@echo off REM 进入 Stable Diffusion WebUI 目录 cd /d D:\notebook\AIGC\picture_ai\SDwebui\stable-diffusion-webui REM 激活虚拟环境 call .venv\Scripts\activate.bat REM 启动 WebUI 并使用暗色主题 call webui.bat --theme dark REM 保持命令行窗口打开 pause 
,可以放到桌面,以后双击运行即可
二.自己git拉取配置运行
注意点:
选择位置 需要自己进行替换不然会出现报错 拉取仓库不存在

# stable_diffusion_repo = os.environ.get('STABLE_DIFFUSION_REPO', "https://github.com/Stability-AI/stablediffusion.git") stable_diffusion_repo = os.environ.get('STABLE_DIFFUSION_REPO', "https://github.com/joypaul162/Stability-AI-stablediffusion.git")
新建文件夹 ,
拉取git 镜像,git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
解压进入目录 ,
安装python环境,建议用 python uv管理环境安装
运行命令
后续慢慢出详细教程。
三.运行结果

示例:taxt to image 中文提示词不行毕竟模型不是国内的可以自己去试试,模型文件放入
stable-diffusion-webui\models\Stable-diffusion
正面提示词:Beautiful anime girl, facing forward, long silky hair, big sparkling eyes, flawless skin, delicate facial features, gentle smile, wearing a stylish modern outfit, elegant pose with one hand slightly raised, soft lighting, vibrant colors, high detail, clean line art, sharp focus, subtle blush on cheeks, flowing hair, ethereal and charming atmosphere, cinematic composition
负面提示词:blurry, low quality, out of focus, bad anatomy, extra limbs, mutated, distorted face, poorly drawn, ugly expression, deformed hands, messy hair, text, watermark, pixelated, overexposed, underexposed, cartoonish, exaggerated features

挺好玩的