AI绘画如何保证人物一致性

AI
3.3k words

niji 5
使用ai绘图时,一开始尽量写简单少量的prompts去生成画面。
之后再使用图生图的方式去一点点收窄你的 prompts 提示词范围
这样可以让你获取到一个相对准确的图像

🌰 举个栗子

✏️ 首先! 让chatGPT写一个基础prompts
角色基础prompt

step1. 加入prompt关键词,生成角色概念图

tips: prompt不需要多,而需要精准。
加入以下关键词,可生成角色概念图。

  • character sheet 角色设计图
  • character design 角色概念图
  • white background 纯白背景
  • Comprehensive perspective 全视角
  • fullbody 全身

对应的 prompts 则为

1
2
3
4
5
6
7
8
9
10
11
A young girl with blonde hair, wearing braided pigtails, 
# 一个亚麻头发的年轻女孩, 扎着麻花辫

character sheet, character design, white background,
# 角色设计图, 角色概念图, 纯白背景

comprehensive perspective, fullbody,
# 多视角, 全身

retro chibli style, --niji 5
# 复古宫崎骏风格, niji 5模型

获得一张基本的角色概念图
生成的角色概念图

将图像进行分割,分割出来的图像就可以以图生图的方式去生成更多的画面
分割图像

step1-1. 生成更多视角

该步骤可选, 你可以生成更多的视角以适应更多场景。

分割好的图像上传至图床(保证外网可以访问即可), 然后来生成更多表情

示例:

1
2
3
4
5
https://media.discordapp.net/attachments/1218112860018704486/1219527404456902737/-.png?ex=660ba066&is=65f92b66&hm=5f5c90544f2cc7c7f2868b4646d67fde93950f4f86b63cbe4212ad4a264a3d22&=&format=webp&quality=lossless&width=366&height=621
https://media.discordapp.net/attachments/1218112860018704486/1219527404679069696/-.png?ex=660ba066&is=65f92b66&hm=95a5effc2ad8c660da2d7125fb71758e327aa251c33e377fc7ddf928956ac397&=&format=webp&quality=lossless&width=246&height=349
https://media.discordapp.net/attachments/1218112860018704486/1219527404901502996/-.png?ex=660ba067&is=65f92b67&hm=19bdf0b47ce33520b5c56ebd9a1fbc8d4bba13847228ea61da762af03e97ccae&=&format=webp&quality=lossless&width=385&height=673
https://media.discordapp.net/attachments/1218112860018704486/1219527405115408464/-.png?ex=660ba067&is=65f92b67&hm=1fa83711e0147e41f3b74a0927b5940020e25ae26eee7f94e0bac3fcd8e6f3ce&=&format=webp&quality=lossless&width=301&height=420
Happy and sad expression, A young girl with blonde hair, wearing braided pigtails, white background, retro chibli style, --niji 5

更多的表情姿势

step2. 生成你想要的场景

后续需要生成的画面只要带上前面分割好的角色概念图图像
生成的画面就会参考角色概念图的人物进行生成

你希望生成的画面

1
2
The girl sits on the grassy lawn, looking up at the blue sky, retro chibli style, --niji 5
# 女孩坐在长满草的草坪上, 仰望蓝天, 复古宫崎骏风格,

附加角色概念图

1
2
3
4
5
https://media.discordapp.net/attachments/1218112860018704486/1219527404456902737/-.png?ex=660ba066&is=65f92b66&hm=5f5c90544f2cc7c7f2868b4646d67fde93950f4f86b63cbe4212ad4a264a3d22&=&format=webp&quality=lossless&width=366&height=621
https://media.discordapp.net/attachments/1218112860018704486/1219527404679069696/-.png?ex=660ba066&is=65f92b66&hm=95a5effc2ad8c660da2d7125fb71758e327aa251c33e377fc7ddf928956ac397&=&format=webp&quality=lossless&width=246&height=349
https://media.discordapp.net/attachments/1218112860018704486/1219527404901502996/-.png?ex=660ba067&is=65f92b67&hm=19bdf0b47ce33520b5c56ebd9a1fbc8d4bba13847228ea61da762af03e97ccae&=&format=webp&quality=lossless&width=385&height=673
https://media.discordapp.net/attachments/1218112860018704486/1219527405115408464/-.png?ex=660ba067&is=65f92b67&hm=1fa83711e0147e41f3b74a0927b5940020e25ae26eee7f94e0bac3fcd8e6f3ce&=&format=webp&quality=lossless&width=301&height=420
The girl sits on the grassy lawn, looking up at the blue sky, retro chibli style, --niji 5

可得
女孩坐在草坪上仰望蓝天

想要获取不同尺寸的画面,只要不断地以平移拉伸的方式去生成画面即可
最终效果展示

🔧 一些工具推荐

一个画面生成是根据模型的好坏和prompt决定

画面生成可以使用本地 Stable Diffusion 或在线平台 Midjourney

模型可以用自己训练或者网上下的模型,相信我!直接用网上认可度高模型来使用即可!!!

prompt 推荐用 chatGPT 帮你写 或使用 aiprm 插件帮你想。