Loading...
Loading...
借助参考表和LoRA技术实现AI生成图像中的角色一致性。涵盖多角度视图表、表情表、调色板以及风格一致性技巧。适用场景:角色设计、游戏美术、插画、动画、漫画、视觉小说。相关关键词:角色设计、角色表、角色一致性、角色参考、多角度视图表、表情表、角色美术、一致性角色、角色概念、参考表、角色创建、OC设计、角色设定集
npx skill4agent add skill-zero/s character-design-sheetcurl -fsSL https://cli.inference.sh | sh && infsh login
# 生成角色概念
infsh 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
}'| 技术 | 一致性 | 投入成本 | 适用场景 |
|---|---|---|---|
| FLUX LoRA(基于角色训练) | 极高 | 高(需要训练数据) | 长期项目、大量图像生成 |
| 详细描述锚点 | 中高 | 低 | 快速项目、少量图像生成 |
| 相同种子+相似提示词 | 中等 | 低 | 单一姿势的变体生成 |
| 图生图优化 | 中等 | 中等 | 优化现有图像 |
| 提示词中加入参考图像 | 不稳定 | 低 | 模型支持该功能时 |
┌────────┬────────┬────────┬────────┐
│ │ │ │ │
│ 正面 │ 四分之三视角 │ 侧面 │ 背面 │
│ │ │ │ │
└────────┴────────┴────────┴────────┘# 生成正面视图
infsh 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
# 生成四分之三视角(相同描述)
infsh 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
# 生成侧面视图
infsh 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
# 生成背面视图
infsh 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
# 拼接成参考表
infsh app run infsh/stitch-images --input '{
"images": ["front.png", "three-quarter.png", "side.png", "back.png"],
"direction": "horizontal"
}'┌────────┬────────┬────────┐
│ 中性 │ 开心 │ 愤怒 │
│ │ │ │
├────────┼────────┼────────┤
│ 悲伤 │ 惊讶 │ 思考 │
│ │ │ │
└────────┴────────┴────────┘# 中性表情
infsh 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
# 开心表情
infsh 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
# 愤怒表情
infsh 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
# (继续生成悲伤、惊讶、思考表情...)| 服装类型 | 描述 |
|---|---|
| 休闲装 | 飞行员夹克、T恤、牛仔裤 |
| 工作装 | 西装外套、衬衫、西裤 |
| 运动装 | 运动内衣、紧身裤、跑鞋 |
| 正装 | 晚礼服、高跟鞋 |
角色:Maya Chen
肤色: ████ #F5D0A9(暖米色)
发色: ████ #C0392B(赤褐色)
瞳色: ████ #27AE60(祖母绿)
夹克: ████ #2C3E50(藏青色)
T恤: ████ #ECF0F1(米白色)
牛仔裤: ████ #34495E(深灰蓝)
鞋子: ████ #E74C3C(亮红色)[年龄] [性别],拥有[头发:颜色、长度、样式],[瞳色]眼睛,
[肤色],[面部特征:独特标记],
穿着[上衣:具体颜色和样式],[下装:具体颜色和样式],
[鞋子:具体颜色和样式],[配饰:具体物品]二十五岁左右的年轻女性,留着偏分至右侧的短款不对称赤褐色头发,
明亮的祖母绿眼睛,浅暖肤色,左眼下方有一颗小美人痣,
穿着带有银色拉链的修身藏青色飞行员夹克,内搭白色圆领T恤,
深灰蓝修身牛仔裤,脚穿亮红色帆布运动鞋,佩戴小巧的银色耳钉| 风格 | 头身比 | 适用场景 |
|---|---|---|
| 写实风格 | 7.5 : 1 | 影视、照片级写实 |
| 英雄风格 | 8 : 1 | 超级英雄、动作题材 |
| 动漫/漫画风格 | 5-6 : 1 | 日式动画风格 |
| 风格化 | 4-5 : 1 | 西式动画 |
| Q版/超变形 | 2-3 : 1 | 可爱风、喜剧、吉祥物 |
# 结合角色LoRA使用FLUX
infsh 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}]
}'| 问题 | 原因 | 解决方法 |
|---|---|---|
| 发色偏差 | 模型对“红发”的理解每次不同 | 使用具体色号:“赤褐色 #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-engineeringinfsh app list