likes
comments
collection
share

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

作者站长头像
站长
· 阅读数 23

大家好,我是小鱼姐姐,近期使用Stable Diffusion比较多,积累整理了一些内容,得空分享给大家。如果你近期正好在关注AI绘画领域,可以看看哦。 本文不包含SD如何安装及使用的内容,比较适合已经解决了安装问题,在寻找合适的大模型及lora,或者想找一些绘画案例给自己的创作带来一些灵感的人。文章总共2000多字,且涉及大量图片,谨慎观看哈。下面正式开始。

Stable Diffusion简介

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

通俗的解释:

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

基础大模型推荐

模型网址推荐:

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

civitai.com/

最全的模型库:(适合有代码基础的同学使用)

huggingface.co/models

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

1、好看人物插画风:

说明:

civitai.com/models/1540…

优点:画人物特别好看

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

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

绘画示例:

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

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

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

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

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

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

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

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

参考教程链接:www.bilibili.com/video/BV1Sb…

VAE下载地址:huggingface.co/stabilityai…

如何使用:

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

下面是对比效果:

((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前:

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

设置VAE后:

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

2、二次元

说明:

civitai.com/models/9409…

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

这个是其他地方收集的这个模型的一些使用咒语,可以参考:

暂时无法在飞书文档外展示此内容

绘画示例:

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

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

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.

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

((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.

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

3、超真实风格

说明:

civitai.com/models/4823…

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

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

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

绘画示例:

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)

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

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

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

4、动画:

civitai.com/models/7371…

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

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

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

绘画示例:

提示词:(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

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

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

5、悬疑风/风景/插画

说明:

civitai.com/models/1119…

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

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

绘画示例:

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

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

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

提示词:

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

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

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

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

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

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

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

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

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

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

6、国风

说明:

civitai.com/models/1041…

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

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

示例:

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

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

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.

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

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

LORA简介及推荐

LoRA模型全称是:Low-Rank Adaptation of Large Language Models,通俗的可以理解为Stable-Diffusion中的一个插件,仅需要少量的数据就可以进行训练的一种模型。在生成图片时,LoRA模型会与大模型结合使用,从而实现对输出图片结果的调整。下面是我已经试验体验过的一些lora:(最后会有一组不同lora的使用效果对比)

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

civitai.com/models/1479…

试用总结:配合deliberate不错

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

2、表情lora

crazy-expressions:二次元

civitai.com/models/5891…

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

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

3、墨心:

civitai.com/models/1259…

试用总结:配合deliberate不错

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

4、小人书·连环画 xiaorenshu

civitai.com/models/1832…

试用总结:配合deliberate不错

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

5、二次元漫画风

[LoCon/LoRA] Airconditioner/空调 Style

civitai.com/models/2260…

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

6、城市景色:

civitai.com/models/1491…

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

7、线条:

civitai.com/models/1993…

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

8、科幻:

civitai.com/models/3048…

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

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

9、室内设计:

civitai.com/models/2811…

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

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

civitai.com/models/1322…

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

11、角色设计多角度:

适合设计角色charTurnbeta:

civitai.com/models/7252…

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

示例:

为了对比效果,我先用基础大模型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.

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

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

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

欢迎看到最后,如果觉得还不错,欢迎点赞收藏哈。后续有空会继续发controlnet的使用技巧、提示词的使用技巧等系列文章,适合初学者观看哈!