../

如何让Midjourney生成满意的图像?(prompt指南)

Tags: AI, 技术 Last edited: April 21, 2023 4:37 PM

前言

刚开始使用Midjourney时,很难让AI准确生成出脑子里的模糊形象。这是因为我们无法用文本准确描述出来脑海里的模糊图像。没有准确的文本描述(即prompt),AI就会天马行空随意发挥,大多数时候都会让你疑惑“哎?怎么会生成这样的图片?”。想要让AI生成的图像合乎心意,了解基本的prompt是必要的。

文本描述基本结构:

内容描述 + 风格描述 + 属性描述

内容描述:画面主体内容,要画什么。是人是动物,做什么动作,穿什么衣服等 风格描述:指定艺术家风格,画笔风格,艺术风格,打光,视角等 属性描述:图片属性,尺寸,分辨率等

内容描述

描述你想要绘制的内容,越详细越好。

一个示例:一只猫猫(画面主体)正在打架(动作)猫猫头上戴着头盔(画面主体详细描述)猫猫在擂台上(画面背景)

以某张图片为基础生成

你也可以选择参考图片,让Midjourney参考这张图片生成。

方式是:将图片上传至discord,

Untitled

点击图片,在浏览器中打开,

Untitled

然后把图片网址粘贴到prompt里面,

Untitled

最后设定相似程度--iw 0.25-5 (默认1.25,数值越大参考原图比重越多)(注意version 4 版本无法设定相似程度,改成version 3就好)

Untitled

最终成果

Untitled

风格描述

属性描述

即用prompt

示例

An orange cat wearing a helmet poses in a boxing ring , by Robert McCall, gothic, posters, cinematic lighting, close up, highly-detailed --q 2

An orange cat wearing a helmet poses in a boxing ring 橙色的猫戴着头盔在拳击擂台上摆出架势 (内容描述)

by Robert McCall, gothic, posters, cinematic lighting, close up, highly-detailed 罗伯特·麦克科尔的风格,哥特式,海报风格,电影打光,人物特写,高度详细 (风格描述)

--q 2 设定质量为2 (属性描述)

Untitled

Close up of simple minimalist dog logo with thick black and white outline style, smooth edges, 2d, icon style, simple design, simple colouring, one color, behance, dribbble, simplistic details –v 5

2d, flat, corporate logo, minimalistic logo ::2 simple line, edgy, lion head ::5 with blue, red, green and gold, white background –stylize 1000

3D效果

A glass material transparent airpods on the Dark background, in the style of light purple and light amber, in the style of post processing, soft color blending, white background, manapunk, adafruit, elegant, emotive faces, simple oshare kei, resin, light red and light purple, contrasting values , bauhaus photography, bold and vibrant primary colors, metallic

人物

https://s.mj.run/O2I9wpT319A A Chinese girl in a light blue short-sleeved shirt, Standing alone in an empty classroom, The afternoon sun hit her in the face through the window, brown hair, black hair, hair between eyes, Smile, chiaroscuro, cinematic lighting, feet out of frame, first-person view, f/1.8, 85mm, Sony FE, UHD, anatomically correct, textured skin

https://s.mj.run/Me9H0sCP6tc as a anime girl figure dressed in blue, black and orange, in the style of charming anime characters, hyper-detailed, grey academia, gamercore, dark yellow and cyan, aquirax uno, omri koresh, 3D render, Blender render, realistic, cinematic lighting

建筑

Small and cute urban laboratory,3d blender render,soft smooth lighting,rain background,100mm lens,4k UHD,isometric,tilt-shift

动物

a cute and sweet pixar style white fairy baby dog, sweet smile, small Peach bloson around, wearing a big headphone, smile, enjoying music, In the background is the bright bedroom, clean sunshine, enchanting, hairy, shiny mane, petals, fairy tales, wearing a pink sweater, incredibly high detail, Pixar-style, bright colors, natural light, sofawink background, Octane render, popular on artstation, gorgeous, ultra wide Angle, 8k, HD realistic, 8k HD

静物

Hand painted photography canvas textured backdrops with a lot of little ethereal florals, Chinese floral painting style, 4k, wide angle, white, cream and tan colors with gold accents, white baby breath spray detail, Rococo style, no people

动漫风格

Makoto Shinkai animation style, In spring, a little boy, three years old, lay on his hands and knees in the grass, looking for worms, there were lots of flowers, rocks, beetle, butterfly, dead wood, huge mushrooms, hopeful, bright colours, animation light, high detail, hyper quality, high resolution, ultra-detail, the best picture quality, masterpiece, 16K, beautiful scene,

贴纸

set of 9 donuts cute sticker doodel colorful, sticker art design, illustration, flat colors, simple lines, graphic novel style, 2d painting, ink painting style, trending on art station, digital art, childrens character design, happy mood, watercolor, pixar style cartoon, line work, minimalist

利用AI自己生成prompt

你还可以用chatGPT帮你写prompt,真正实现从AI到AI一条龙。

  1. 基本描述
  2. Notion AI 扩句
  3. 文本图像生成

更进一步

上面的prompt还不够?想要更多?下面这个由Michael Taylor整理的prompt文档满足你:

数据集:PROMPT ENGINEERING TEMPLATE

参考

Prompt Engineering: From Words to Art

An advanced guide to writing prompts for Midjourney ( text-to-image)