接上一篇:Midjourney 完全学习手册(1) – 基础知识
今天用简单的提示词,通过设定不同的参数,来看看生成图像的表现与差异,以便我们更好的理解掌握提示词与参数功能的使用。
不带任何参数
cute kitty standing on two legs, wearing a red suit
不设定参数的话,参数均使用其默认值:
--version 6.1
--chaos 0
--style standard
--quality 1
--stylize 100
--aspect 1:1

参数 chaos
可缩写 --c
。chaos 表示图片的随机性与创造性,取值范围 0-100。默认为 0,输出图片更自然。数字越大,生成图像的随机性越大,结果越不可预测。看下面实测案例:
cute kitty standing on two legs, wearing a red suit --c 20
cute kitty standing on two legs, wearing a red suit --c 50
cute kitty standing on two legs, wearing a red suit --c 80

结果解析:同样的提示词,分别设定 –c 为 20、50、80。从结果看,随机性会升高,结果越来越不可控,到 80 的时候几乎不是提示词的初衷了。
参数 style
图像风格。默认风格 standard
,原始风格 raw
。raw 更倾向于真实、自然的表达,美化效果少,而不是过度艺术化或超现实的处理。
cute kitty standing on two legs, wearing a red suit --style raw

结果解析:左边 raw 风格更自然、真实一些,如摄影拍照一般。standard 风格更偏艺术风格,有的如油画风格。
参数 quality
可缩写 --q
,取值范围 0.5/1/2,默认为 1。较低的值意味着图像生成速度更快,任务消耗的 GPU 时间更少,但生成的图像细节会较少。可以更快地完善您的想法,且节省资源与成本,这对于尝试新提示很有用。更高的值会占用更多 GPU 资源,可以提升图像的纹理和细。
cute kitty standing on two legs, wearing a red suit --q 0.5
cute kitty standing on two legs, wearing a red suit --q 2

参数 stylize
可缩写 --s
,风格化程度。取值范围 0-1000,默认 100。低风格化值生成的图像与提示内容高度一致,但艺术感稍逊。高风格化值则能创造出极具艺术感的图像,但与提示内容的关联性可能稍弱。
cute kitty standing on two legs, wearing a red suit --s 50
cute kitty standing on two legs, wearing a red suit --s 200
cute kitty standing on two legs, wearing a red suit --s 800

参数 aspect
可缩写 --ar
,aspect ratio,镜头比例,默认 1:1。第一个数字是宽度,第二个数字是高度,只能用整数比,不能用小数。
cute kitty standing on two legs, wearing a red suit --ar 9:16

参数 seed
随机性种子。世界上没有两片完全一样的叶子,同理我们生成图像时,即便是同样的提示词,结果也可能有很大区别。有时候我们需要连续出图,为了保证出图效果的一致性,可以使用 seed 固定生图的随机性,这样多次出图的差异性就会很小。取值范围 0 到 4294967295 之间的整数。查看已生成图片的 seed 参考
a man climbing a mountain, portrait --chaos 20 --style raw --stylize 150
a man climbing a mountain, portrait --chaos 20 --style raw --stylize 150 --seed 496876636

参数 tile
平铺。用于生成无缝拼接的图案,如创建壁纸、自然纹理、材质贴图或地毯设计等。
a blue fish
a blue fish --tile


参数 cref 与 cw
cref,character reference,图片的角色一致性。
cw,character weight,参考图片的角色权重,取值范围 0-100,默认 100。数字设置为 0,仅参考角色的面部特征。数值越高,将结合角色的面部、头发和服装进行塑造新图。
illustration of a man sitting in a cafe --cref https://s.mj.run/lMI7gTvgF78
illustration of a man sitting in a cafe --cref https://s.mj.run/lMI7gTvgF78 --cw 0


参数 sref 与 sw
sref,style reference,参考图片的风格一致性。几个用法:--sref URL
参考某个图; --sref random
从 mj 库你随机挑选; --sref 762351716
参考某个种子图的风格;--sref URL1::2 URL2::1 URL3::1
分配不同的权重。
sw,style weight,参考图风格权重,取值范围 0-1000,默认 100。辅助参数,不能单独使用,搭配 sref。数值越高,生成的图像越接近参考风格图像的风格特征。
a dog --sref https://s.mj.run/tu5iD3U66rc
a dog --sref https://s.mj.run/tu5iD3U66rc --sw 1000

参数 iw
iw, image weight,上传图片与提示词的权重比例。默认 1,取值范围 0-3。权重越高,图像生成更接近上传的参考图像
https://s.mj.run/J1CLJtyeE8I flowers --iw 2


本文部分素材来自网络,不代表【AI 应用与实战】官方立场。
扫码关注本站公众号/加入知识星球,订阅更多精彩内容