本文专门开一节写提示词相关的内容,在看之前,可以同步关注:
stable diffusion实践操作
正文
提示词是SD中非常重要,你生成的图片质量,基本就取决于提示词的好坏,提示词分为正向提示词和反向提示词。
模板如下:画质 + 主体 + 主体细节 + 人物服装 + 其他(背景、天气、构图等)
- 画质:
比如:最高质量,超高清画质,大师的杰作,8k画质等等…这样出来的照片会更加精致
翻译成英文就是:Highest quality, ultra-high definition, masterpieces, 8k quality, - 主体内容(主体 + 主体细节):
比如:一个女孩,非常精致的五官,极具细节的眼睛和嘴巴,长发,卷发,细腻的皮肤,大眼睛
翻译成英文就是:1girl, very delicate features, very detailed eyes and mouth, long hair, curly hair, delicate skin, big eyes,
这些照片内容大家都是可以随意改的,但是像精致的五官、细节的眼睛这类词语,大家可以都加上去 - 服饰
写完五官之后,我们就可以想一下让照片的人物穿什么衣服,裤子,或者加上帽子之类的配饰
像裙子、毛衣、牛仔裤、比基尼都可以,还可以写上衣服的颜色
比如:白色的毛衣、项链(white sweater, necklace,) - 其他(背景、天气、构图等)
最后我们就可以写上其他乱七八糟的东西,比如背景、天气、照片姿势、构图等等
比如说:在街上,阳光,上半身照片(street, Sunshine, upper body photos,) - 关键词加权重,有两种:
直接用括号把关键词括起来:(curly hair)这样括号一次就是1.1倍权重,那括两次((curly hair))就是1.1×1.1=1.21倍,以此类推,可以加权重,那我们也可以减权重减权重就是用"[]"把单词括起来,如:[curly hair],还可以直接用数值来写(关键词:数值):(curly hair:1.6),直接一个curly hair是1,大于1就是加权重,小于1就是减权重。
- 关键词
如果你不希望照片中出现某些内容,可以使用负面关键词告诉SD。例如不希望出现低质量、多余的手指、不好看的脸等。
新手小白可以直接抄!(文章最后有关键词链接,里面可以直接复制)
模板1:
(worst quality:2), (low quality:2), (normal quality:2), lowres, ((monochrome)), ((grayscale)), bad anatomy,DeepNegative, skin spots, acnes, skin blemishes,(fat:1.2),facing away, looking away,tilted head, lowres,bad anatomy,bad hands, missing fingers,extra digit, fewer digits,bad feet,poorly drawn hands,poorly drawn face,mutation,deformed,extra fingers,extra limbs,extra arms,extra legs,malformed limbs,fused fingers,too many fingers,long neck,cross-eyed,mutated hands,polar lowres,bad body,bad proportions,gross proportions,missing arms,missing legs,extra digit, extra arms, extra leg, extra foot,teethcroppe,signature, watermark, username,blurry,cropped,jpeg artifacts,text,error,
模板2:
paintings, sketches, (worst quality:2), (low quality:2), (normal quality:2), cloth, underwear, bra, low-res, normal quality, ((monochrome)), ((grayscale)), skin spots, acne, skin blemishes, age spots, glans, bad nipples, long nipples, bad vagina, extra fingers,fewer fingers,strange fingers,bad hand, ng_deepnegative_v1_75t, bad-picture-chill-75v,Six fingers, deformed hands, - 正面关键词
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.1), 8k uhd, dslr, soft lighting, high quality, volumetric lighting, candid, Photograph,
high resolution | best quality