参考:
https://stability.ai/blog/stable-diffusion-public-release
https://github.com/AUTOMATIC1111/stable-diffusion-webui
安装(6g显存)
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、运行效果
使用测试
提示词书写格式参考:
https://www.bilibili.com/video/BV12X4y1r7QB
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