Stable Diffusion入门使用技巧及个人实例分享--大模型及lora篇
Stable Diffusion入门使用技巧及个人实例分享--大模型及lora篇
Stable Diffusion是一种强大的文本转图像模型,能够生成高质量、高分辨率的图像。本文将为您详细介绍Stable Diffusion的基础大模型推荐、LORA模型的使用技巧以及具体的绘画示例和对比图。
Stable Diffusion简介
Stable Diffusion是由CompVis、Stability AI和LAION共同开发的文本转图像模型。它通过LAION-5B子集中的大量512x512图文数据进行训练,能够快速将文本转换为图像,同时支持图片或视频的处理。
基础大模型推荐
1. 好看人物插画风
优点: 画人物特别好看
建议搭配参数: 采样器:DPM++ 2M Karras,步数20
绘画示例:
人物角色设计:
提示词示例:((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
基于这个人物尝试制作一个4格漫画:
生成类似的背景+不同的人物:
提示词示例:((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
关于这个模型的一个小技巧:
这个模型生成的图片人物都很精致,但颜色效果偏灰蒙蒙。通过下载一个VAE,并在设置中勾选,可以改善这一问题。
2. 二次元
这个模型非常适合二次元风格的创作。以下是两个绘画示例:
角色设计:
提示词示例:((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
生成故事插画:
提示词示例:((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.
提示词示例:((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.
3. 超真实风格
这个模型默认生成真实风格的图像,且搭配很多LORA效果都不错。
建议搭配参数: DPM++ SDE Karras+step20
绘画示例:
生成类似的背景+不同的人物:
提示词:((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)
同样的提示词,加上LORA之后,表情质感确实更好一点点。
4. 动画
这个模型搭配泡泡玛特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,lora:blindbox_v1_mix:1
5. 悬疑风/风景/插画
这个模型适合用于悬疑小说的封面设计,同时也适合简笔画和插画创作。
建议搭配参数: 采样器DPM++ 2M Karras +step 20
绘画示例:
玄幻风、悬疑风的小说封面、插图:
提示词: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
简笔头像:
提示词:(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
插画:
提示词:((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
提示词: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
6. 国风
这个模型非常适合国风风格的创作。
建议搭配参数: 采样器Euler a+step30
示例:
使用官方的这个提示词直出效果如下:
提示词: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
用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.
LORA简介及推荐
LORA模型是Stable Diffusion中的一个插件,仅需要少量的数据就可以进行训练。在生成图片时,LORA模型会与大模型结合使用,从而实现对输出图片结果的调整。
1. 适合插画/二次元adventures
试用总结:配合deliberate不错
2. 表情LORA
crazy-expressions:二次元
试用总结:配合deliberate不错,出现正脸概率较大
3. 墨心
试用总结:配合deliberate不错
4. 小人书·连环画 xiaorenshu
试用总结:配合deliberate不错
5. 二次元漫画风
[LoCon/LoRA] Airconditioner/空调 Style
6. 城市景色
7. 线条
8. 科幻
试用总结:人物也可以加这个LORA,配合deliberate不错
9. 室内设计
10. 亚洲男生
适合用sd1.5基础大模型
11. 角色设计多角度
适合设计角色charTurnbeta
为了对比效果,先用基础大模型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.