正面提示词:
(1girl:2.0), solo, nilou \(genshin impact\), solo, long hair, jewelry, blue gemstone, earrings, horns, crown, cyan satin strapless dress, white veil, neck ring, red hair, {green eyes}, ((full body)), (SFW:1.5), front, highly detailed face, curvy body, skindentation, hands up, happy smily face, pureerosface_v1, hiqcgbody,
{{masterpiece}}, {best quality},{highresl}, original, reflection,Exaggerated body proportions, greasy skin, realistic and delicate facial features, depth of field, extremely detailed CG unity 8k wallpaper, bloom, shine, (illustration), (painting), (sketch), anime coloring, fantasy, unreal engine, body shadow, artstation
indoor, sitting on sofa, sunset, backlighting, shiny skin, lens flare, light particles, glowing, dappled sunlight, extreme shadow and light, long shadow, light rays, sun
wind blow, maple leaf, cloudy sky, dusty, forest, plant, flower
反面提示词:
EasyNegative, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)),((grayscale)),skin spots, acnes, skin blemishes, age spot, (outdoor:1.6), (ugly:1.331), (duplicate:1.331), (morbid:1.21), (mutilated:1.21)(tranny:1.331), mutated hands, (poorly drawn hands:1.5), blurry, (bad anatomy:1.21), (bad proportions:1.331), extra limbs, (disfigured:1.33), (more than 2 nipples:1.331), (missing arms:1.33), (extra legs:1.331), (fused fingers:1.61051),(too many fingers:1.61051), (unclear eyes:1.331), lowers, bad hands, missing fingers, extra digit, (futa:1.1), bad hands, missing fingers, (((extra arms and legs))), extra hair, (2girls:2.0), signature, watermark, username, atist name
不同的提示词分别向AI描绘了画面风格、人物体貌、服饰特点、场景内容和一些额外的修饰性元素。别看这么多的字,其实,很多关于风格和画质把控的提示词是固定的。
虽然说提示词并非越多越好,但很多时候写多点,比少写点出来的效果肯定要更好,且在特定需求上控制会更为精确。所以,要想让AI按照我们的需要去产图,提示词到底该怎么写呢?放轻松,其实写提示词的过程非常自由的,无论你写什么,AI都可以给你画,在StableDiffusion中,可以输入提示词的区域就是左上方这两个文本框了,之前也提到了,它被分为了上下两部分,上面是正向的提示词,下面是反向的提示词。虽然自由,但提示词有一些基本的语法规则,是你应该掌握的。
首先,提示词需要英文书写,所以,如果你英语水平足够好,可以用英语组织你的描述语言,如果不好,可以求助翻译软件。
其次,提示词是以词组作为单位的,它不需要像真的英语句子一样,有完整的语法结构主从句之类的东西。就像你如果跟AI说:“画一个又长又宽的面和一个又大又圆的碗”,那直接可以分解成(面, 长, 宽), (碗, 大, 圆),这样AI也能听懂,甚至有时候听的比前一种更懂。
词组与词组之间,需要插入分隔符,基本的分隔符形式是一个英文里的半角逗号。再输入提示词的时候,最好把输入法切换到英文。因为里面涉及的符号基本都是英文的,提示词可以换行,但每一行的行末最好也打上分隔符。
1girl, walking, forest, path, sun, sunshine
1girl, walking, forest, path, sun, sunshine,
shining on body,
在输入这些东西以后,点击“Generate”,生成图画,出来的图片是这样的:
它有可能符合你的需要,也有可能变得奇奇怪怪。AI绘画是具有一定的随机性的,点多几次生成,每次生成出来的东西都会不太一样。之前,也有人把AI绘画比喻为“抽卡”,想出好的图片,得靠运气来抽。“一个女孩在林中漫步”,这其实只是一个非常概括的描述,这个女孩长什么样子、森林里有什么东西,时间是早上还是晚上、天气如何,这些东西,AI都不知道,你的提示词太过于笼统,那它就只能瞎蒙抽卡了。但也别担心,提示词很多时候不是一下子就写好的,而是现有一个雏形,再慢慢细化、补充和微调的。
1girl, walking, forest, path, sun, sunshine, shining on body, looking at viewer, close-up, upper body,
(masterpiece:1,2), best quality, masterpiece, highres, original, extremely detailed wallpaper, perfect lighting, (extremely detailed CG:1.2), drawing, paintbrush
还可以加一些的提示词,更多的就是在一些具体的方面,对这个画面去做控制。
2、提示词分类和书写方式
要加些什么呢?提示词有很多不同的分类。这里,把提示词概括成如下几个大类。
(1) 人物及主题特征
服饰穿搭:white dress 发型发色:blonde hair,long hair 五官特点:small eyes,big mouse 面部表情:smiling 肢体动作:stretching arms比如:女孩,白色连衣裙,金发,长发,微笑,伸展手臂,举手,美丽的,快乐的
1girl, walking, forest, path, sun, sunshine, shining on body,
white dress, blonde hair, long hair, smiling, stretching arms, hands up, beautiful, happy,
(2) 场景特征
室内、室外:indoor/outdoor 大场景:forest, city, street 小细节:tree, bush, white flower比如:树木,灌木,白色的花,(林间)小路
1girl, walking, forest, path, sun, sunshine, shining on body, white dress, blonde hair, long hair, smiling, stretching arms, hands up, beautiful, happy,
trees, bush, white flower, outdoor,
(3) 环境光照
白天、黑夜:day / night 特定时段:morning, sunset 光环境:sunlight, bright, dark 天空:blue sky, starry sky比如:白天、阳光、蓝天、多云的天空
1girl, walking, forest, path, sun, sunshine, shining on body, white dress, blonde hair, long hair, smiling, stretching arms, hands up, beautiful, happy,
trees, bush, white flower, path, outdoor,
day, sunlight, blue sky, cloudy sky,
(4) 补充:画幅视角
距离:close-up(特写),distant 人物比例:full body, upper body 观察视角:from above, view of back 镜头类型:wide angle, Sony A7比如特写:
1girl, walking, forest, path, sun, sunshine, shining on body, white dress, blonde hair, long hair, smiling, stretching arms, hands up, beautiful, happy,
trees, bush, white flower, path, outdoor,
day, sunlight, blue sky, cloudy sky, close-up
可以把这四个分类叫做“内容型提示词”,然而,只有内容型的提示词,你画出的东西很大概率不会让你满意,这里,我们需要引入其他的提示词,来给这个画面打一剂强心针。
首先是画质,因为在AI学习的图片里,有些是高清的,有些质量比较模糊,我们可以用这样的提示词,让他盯着哪些高清的去看。
(5) 画质提示词
通用高画质:best quality, ultra-detailed, masterpiece, hires, 8k 特定高分辨率类型:extremely detailed CG unity 8k wallpaper(超精细的8K Unity游戏CG), unreal engine rendered(虚幻引擎渲染)比如:最高的质量,超级细节,杰作,高分辨率,8K(分辨率),超细节的Unity CG壁纸
1girl, walking, forest, path, sun, sunshine, shining on body, white dress, blonde hair, long hair, smiling, stretching arms, hands up, beautiful, happy,
trees, bush, white flower, path, outdoor,
day, sunlight, blue sky, cloudy sky, close-up,
best quality, ultra-detailed, masterpiece, hires, 8k,extremely detailed CG unity 8k wallpaper, unreal engine rendered
(6) 画风提示词
插画风:illustration, painting, praintbrush 二次元:anime, comic, game CG 写实系:photorealistic, realistic, photograph比如:绘画,插画,动画,游戏CG
1girl, walking, forest, path, sun, sunshine, shining on body, white dress, blonde hair, long hair, smiling, stretching arms, hands up, beautiful, happy,
trees, bush, white flower, path, outdoor,
day, sunlight, blue sky, cloudy sky, close-up,
best quality, ultra-detailed, masterpiece, hires, 8k,extremely detailed CG unity 8k wallpaper, unreal engine rendered
painting, illustration, anime, game CG
(5)、(6)可以称为标准化的提示词。
(7) 提示词模板
描述人物:
(1girl:2.0), solo, nilou \(genshin impact\), solo, long hair, jewelry, blue gemstone, earrings,horns, crown, cyan satin strapless dress, white veil, neck ring, red hair, {green eyes},
描述场景:
indoor, room, house, sofa, wooden floor, plant, flowers, trees, windows,
描述环境(时间、光照):
day, morning, sunlight, dappled sunlight, backlight, light rays, cloudy sky
描述画幅视角:
full body, wide angle shot, depth of field
其他画面要素:
light particles, fantasy, wind blow, maple leaf, dusty,... (其他往后增加)
高品质标准化:
{{masterpiece}}, {best quality}, {highres}, original, reflection, unreal engine, body shadow, artstationextremely detailed CG unity 8k wallpaper
画风标准化:
(illustration), (painting), (sketch), anime coloring, fantasy,
其他特殊要求:
exaggerated body proportions, greasy skin, realistic and delicate facial features, SFW
3、权重与负面提示词
(1) 提示词的权重
如下咒语,
SFW, 1girl, walking, forest, path, sun, sunshine, shining on body,yellow skirt and white t-shirt, blonde hair, long hair, smiling, stretching arms, hands up, beautiful, happy.trees, bush, white flower, path, outdoor,
(masterpiece:1.2) , best quality, masterpiece, highres, original, extremely detailed wallpaper, perfect lighting(extremely detailed CG:1.2), drawing, paintbrush.
你会看到很多(),小数点,逗号之类的符号和数字,他们又是做什么的呢?其实,这些内容是用来增强或者是减弱某些提示词的优先级和权重的,比如刚才我们看到这个画面,我们输入了 white flower
, 但我们在图片上并没有清晰的看到白色的花,你输入了很多不同的元素给AI,都要他画,但他在处理的时候,不一定get到你最想要的是什么,所以有可能优先花了树和森林,如果你就是特别特别想要百花,那就可以用类似的方式,把白花的权重和优先级增强,去增强的方式有两种:
()
会使权重变为 1.1 倍,相对于其他元素就更突出。你还可以套多层括号,每套一层,就再乘以1.1倍,三层就是1.331倍。这样花就出来了:
SFW, 1girl, walking, forest, path, sun, sunshine, shining on body,yellow skirt and white t-shirt, blonde hair, long hair, smiling, stretching arms, hands up, beautiful, happy.trees, bush, (((white flower))), path, outdoor,
(masterpiece:1,2) , best quality, masterpiece, highres, original, extremely detailed wallpaper, perfect lighting(extremely detailed CG:1.2), drawing, paintbrush.
括号加数字权重
加了一种括号以后,可以在后面加一个英文冒号,后面可以接一个数字。
SFW, 1girl, walking, forest, path, sun, sunshine, shining on body,yellow skirt and white t-shirt, blonde hair, long hair, smiling, stretching arms, hands up, beautiful, happy.trees, bush, (white flower: 1.5), path, outdoor,
(masterpiece:1,2) , best quality, masterpiece, highres, original, extremely detailed wallpaper, perfect lighting(extremely detailed CG:1.2), drawing, paintbrush.
所以,当你觉得这个画面里有你告诉了AI但他又没有画出来的东西时,就可以借助这些方法来强调。加数字的方式明显更准确,而加括号进行微调的时候就更方便。
比起圆括号,还有这种大括号 {}
, 代表1.05倍,调节的效果就细微一点。
而如果你想削弱某个提示词的影响,就可以赋予它一个小于 1 的权重数值,或者用方括号[]
, 会把原来的权重削弱成原来的 0.9 倍。调节权重的时候,也要注意一件事情,就是尽量避免个别词条的权重太高,我体验的安全范围在 1 上下 0.5 左右。当你赋予一个词条2左右甚至更高的数值时,他就容易扭曲画面的内容。这个时候我们通常要改换思路。通过更多类型的词条来协助增强它的效应。
总结一下:
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上大数据知识点,真正体系化!
由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新
需要这份系统化资料的朋友,可以戳这里获取
图片转存中…(img-HSXJyYKL-1714680370377)]
[外链图片转存中…(img-w68dcewb-1714680370377)]
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上大数据知识点,真正体系化!
由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新
需要这份系统化资料的朋友,可以戳这里获取