安装 belt CLI 技能:
npx skills add belt-sh/cli
角色设计参考表 是做什么的?
通过 inference.sh CLI 在多张 AI 生成图像中创建一致的角色。
快速开始
需要 inference.sh CLI(
belt)。安装说明
belt login
# 生成一个角色概念设计
belt app run falai/flux-dev-lora --input '{
"prompt": "character design reference sheet, front view of a young woman with short red hair, green eyes, wearing a blue jacket and white t-shirt, full body, white background, clean lines, concept art style, character turnaround",
"width": 1024,
"height": 1024
}'
一致性问题
AI 图像生成每次都会产生外观不同的角色,即使使用相同的提示词。这是任何需要在多张图像中使用同一角色的 AI 艺术项目面临的首要挑战。
解决方案(按效果排序)
| 技术 | 一致性 | 工作量 | 最佳适用场景 |
|---|---|---|---|
| FLUX LoRA(基于角色训练) | 非常高 | 高(需要训练数据) | 长期项目,大量图像 |
| 详细描述锚定 | 中高 | 低 | 快速项目,少量图像 |
| 相同种子 + 相似提示词 | 中 | 低 | 单个姿势的变体 |
| 图到图细化 | 中 | 中 | 优化现有图像 |
| 提示词中的参考图像 | 变化 | 低 | 模型支持时 |
参考表类型
1. 转身视图表
从多个角度展示角色:
┌────────┬────────┬────────┬────────┐
│ │ │ │ │
│ 正面 │ 3/4 │ 侧面 │ 背面 │
│ 视图 │ 视图 │ 视图 │ 视图 │
│ │ │ │ │
└────────┴────────┴────────┴────────┘
# 生成正面视图
belt app run falai/flux-dev-lora --input '{
"prompt": "character design, front view, young woman with short asymmetric red hair, bright green eyes, wearing navy blue bomber jacket over white graphic tee, dark jeans, red sneakers, standing in neutral pose, full body, clean white background, concept art, sharp details",
"width": 768,
"height": 1024
}' --no-wait
# 生成 3/4 视图(相同描述)
belt app run falai/flux-dev-lora --input '{
"prompt": "character design, three-quarter view, young woman with short asymmetric red hair, bright green eyes, wearing navy blue bomber jacket over white graphic tee, dark jeans, red sneakers, standing, full body, clean white background, concept art, sharp details",
"width": 768,
"height": 1024
}' --no-wait
# 生成侧视图
belt app run falai/flux-dev-lora --input '{
"prompt": "character design, side profile view, young woman with short asymmetric red hair, bright green eyes, wearing navy blue bomber jacket over white graphic tee, dark jeans, red sneakers, standing, full body, clean white background, concept art, sharp details",
"width": 768,
"height": 1024
}' --no-wait
# 生成背视图
belt app run falai/flux-dev-lora --input '{
"prompt": "character design, back view, young woman with short asymmetric red hair, wearing navy blue bomber jacket over white graphic tee, dark jeans, red sneakers, standing, full body, clean white background, concept art, sharp details",
"width": 768,
"height": 1024
}' --no-wait
# 拼接成参考表
belt app run infsh/stitch-images --input '{
"images": ["front.png", "three-quarter.png", "side.png", "back.png"],
"direction": "horizontal"
}'
2. 表情表
展示角色面部不同情绪:
┌────────┬────────┬────────┐
│ 中性 │ 开心 │ 愤怒 │
│ │ │ │
├────────┼────────┼────────┤
│ 悲伤 │ 惊讶 │ 思考 │
│ │ │ │
└────────┴────────┴────────┘
至少 6 种表情:中性、开心、愤怒、悲伤、惊讶、思考。
# 中性
belt app run falai/flux-dev-lora --input '{
"prompt": "character portrait, close-up face, young woman with short red hair and green eyes, neutral calm expression, clean white background, concept art, consistent character design",
"width": 512,
"height": 512
}' --no-wait
# 开心
belt app run falai/flux-dev-lora --input '{
"prompt": "character portrait, close-up face, young woman with short red hair and green eyes, warm genuine smile, happy expression, clean white background, concept art, consistent character design",
"width": 512,
"height": 512
}' --no-wait
# 愤怒
belt app run falai/flux-dev-lora --input '{
"prompt": "character portrait, close-up face, young woman with short red hair and green eyes, furrowed brows, angry determined expression, clean white background, concept art, consistent character design",
"width": 512,
"height": 512
}' --no-wait
# (继续:悲伤、惊讶、思考...)
3. 服装/服饰表
同一角色的多套服装:
| 服装 | 描述 |
|---|---|
| 休闲 | 飞行员夹克、T恤、牛仔裤 |
| 工作 | 西装外套、纽扣衬衫、西裤 |
| 运动 | 运动内衣、紧身裤、跑鞋 |
| 正式 | 晚礼服、高跟鞋 |
4. 色板表
记录准确的颜色以确保一致性:
角色:Maya Chen
皮肤: ████ #F5D0A9(暖米色)
头发: ████ #C0392B(红褐色)
眼睛: ████ #27AE60(翠绿色)
夹克: ████ #2C3E50(海军蓝)
T恤: ████ #ECF0F1(米白色)
牛仔裤: ████ #34495E(深石板色)
鞋子: ████ #E74C3C(亮红色)
描述锚定技术
最实用的一致性技术:编写一个 50 字以上的详细描述,并在每个提示词中完全重用。
模板
[年龄] [性别],[头发:颜色、长度、风格],[眼睛颜色] 眼睛,
[肤色],[面部特征:任何标志性特征],
穿着 [上衣:特定颜色和款式],[下装:特定颜色和款式],
[鞋子:特定颜色和款式],[配饰:特定物品]
示例
二十多岁年轻女性,短的不对称红褐色头发向右偏分,明亮的翠绿色眼睛,
浅暖肤色,左眼下方有一个小美人痣,穿着合身的海军蓝拉链飞行员夹克,
内搭白色圆领T恤,深石板色修身牛仔裤,亮红色帆布鞋,佩戴小银色耳钉
在每个提示词中 使用这个精确的描述块,仅更改动作/姿势/场景。
比例指南
| 风格 | 头部与身体比例 | 最佳适用场景 |
|---|---|---|
| 写实 | 7.5 : 1 | 电影、照片级真实 |
| 英雄 | 8 : 1 | 超级英雄、动作 |
| 动漫/漫画 | 5-6 : 1 | 日式动画风格 |
| 风格化 | 4-5 : 1 | 西方动画 |
| Q版/超级变形 | 2-3 : 1 | 可爱、喜剧、吉祥物 |
在提示词中包含比例风格:“写实比例” vs “动漫风格比例” vs “Q版比例”
使用LoRA确保一致性
对于需要大量同一角色图像的项目,训练一个 LoRA:
# 使用角色 LoRA 与 FLUX
belt app run falai/flux-dev-lora --input '{
"prompt": "maya_chen character, sitting at a cafe reading a book, warm afternoon light, candid photography style",
"loras": [{"path": "path/to/maya-chen-lora.safetensors", "scale": 0.8}]
}'
LoRA 训练提示:
- 需要 10-20 张角色参考图像(风格一致)
- 训练特定的触发词(例如“maya_chen”)
- 缩放因子 0.7-0.9 可平衡一致性与提示灵活性
- 缩放因子越低,创作自由度越高;越高,匹配越严格
常见一致性问题
| 问题 | 原因 | 缓解措施 |
|---|---|---|
| 发色漂移 | 模型每次对“红发”的解读不同 | 使用特定色调:“红褐色 #C0392B” |
| 眼睛颜色变化 | 在生成中优先级低 | 在提示词中尽早提到眼睛颜色 |
| 服装不一致 | 模型创造性地填充细节 | 明确描述每件衣物 |
| 年龄变化 | 年龄描述模糊 | 使用“二十多岁”而非“年轻” |
| 面部结构变化 | 不同生成 = 不同面部 | 使用 LoRA 或相同种子基础 |
| 比例漂移 | 风格解读不同 | 指定“7.5 头身比例” |
角色圣经模板
对于长期项目,维护一个角色圣经文档:
# 角色:Maya Chen
## 视觉描述(在所有提示词中使用)
二十多岁年轻女性,短的不对称红褐色头发...
[完整的 50+ 字锚定描述]
## 色板
- 皮肤:#F5D0A9
- 头发:#C0392B
- 眼睛:#27AE60
- 主要服装:海军蓝 #2C3E50
- 点缀色:红色 #E74C3C
## 性格笔记(用于表情/姿势选择)
- 自信但平易近人
- 默认表情:微微好奇的微笑
- 手势:说话时用手势,感兴趣时身体前倾
## 风格关键词
概念艺术,清晰线条,锐利细节,[艺术风格参考]
## LoRA(如已训练)
路径:./loras/maya-chen-v2.safetensors
触发词:maya_chen
推荐缩放因子:0.8
常见错误
| 错误 | 问题 | 修复 |
|---|---|---|
| 描述模糊 | 每次角色都不同 | 50 字以上详细锚定 |
| 提示词结构不一致 | 不同的侧重点 = 不同的结果 | 相同结构,仅更改动作/场景 |
| 仅生成一个视角 | 无法在不同情境下使用角色 | 创建完整的转身参考表 |
| 没有颜色文档 | 颜色在不同生成中漂移 | 记录准确的十六进制代码 |
| 跳过表情表 | 角色感觉单一维度 | 生成 6 种以上表情 |
| 大项目未使用LoRA | 不一致性累积 | 对于 10 张以上图像的项目,训练 LoRA |
相关技能
npx skills add inference-sh/skills@ai-image-generation
npx skills add inference-sh/skills@flux-image
npx skills add inference-sh/skills@prompt-engineering
浏览所有应用:belt app list