stable-diffusion-webui使用和配置
WHY
随着 stable-diffusion-SDXL-1.0
发布,text2img
的效果越来越好了,加上正好买了2080Ti 22G
,于是准备实施SD
硬件
硬件 | 型号 |
---|---|
显卡 | 2080Ti 22G (魔改) |
CPU | i7-10070 |
内存 | 32G |
安装 & 启动
当前我是在windows上安装,需要先安装python 3.10
1 | git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui |
执行后,会看到一些打印,当看到Running on local URL: http://0.0.0.0:7860
就算启动成功了,通过浏览器访问http://ip:7860
即可
1 | (venv) PS D:\projs\stable-diffusion-webui> .\webui-user.bat |
模型配置
配置SDXL 1.0
参考这个回复
- 下载模型
- 将模型放到
models/Stable-diffusion
目录 - 在
webui-user.bat
中的COMMANDLINE_ARGS=
后增加--no-half-vae
参数,例如1
set COMMANDLINE_ARGS=--listen --xformers --no-half-vae
注意:SDXL 1.0 需要32G内存
配置style
参考这个讨论
将style.csv放到代码根目录,然后重启项目即可
这样在style下拉菜单就能看到各种style
了
screenshot
例一:
prompt:1
photo of a male warrior, modelshoot style, (extremely detailed CG unity 8k wallpaper), full shot body photo of the most beautiful artwork in the world, medieval armor, professional majestic oil painting by Ed Blinkey, Atey Ghailan, Studio Ghibli, by Jeremy Mann, Greg Manchess, Antonio Moro, trending on ArtStation, trending on CGSociety, Intricate, High Detail, Sharp focus, dramatic, photorealistic painting art by midjourney and greg rutkowski
neg prompt
1
canvas frame, cartoon, 3d, ((disfigured)), ((bad art)), ((deformed)),((extra limbs)),((close up)),((b&w)), weird colors, blurry, (((duplicate))), ((morbid)), ((mutilated)), [out of frame], extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))), out of frame, ugly, extra limbs, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), mutated hands, (fused fingers), (too many fingers), (((long neck))), Photoshop, video game, ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, mutation, mutated, extra limbs, extra legs, extra arms, disfigured, deformed, cross-eye, body out of frame, blurry, bad art, bad anatomy, 3d render
TODO
- 收集一些
Prompt
和插件 - 调试
refine