Stable Diffusion入门使用技巧及个人试用实例分享--大模型及lora篇

一、简介

Stable Diffusion 是由 CompVis、Stability AI 和 LAION 共同开发的一个文本转图像模型,它通过 LAION-5B 子集大量的 512x512 图文模型进行训练,我们只要简单的输入一段文本,Stable Diffusion 就可以迅速将其转换为图像,同样我们也可以置入图片或视频,配合文本对其进行处理。

通俗的解释:

StableDiffusion是一种基于扩散过程的图像生成模型,可以生成高质量、高分辨率的图像。它通过模拟扩散过程,将噪声图像逐渐转化为目标图像。这种模型具有较强的稳定性和可控性,可以生成具有多样化效果和良好视觉效果的图像。

二、基础大模型

模型网址推荐:

C站:有预览图、提示词,非常适合新手,可以通过查找自己喜欢的图片来选择合适的模型。

https://civitai.com/

最全的模型库:(适合有代码基础的同学使用)
这份完整版的模型资料包已经上传CSDN,朋友们如果需要可以微信扫描下方CSDN官方认证二维码免费领取【保证100%免费

在这里插入图片描述

个人常用模型体验分享:

下面推荐几个我在C站挖掘的目前最常用的几个模型:

1、好看人物插画风:

说明:

https://civitai.com/models/1540/unstableinkdream?modelVersionId=40626

优点:画人物特别好看

建议搭配参数:采样器:DPM++ 2M Karras 步数20

img

绘画示例:

1、人物角色设计:

提示词示例:((masterpiece)),((nsanely detailed)), ((intricate)),((high quality)) a little girl character, pop-art illustration style, simple,cute, 5 years old girl, full color, blue dress, blue shoes, long brown hair, blue hat, no outline, 3d

img

基于这个人物尝试制作一个4格漫画:

img

2、生成类似的背景+不同的人物:

提示词示例:((masterpiece)),((nsanely detailed)), ((HD Quality)),((exquisite face)) background: The background is a construction site, with skyscrapers under construction, feeling in 1990s shenzhen. character:There is only one 20-year-old smile asian female agent,must appear item:balloon

img

关于这个模型的一个小技巧:

这个模型其他都好,就是你们看我上面生成的图片人物都很精致很好看,但是就是颜色一直是灰蒙蒙的效果。多方查阅之后,找到一个方法,需要下载一个VAE,然后在设置里面勾选上即可:

参考教程链接:

https://www.bilibili.com/video/BV1Sb411X7c4/?vd_source=fdd967bddb96fd5ecdc8f9f53badb86b

VAE下载地址:

https://huggingface.co/stabilityai/sd-vae-ft-mse-original/tree/main

如何使用:

img

下面是对比效果:

((masterpiece)),((best quality))The style of a natural painter includes storybook illustrations, detailed plant illustrations, andlively tableaus. The kawaii girl sitting on a half cut watermelon.

设置VAE前:

img

设置VAE后:

img

2、二次元

说明:

https://civitai.com/models/9409/or-anything-v5

img

绘画示例:

1、角色设计:

((masterpiece)),((nsanely detailed)), ((intricate)),((high quality)) a little girl character, pop-art illustration style, simple,cute, 5 years old stading girl, full color, red dress, red shoes, long brown hair, red hat, no outline, 3d

img

2、生成故事插画:

((masterpiece)),((nsanely detailed)), ((intricate)),Best quality,anime,Draw a little girl [Zhang Ziyi | Lin Chiling] walking in the park, wearing a beautiful red dress, she showed a surprised expression,suddenly only a cute white kitten in the grass.

img

((masterpiece)),((nsanely detailed)), ((intricate)),((high quality)) 5 years old standing girl, simple,cute, full color, brown hair, yellow dress, black shoes.She stands in a magical garden surrounded by colored flowers . Her big eyes were full of curiosity and surprise.

img

3、超真实风格

说明:

https://civitai.com/models/4823/deliberate

使用较多,默认真实风格,且搭配很多lora效果都不错

建议搭配参数:DPM++ SDE Karras+step20

img

绘画示例:

1、生成类似的背景+不同的人物:

绘画提示词:((masterpiece)),((nsanely detailed)), ((HD Quality)),((exquisite face)) background: The background is a construction site, ((skyscrapers under construction)), feeling in 1990s shenzhen china. character:There is only one asian female agent,clear face,20-year-old,smile,must appear item:(an ice cream cone)

img

同样的提示词,加上lora之后,表情质感确实更好一点点

img
这份完整版的SD全套资料已经上传CSDN,朋友们如果需要可以微信扫描下方CSDN官方认证二维码免费领取【保证100%免费

在这里插入图片描述

4、动画:

https://civitai.com/models/7371?modelVersionId=46846

优点:搭配泡泡玛特lora效果非常棒

建议搭配参数:采样器:Euler a+step 28

img

绘画示例:

提示词:(masterpiece),(best quality),(ultra-detailed), (full body:1.2), wide angle,1girl,cute, smile, open mouth, flower, outdoors, running on the grass, blurry, brown hair, blush stickers, long sleeves, bangs, black hair, pink flower, (beautiful detailed face), (beautiful detailed eyes),music, beret, blush, short hair, surrounded by balloons, blue sky and white clouds, lora:blindbox_v1_mix:1

img

img

5、悬疑风/风景/插画

说明:

https://civitai.com/models/11193/illuminati-diffusion-v11

这个模型一开始是想用来做悬疑小说的封面的,后来发现画简笔画、插画居然也都还行!

建议搭配参数:采样器DPM++ 2M Karras +step 20

绘画示例:

1、玄幻风、悬疑风的小说封面、插图:

提示词:gray sky,white clouds,fantasstyle,fantasy,mountains,castle,canyons,fantasy,magic,4k.

img

提示词:

Grand and spectacular scene, big background, small characters, a misty back, fantasy world of cultivating immortals, swords, flowing clothes,4k

img

2、简笔头像:

(races of monotony Line drawing),(flat illustration),minimalism,headshot, line art.

A cute cartoon girl with short hair,stick figure,headshot,bold line illustration,((in the style of Black line drawn drawing)),((traces of monotony line drawing)), clean blue background

img

img

img

3、插画

((masterpiece)),((nsanely detailed)), ((HD Quality)),((best quality))kawaii girl sitting on a watermelon, in the style of nature painter, ai yazawa, xiaofei yue, storybook illustrations, detailed botanical illustrations, lively tableaus

img

There is a watermelon on the poster, giving people a refreshing and cool feeling. Watermelon can be cut into pieces to showcase its juicy red interior, surrounded by white water droplets. The background can be light blue to enhance a cool and refreshing atmosphere

img

6、国风

说明:

https://civitai.com/models/10415?modelVersionId=36644

建议搭配参数:采样器Euler a+step30

img

示例:

1、使用官方的这个提示词直出效果如下:

best quality, masterpiece, highres, 1girl,blush,(seductive smile:0.8),star-shaped pupils,china hanfu,hair ornament,necklace, jewelry,Beautiful face,upon_body, tyndall effect,photorealistic, dark studio, rim lighting, two tone lighting,(high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, volumetric lighting, candid, Photograph, high resolution, 4k, 8k, Bokeh

img

2、用lora里面的那个示例的人物的效果:

((masterpiece)),((nsanely detailed)), ((HD Quality)),((best quality))A young lovely girl, upper body shot, clear face,dressed in a beautiful traditional Hanfu. Her hair is neatly coiled into a bun, adorned with bobby pins and an elaborate tiara.

img

img

三、LORA

LoRA模型全称是:Low-Rank Adaptation of Large Language Models,通俗的可以理解为Stable-Diffusion中的一个插件,仅需要少量的数据就可以进行训练的一种模型。在生成图片时,LoRA模型会与大模型结合使用,从而实现对输出图片结果的调整。

1、适合插画/二次元adventures:

简介:

https://civitai.com/models/14792?modelVersionId=17424

试用总结:配合deliberate不错

img

2、表情lora

crazy-expressions:二次元

https://civitai.com/models/5891/crazy-expressions

试用总结:配合deliberate不错,出现正脸概率较大

img

3、墨心:

https://civitai.com/models/12597?modelVersionId=14856

试用总结:配合deliberate不错

img

4、小人书·连环画 xiaorenshu

https://civitai.com/models/18323?modelVersionId=25661

试用总结:配合deliberate不错

img

5、二次元漫画风

[LoCon/LoRA] Airconditioner/空调 Style

https://civitai.com/models/22607?modelVersionId=27334

img

6、城市景色:

https://civitai.com/models/14914?modelVersionId=17569

img

7、线条:

https://civitai.com/models/19932?modelVersionId=23670

img

8、科幻:

https://civitai.com/models/30480?modelVersionId=39888

试用总结:人物也可以加这个lora,配合deliberate不错

img

9、室内设计:

https://civitai.com/models/28112?modelVersionId=50722

img

10、亚洲男生:(适合用sd1.5基础大模型)

https://civitai.com/models/13220?modelVersionId=15581

img

11、角色设计多角度:

适合设计角色charTurnbeta:

https://civitai.com/models/7252/charturnerbeta-lora-experimental

img

示例:

为了对比效果,我先用基础大模型deliberate生成一个人物角色,然后搭配不同的lora看效果。

((masterpiece)),((nsanely detailed)), ((HD Quality)),((best quality))

A young lovely girl, full body shot, clear face,dressed in a beautiful traditional Hanfu. Her hair is neatly coiled into a bun, adorned with bobby pins and an elaborate tiara.

img

搭配不同的lora效果图参考如下:

img

这份完整版的SD全套资料已经上传CSDN,朋友们如果需要可以微信扫描下方CSDN官方认证二维码免费领取【保证100%免费

在这里插入图片描述

后续有空还会继续更新stable diffussion的使用技巧,如提示词的使用技巧、controlnet使用技巧等,如有兴趣,请关注或者点赞哦,感谢阅读。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值