Stable Diffusion webui安装使用

参考:
https://stability.ai/blog/stable-diffusion-public-release
https://github.com/AUTOMATIC1111/stable-diffusion-webui
https://mp.weixin.qq.com/s/8czNX-pXyOeFDFhs2fo7HA

Stable Diffusion webui安装使用_第1张图片

1、安装(6g显存)

Stable Diffusion webui安装使用_第2张图片
1、conda创建python 3.10.6环境
conda create -n stable-diffusion python==python 3.10.6

也安装好pytorch cuda版本
***CUDA 11.3(本机环境)
conda install pytorch1.12.1 torchvision0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch

2、运行 python launch.py 使用过程报错clip、openclip或者安装慢可以自己去离线进行安装好
pip install open_clip_torch
其他github或者模型下载慢,也可以可以自己去离线进行下载好放到对应位置

3、运行效果
Stable Diffusion webui安装使用_第3张图片
Stable Diffusion webui安装使用_第4张图片

2、使用测试

1)提示词书写格式参考:

https://www.bilibili.com/video/BV12X4y1r7QB
https://www.learnprompt.pro/
Stable Diffusion webui安装使用_第5张图片
Stable Diffusion webui安装使用_第6张图片

SFW, 1girl, walking, forest, path, sun, sunshine, shining on body,
yellow skirt and white t-shirt, blonde hair, long hair, smiling, stretching arms, hands up, beautiful, happy,
trees, bush, (white flower:1.2), path, outdoor,
(masterpiece:1,2), best quality, masterpiece, highres, original, extremely detailed wallpaper, perfect lighting,(extremely detailed CG:1.2), drawing, paintbrush,

Negative prompt: NSFW, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((grayscale)), skin spots, acnes, skin blemishes, age spot, (ugly:1.331), (duplicate:1.331), (morbid:1.21), (mutilated:1.21), (tranny:1.331), mutated hands, (poorly drawn hands:1.5), blurry, (bad anatomy:1.21), (bad proportions:1.331), extra limbs, (disfigured:1.331), (missing arms:1.331), (extra legs:1.331), (fused fingers:1.61051), (too many fingers:1.61051), (unclear eyes:1.331), lowers, bad hands, missing fingers, extra digit,bad hands, missing fingers, (((extra arms and legs))),
Steps: 20, Sampler: DPM++ SDE Karras, CFG scale: 8.5, Seed: 1494637205, Size: 512x512, Model hash: 6ce0161689, Model: v1-5-pruned-emaonly, Version: v1.2.0

Stable Diffusion webui安装使用_第7张图片

下面两个使用的deliberate模型,对人像有不错效果在这里插入图片描述

A hyper realistic phot, solo, <lora:xiaodianxing:1>, 19-years-old Chinese gir, hide hand behind, hanfu, perfect skin,make happy expressions, gorgeous, pure, beautyfull detailed face and eyes, beautyfull intricacy clothing decorative pattern details, arms behind back, colorful,clear sharp focus, volumetric lighting, soft lights, cinematic lighting, cinematic effects, wallpaper, Megapixel, highres, Intricate details, ultra detailed,8k, masterpiece, best quality by wlop

Stable Diffusion webui安装使用_第8张图片

2)模型下载、案例分享参考

https://civitai.com/

Stable Diffusion webui安装使用_第9张图片
Stable Diffusion webui安装使用_第10张图片
Stable Diffusion webui安装使用_第11张图片
***以图生图
Stable Diffusion webui安装使用_第12张图片
Stable Diffusion webui安装使用_第13张图片

你可能感兴趣的:(深度学习,stable,diffusion,python,pytorch)