AIGC - Stable Diffusion 的正向提示词 Prompts 工程 (1)

news/2024/7/10 22:24:46 标签: AIGC, stable diffusion

欢迎关注我的CSDN:https://spike.blog.csdn.net/
本文地址:https://spike.blog.csdn.net/article/details/131544508

SD

当前 Stable Diffusion 模型使用基础的 stable-diffusion-v1-5,即 v1-5-pruned-emaonly.safetensors。

Stable Diffusion 的正向提示词是一种用来描述想要生成的图像的语言,可以通过不同的词语、符号、权重和相关性来控制生成图像的内容、风格和质量。正向提示词可以根据不同的场景和需求进行灵活的选择和组合,以达到理想的效果。

正向提示词结合反向提示词,输出的效果较好,例如,反向提示词,如下:

NSFW,(worst quality:2),(low quality:2),(normal quality:2),lowres,normal quality,((monochrome)),((grayscale)),skin spots,acnes,skin blemishes,age spot,(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.331),(missing arms:1.331),(extra legs:1.331),(fused fingers:1.61051),(too many dingers:1.61051),(unclear eyes:1.331),lowers,bad hands,missing fingers,extra digit,bad hands,missing fingers,(((extra arms and legs)))

1. 正向提示词

正向提示词 (Prompts):主要包括内容型提示词、标准化提示词、其他特殊要求等3个部分。

内容型提示词

  1. 人物及主体特征
    1. 服饰穿搭:white dress
    2. 发型发色:blonde hair(金发),long hair
    3. 五官特点:small eyes,big mouth
    4. 面部表情:smiling
    5. 肢体动作:stretching arms(伸展手臂)
  2. 场景特征
    1. 室内、室外:indoor, outdoor
    2. 大场景:forest,city,street
    3. 小细节:tree,bush,white flower
  3. 环境光照
    1. 白天黑夜:day,night
    2. 特定时段:morning,sunset
    3. 光环境:sunlight,bright,dark
    4. 天空:blue sky,starry sky(满天星)
  4. 补充: 画图视角
    1. 距离:close-up,distant
    2. 人物比例:full body,upper body
    3. 观察视角:from above,view of back
    4. 镜头类型:wide angle,Sony A7 III

标准化提示词

  1. 画质提示词
    1. 通用高画质:best quality,ultra-detailed,masterpiece(杰作),hires,8k
    2. 特定高分辨率类型:extremely detailed CG unity 8k wallpaper(超精细的8kUnity游戏CG),unreal engine rendered(虚幻引擎渲染)
  2. 画风提示词
    1. 插画风:illustration(插图),painting,paintbrush
    2. 二次元:anime,comic,game CG
    3. 写实系:photorealistic(照片级的),realistic,photograph(照片)

根据内容型提示词和标准化提示词,通用模版包括:

  1. 描述人物
  2. 描述场景
  3. 描述环境(时间、光照)
  4. 描述画幅视角
  5. 其他画面要素
  6. 高品质标准化
  7. 画风标准化
  8. 其他特殊要求

描述人物,例如:

  • nilou\(Genshin Impact\):nilou原神角色
  • jewelry:珠宝
  • blue gemstone:蓝宝石
  • earrings:耳环
  • horns:犄角
  • crown:王冠
  • cyan satin strapless dress:青色绸缎抹胸连衣裙
  • white veil:白色面纱
  • neck ring:项圈
(one girl:2.0),solo,nilou\(genshin Impact\),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,

描述环境(时间、光照),例如:

  • dappled sunlight:斑驳的阳光
  • light rays:光线
day,morning,sunlight,dappled sunlight,backlight,light rays,cloudy sky,

描述画幅视角,例如:

  • depth of field:景深
full body,wide angle shot,depth of field,

其他画面要素,例如:

  • light particles:光子
  • fantasy:幻想
  • wind blow:风吹
  • maple leaf:枫叶
  • dusty:灰尘的
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:safe for working
exaggerated body proportions,greasy skin,realistic and delicate facial features,SFW,

提升汇总:

(one girl:2.0),solo,nilou\(genshin Impact\),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,

图像:

SD


2. 内容型提示词

参数设置:

Params

Prompts 1,即基础提示:

a girl,walking,forest,path,sun,sunshine,shining on body,

图像:

Prompts 1

Prompts 2,即基础提示 + 人物及主体特征:

a girl,walking,forest,path,sun,sunshine,shining on body,
white dress,blonde hair,long hair,smiling,streching arms,hands up,beautiful,happy

图像:

SD

Prompts 3,即基础提示 + 人物及主体特征 + 场景特征:

a girl,walking,forest,path,sun,sunshine,shining on body,
white dress,blonde hair,long hair,smiling,streching arms,hands up,beautiful,happy,
trees,bush,white flower,path,outdoor,

图像:

SD

Prompt 4,即基础提示 + 人物及主体特征 + 场景特征 + 环境光照:

a girl,walking,forest,path,sun,sunshine,shining on body,
white dress,blonde hair,long hair,smiling,streching arms,hands up,beautiful,happy,
trees,bush,white flower,path,outdoor,
day,sunlight,blue sky,cloudy sky,(close-up:1.5),

图像:

SD


3. 标准化提示词

参数设置:
在这里插入图片描述

Prompts 5,内容型提示词+画质:

a girl,walking,forest,path,sun,sunshine,shining on body,
white dress,blonde hair,long hair,smiling,streching arms,hands up,beautiful,happy,
trees,bush,white flower,path,outdoor,
day,sunlight,blue sky,cloudy sky,(close-up:1.5),
best quality,ultra detailed,masterpiece,hires,8k,extremely detailed CG unity 8k wallpaper,

图像:

SD

Prompts 6,内容型提示词+画质+画风:

a girl,walking,forest,path,sun,sunshine,shining on body,
white dress,blonde hair,long hair,smiling,streching arms,hands up,beautiful,happy,
trees,bush,white flower,path,outdoor,
day,sunlight,blue sky,cloudy sky,(close-up:1.5),
best quality,ultra detailed,masterpiece,hires,8k,extremely detailed CG unity 8k wallpaper,
painting,illustration,anime,game CG, 

图像:

SD


http://www.niftyadmin.cn/n/1729532.html

相关文章

编译器到底是如何将.java文件“玩转“成.class文件

为什么需要编译? 我们平常写代码,有规范的命名方式,都能够看得懂,但是我们写的代码计算机是看不懂的,所以需要编译,也就是一个转换的过程,如下: 1.这个是咱们平时写的代码&#xf…

大学学期初计算机计划,大学学期目标计划

在大学,每个人都不想碌碌无为,一般都会定一个目标计划,但又不知道如何定制,下面有好的计划供你参考!案例一首先我要考虑为什么要这么做,我想,有目标并为只努力的生活才是充实的人生,…

java到底为何会乱码?它在jvm编译的时候到底经历了什么不为人知的密码?

java在字符串中统一用Unicode表示。 对于任意一个字符串:String string “测试字符串”; 如果源文件是GBK编码,操作系统默认环境编码也为GBK,那么编译的时候,Java编译器将按照GBK编码将字节数组解析为字符,然后将字…

JVM,JRE,JDK之间的三角恋到底是怎么样的?谈谈为什么Java“一次编译,到处使用”的称谓。

一: JVM,JRE,JDK三种直接的关系 JVM (Java Virtual Machine)称之为Java虚拟机,JVM是一种用于计算设备的规范,它是一个虚构出来的计算机,是通过在实际的计算机上仿真模拟各种计算机功能来实现的。JVM屏蔽了与具体操作系…

Java为什么不能准确表示0.9呢?

首先来看看下面首先来看看下面的一个例子:首先来看看下面的一个例子:一首先来看看下面的一首先来看看下面的一个例子: public class Test {public static void main(String[] args){System.out.println( 2.0-1.1 );} }将上述代码保存到名为 …

Java中如何用File类实现文件夹排版的分类输出?(递归算法的练习)

话不多说,直接上代码 package com.softeem.wolf.homework21; import java.io.File;/*** Created by 苍狼* Time on 2021-07-10*/ public class test {public static void main(String[] args) {File file new File("C:\\rep");recusive(file, 0);}//注意:此方法的调…

带你了解什么是编码, 什么是解码?

预习知识 电脑是由电路板组成,电路板里面集成了无数的电阻和电容,交流电经过电容的时候,电压比较低记为低电平,用O表示,交流电流过电阻的时候,电压比较高,记为高电平,用1来表示;所以…

utf-32/utf-16/utf-8如何解析Unicode编码呢?以及BOM的作用

一: UTF-32 这个最简单,就是字符编号的整数二进制形式,四个字节。 但有个细节,就是字节的排列顺序,如果第一个字节是整数二进制中的最高位,最后一个字节是整数二进制中的最低位,那这种字节序就叫"大端…