it编程 > 游戏开发 > vr

Stable Diffusion - Prompts 提示词工程框架

104人参与 2024-08-02 vr

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个部分。

prompt

内容型提示词

  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. 其他特殊要求

描述人物,例如:

(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,

提升汇总:

(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

(0)
打赏 微信扫一扫 微信扫一扫

您想发表意见!!点此发布评论

推荐阅读

Stable Diffusion 3 如何下载安装使用及性能优化

08-02

2024图像处理、计算机视觉和模式识别国际会议(IPCVR 2024)

08-02

计算机视觉在社交媒体行业:内容推荐与用户分析

08-02

UE5连接VR(pico,quest)进行PC VR开发(没有废话全是干货)

08-02

虚拟现实(VR)和数字孪生(DT)的联系与区别

08-02

DICOM 文件中,VR,VL,SQ,图像二进制的几个注意点

08-03

猜你喜欢

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论