Stable Diffusion 提示词的书写是生成符合期望图片的关键步骤。
以下是关于Stable Diffusion提示词(prompt)书写的详细指南,包括模板和技巧
有需要stable diffusion整合包以及提示词插件,可以扫描下方,免费获取
提示词书写模板
基本结构:
提示词顺序:先强调_画面质量_,再是_画风_,接着是_主要元素_,最后是_细节_
画面质量:best quality, high quality, ultra-detailed, masterpiece, HDR, UHD, 8K等。
画风:oil painting, digital art, anime style等。
主要元素:a girl, princess, oval face, smile, bright eye, yellow hair等。
细节:movie light, elves, floating light points, dreams, magic等。
示例:best quality, high quality, ultra-detailed, masterpiece, HDR, UHD, 8K, oil painting, a girl, princess, oval face, smile, bright eye, yellow hair, movie light, elves, floating light points, dreams, magic
``
提示词混合:
使用[keyword1: keyword2: factor]
语法进行提示词混合,factor
取值范围为0-1,表示在采样步数的factor
比例处将提示词从keyword1
切换到keyword2
。例如[cat: dog: 0.5]
,在采样步数为30时,第15步时关键词从cat
切换到dog
。
权重调整:
小括号:增加权重,例如(white flower:1.5)
,权重增加到1.5倍。最多可套三层小括号,权重增加到1.331倍。
大括号:轻微增加权重,每层增加1.05倍,三层为1.15倍。
中括号:减小权重,每层减少到0.9倍,三层为0.729倍。
自定义权重:使用(x:权重值)
,权重值范围为0.4-1.6。
提示词书写技巧
具体描述:
提示词应尽可能具体,避免过于笼统。例如,描述一个“美丽的女人”时,不要只写1 girl
,而应详细描述她的外貌、服装、姿势和背景,
如 1girl, upper body, stand, arm on side, pink hair, bob cut, blue eyes, lips, nose, smiling, headband, ear piercing, kimono, milky way, glittering stars
。
艺术媒介:
使用艺术媒介关键词可以显著改变图像风格,如photos, painting, illustration, oil painting, watercolor painting, vector graphics, 3D rendering等。例如:
1girl, upper body, stand, arm on side, pink hair, bob cut, blue eyes, lips, nose, smiling, headband, ear piercing, kimono, milky way, glittering stars, 3D rendering
1girl, upper body, stand, arm on side, pink hair, bob cut, blue eyes, lips, nose, smiling, headband, ear piercing, kimono, milky way, glittering stars, painting
``
艺术风格:
添加艺术风格关键词,如pop art, hyper-realistic, fantasy, dark art, fauvism, impressionism, surrealism等。例如:
1girl, upper body, stand, arm on side, pink hair, bob cut, blue eyes, lips, nose, smiling, headband, ear piercing, kimono, milky way, glittering stars, painting, fantasy
光照效果:
光照关键词对图像的整体感觉和氛围影响很大,如soft, ambient, overcast, dimly lit, studio lights, dramatic lighting, dreamlike ethereal lighting等。例如:
1girl, upper body, stand, arm on side, pink hair, bob cut, blue eyes, lips, nose, smiling, headband, ear piercing, kimono, milky way, moon, glittering stars, painting, fantasy, dramatic spotlighting
1girl, upper body, stand, arm on side, pink hair, bob cut, blue eyes, lips, nose, smiling, headband, ear piercing, kimono, milky way, moon, glittering stars, painting, fantasy, studio lighting
色彩控制:
通过添加色彩关键词控制图像的整体色调,如vibrant, bold, muted, bright, monochromatic, colorful, black and white, pastel等。也可以引用特定工作室的色彩风格,如color inspired by Studio Ghibli。例如:
1girl, upper body, stand, arm on side, pink hair, bob cut, blue eyes, lips, nose, smiling, headband, ear piercing, kimono, milky way, moon, glittering stars, painting, fantasy, studio lighting, color inspired by Studio Ghibli
情感和氛围:
添加情感或氛围关键词,如fluid, pensive, sedate, calm, sad, angry, raucous, energetic等,以唤起特定的情感反应或氛围。例如:
1girl, upper body, stand, arm on side, pink hair, bob cut, blue eyes, lips, nose, smiling, headband, ear piercing, kimono, milky way, moon, glittering stars, painting, fantasy, studio lighting, color inspired by Studio Ghibli, energetic
视角和构图:
详细描述相机角度、视角、构图等,如front view, side view, back view, looking back, eye contact, from above, portrait, headshot, close-up, bird's-eye view等。例如:
1girl, upper body, stand, arm on side, pink hair, bob cut, blue eyes, lips, nose, smiling, headband, ear piercing, kimono, milky way, moon, glittering stars, painting, fantasy, studio lighting, color inspired by Studio Ghibli, energetic, from above
其他类别:
根据生成内容的类型,添加特定关键词,如相机设备(iPhone, DJI, DSLR)、拍摄角度(overhead, low-angle)、拍摄距离(close-up, wide shot)等。例如:
medium shot, portrait, young adult woman, beautiful, blue eyes, realistic skin with imperfections, goddess, warm smile, god rays, wildflowers, forest, bokeh, (shot by iPhone 15:1.3), (portrait mode:1.3), f/number, (soft and natural light:1.2), high resolution
高级技巧
提示词权重:
通过给提示词分配权重,可以强调或减弱某些关键词的重要性。默认权重为1,使用小括号()或加号+增加权重,使用中括号[]或减号-减少权重。例如:
(keyword)
或keyword+
相当于权重1.1((keyword))
或keyword++
相当于权重1.1x1.1(((keyword)))
或keyword+++
相当于权重1.1x1.1x1.1[keyword]
或keyword-
相当于权重0.9[[keyword]]
或keyword--
相当于权重0.9x0.9[[[keyword]]]
或keyword---
相当于权重0.9x0.9x0.9
关键词混合:
使用[keyword1: keyword2: factor]语法,在生成过程中混合两个关键词。例如:
closeup photo of [Taylor Swift: Beyonce: 0.4]
,在40步采样中,前16步生成泰勒·斯威夫特的特写,剩余步骤生成碧昂丝的特写。
交替关键词:
使用(keyword1|keyword2)或[keyword1|keyword2]语法,在生成过程中交替使用两个关键词。例如:
(frog|man)
或[frog|man]
,在生成过程中交替使用青蛙和人的特征,生成半青蛙半人的图像。
分块提示词:
使用BREAK关键字(必须大写)分隔不同的提示词块,避免前文影响后文。例如:
1girl, sitting on a bench in a park, high resolution, sunlight, smiling, head resting on hands, long hair, round glasses, pink eyes, white dress, purple hair, BREAK, green headband
通过以上模板和技巧,可以更高效地书写Stable Diffusion的提示词,从而获得更符合预期的生成结果。
关于AI绘画技术储备
学好 AI绘画 不论是就业还是做副业赚钱都不错,但要学会 AI绘画 还是要有一个学习规划。最后大家分享一份全套的 AI绘画 学习资料,给那些想学习 AI绘画 的小伙伴们一点帮助!
对于0基础小白入门:
如果你是零基础小白,想快速入门AI绘画是可以考虑的。
一方面是学习时间相对较短,学习内容更全面更集中。
二方面是可以找到适合自己的学习方案
包括:stable diffusion安装包、stable diffusion0基础入门全套PDF,视频学习教程。带你从零基础系统性的学好AI绘画!
零基础AI绘画学习资源介绍
👉stable diffusion新手0基础入门PDF👈
(全套教程文末领取哈)
👉AI绘画必备工具👈
温馨提示:篇幅有限,已打包文件夹,获取方式在:文末
👉AI绘画基础+速成+进阶使用教程👈
观看零基础学习视频,看视频学习是最快捷也是最有效果的方式,跟着视频中老师的思路,从基础到深入,还是很容易入门的。
温馨提示:篇幅有限,已打包文件夹,获取方式在:文末