Stable Diffusion 简介
Stable Diffusion 是由 Stability AI 共同开发的一个文本转图像模型,它通过子集大量的 512x512 图文模型进行训练。我们只要简单的输入一段文本,Stable Diffusion 就可以迅速将其转换为图像,同样我们也可以置入图片或视频,配合文本对其进行处理。
Stable Diffusion 文本转图像模型介绍,涵盖基础大模型推荐(人物插画、二次元、超真实、动画、悬疑风、国风)及其参数建议。包含 LoRA 插件简介及多种风格(插画、表情、墨心、连环画等)的使用效果对比。提供具体提示词示例与 VAE 设置技巧,帮助初学者快速上手 AI 绘画创作。

Stable Diffusion 是由 Stability AI 共同开发的一个文本转图像模型,它通过子集大量的 512x512 图文模型进行训练。我们只要简单的输入一段文本,Stable Diffusion 就可以迅速将其转换为图像,同样我们也可以置入图片或视频,配合文本对其进行处理。
通俗的解释:
Stable Diffusion 是一种基于扩散过程的图像生成模型,可以生成高质量、高分辨率的图像。它通过模拟扩散过程,将噪声图像逐渐转化为目标图像。这种模型具有较强的稳定性和可控性,可以生成具有多样化效果和良好视觉效果的图像。
下面推荐几个目前最常用的几个模型:
优点:画人物特别好看
建议搭配参数:采样器:DPM++ 2M Karras 步数 20
1、人物角色设计:
提示词示例:((masterpiece)),((insanely 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
基于这个人物尝试制作一个 4 格漫画:
2、生成类似的背景 + 不同的人物:
提示词示例:((masterpiece)),((insanely 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
这个模型其他都好,就是你们看我上面生成的图片人物都很精致很好看,但是就是颜色一直是灰蒙蒙的效果。多方查阅之后,找到一个方法,需要下载一个 VAE,然后在设置里面勾选上即可:
如何使用:
下面是对比效果:
((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 前:
设置 VAE 后:
这个是其他地方收集的这个模型的一些使用咒语,可以参考:
暂时无法在飞书文档外展示此内容
1、角色设计:
((masterpiece)),((insanely 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
2、生成故事插画:
((masterpiece)),((insanely 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.
((masterpiece)),((insanely 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.
使用较多,默认真实风格,且搭配很多 lora 效果都不错
建议搭配参数:DPM++ SDE Karras+step20
1、生成类似的背景 + 不同的人物:
绘画提示词:((masterpiece)),((insanely 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)
同样的提示词,加上 lora 之后,表情质感确实更好一点点
优点:搭配泡泡玛特 lora 效果非常棒
建议搭配参数:采样器:Euler a+step 28
提示词:(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,
这个模型一开始是想用来做悬疑小说的封面的,后来发现画简笔画、插画居然也都还行!
建议搭配参数:采样器 DPM++ 2M Karras +step 20
1、玄幻风、悬疑风的小说封面、插图:
提示词:gray sky,white clouds,fantasstyle,fantasy,mountains,castle,canyons,fantasy,magic,4k.
提示词:
Grand and spectacular scene, big background, small characters, a misty back, fantasy world of cultivating immortals, swords, flowing clothes,4k
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
3、插画
((masterpiece)),((insanely 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
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
建议搭配参数:采样器 Euler a+step30
示例:
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
2、用 lora 里面的那个示例的人物的效果:
((masterpiece)),((insanely 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.
LoRA 模型全称是:Low-Rank Adaptation of Large Language Models,通俗的可以理解为 Stable-Diffusion 中的一个插件,仅需要少量的数据就可以进行训练的一种模型。在生成图片时,LoRA 模型会与大模型结合使用,从而实现对输出图片结果的调整。下面是我已经试验体验过的一些 lora:(最后会有一组不同 lora 的使用效果对比)
试用总结:配合 deliberate 不错
crazy-expressions:二次元
试用总结:配合 deliberate 不错,出现正脸概率较大
试用总结:配合 deliberate 不错
试用总结:配合 deliberate 不错
[LoCon/LoRA] Airconditioner/空调 Style
试用总结:人物也可以加这个 lora,配合 deliberate 不错
适合设计角色 charTurnbeta:
为了对比效果,我先用基础大模型 deliberate 生成一个人物角色,然后搭配不同的 lora 看效果。
((masterpiece)),((insanely 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.
搭配不同的 lora 效果图参考如下:

微信公众号「极客日志」,在微信中扫描左侧二维码关注。展示文案:极客日志 zeeklog
使用加密算法(如AES、TripleDES、Rabbit或RC4)加密和解密文本明文。 在线工具,加密/解密文本在线工具,online
生成新的随机RSA私钥和公钥pem证书。 在线工具,RSA密钥对生成器在线工具,online
基于 Mermaid.js 实时预览流程图、时序图等图表,支持源码编辑与即时渲染。 在线工具,Mermaid 预览与可视化编辑在线工具,online
解析常见 curl 参数并生成 fetch、axios、PHP curl 或 Python requests 示例代码。 在线工具,curl 转代码在线工具,online
将字符串编码和解码为其 Base64 格式表示形式即可。 在线工具,Base64 字符串编码/解码在线工具,online
将字符串、文件或图像转换为其 Base64 表示形式。 在线工具,Base64 文件转换器在线工具,online