Midjourney关键词技巧 / ai #3

midjourney.jpg

https://discord.com/invite/midjourney

下载与资源

官网 |
文档 |
client |
openjourney |
openjourney doc |
PromptHero |
Midjourney Prompt |
Midjourney Prompt2 |
Huggingface prompt |
prompt-generator

关键词格式

基本格式
/imagine prompt

关键词格式
/imagine url prompt parameters

参数

/imagine prompt
/blend 组合,如对两张图片的组合
--ar 16:9 5:4 3:2 纵横比
--chaos 0-100 值越高越有想像力
--seed 连续人物,引用特定画作
查找种子值: 添加反应, 咖啡杯, 上方输入env,点击信封
--niji 动漫模式

可以使用图片作为关键词 Image Prompting
先帖图片,再写上关键词

--panels 连续动作
--niji 动漫风
--ar 5:5 图像比例
--chaos 随机值
--style 4a /4b

关键词格式

1.Sticker Design --- 贴纸风格 eg: sticker design of cute girl
Graphic Design of robot and flowers
Graphic Design, A phone is rising, surrounded by lights and flowers
Industrial Design, Hard edge style phone
Graphic Logo Design,Star-shaped, Simple, line construction
2.“A物体”As“B人物” --- 角色替换 eg: elon mask as a commander
3.Symmetrical,flat icon design --- 简洁,对称LOGO设计 eg: lemon, Symmetrical,flat icon design
4.Game sheet of --- 游戏装备列表 eg: game sheet of gens
5.Knolling --- 将相关联的物品以平行或是 90 度排放的组织方式 eg: knolling tool set
6.8-bit, 16-bit --- 怀旧游戏,像素风 eg: 8-bit game pixel art, star war
7._ out of [material ] --- 被材质覆盖的物体 eg: castle out of flowers
8.Layered Paper --- 折纸艺术画风 eg: layered paper sea wave
9.Isometric art --- 等轴艺术画风 eg: Isometric tower
10.Blacklight --- 黑暗灯光特效 eg: blacklight bridge
11.Naïve art --- 纯朴艺术画风 eg: naive art ant
12.Mascot Logo --- 吉祥物设计 eg: Mascot Logo carribage
13.T-shirt vector --- 服装设计 eg: T-shirt vector dogs and flowers
14.Pattern --- 图案设计 eg: chinese native pattern
15.Tattoo --- 纹身设计 eg: rose tatton design
16.Interior Design,architecture --- 建筑设计 eg: Interior Design, a warm chinese house
17.Photorealistic --- 照片级真实设计 eg: a red car in forest, Photorealistic
18.Stained glass window --- 被物体覆盖的窗户 eg: flower Stained glass window
19.Blender 3D --- 3D效果 eg: a wood horse Blender 3D
20.Explode_____by Nychos -- 爆炸性街头艺术 eg: Explode planet by Nychos

分割关键词

用 :: 分割关键词,例如: hot:: dog both concepts are considered separately, creating a picture of a dog that is warm.

艺术家风格

style of __
宫崎骏(日语:宮﨑 駿/みやざき はやお Miyazaki Hayao
村上隆(日语 村上 隆 平假名 むらかみ たかし 罗马字 Murakami Takashi
草间弥生(Yayoi Kusama)
eg:
A kite flying in the sky, a boy and a girl chasing on the ground, a lot of
flowers on the grass, low shrubs,style of Yayoi Kusama
A few shrimps chased by a crab,ink painting style of Murakami Takashi
A few shrimps chased by a crab:: picasso::1.4 --v 4
A few shrimps chased by a crab, Painted By Andre Masson

client API

npm install midjourney-client --save
import midjourney from 'midjourney-client'

//从关键词生成图片
async function image(){
  let name = "crab"
  // 只能英文
  let prompt = "A few shrimps chased by a crab, Painted By Andre Masson"
  console.log(prompt)
  let response = await midjourney(prompt)
  //可以加上参数
  // let response = await midjourney(prompt, {width: 1024})

  let image_url = response[0]
  console.log(168, "req:", response)
  // downImage(image_url, name)
}

//其它参数
guidance_scale: '7',
//Maximum size is 1024x768 or 768x1024 because of memory limits
// Allowed values:128, 256, 512, 768, 1024
// Default value: 512
width: 512,
height: 512,  
num_inference_steps: 50,
num_outputs: 1, 
seed: null,
num_outputs 1 // Allowed values:1, 4, Default value: 1