人像生成 #

人像生成概述 #

人像生成特点 #

人像生成是 AI 绘画的重要应用领域,需要特别关注面部细节、皮肤质感、光影效果等。

text
┌─────────────────────────────────────────────────────────────┐
│                    人像生成要点                              │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  面部细节:                                                  │
│  ├── 五官比例协调                                           │
│  ├── 眼睛细节                                               │
│  ├── 皮肤质感                                               │
│  └── 表情自然                                               │
│                                                             │
│  光影效果:                                                  │
│  ├── 面部光影                                               │
│  ├── 眼神光                                                 │
│  ├── 头发高光                                               │
│  └── 环境光                                                 │
│                                                             │
│  整体效果:                                                  │
│  ├── 构图合理                                               │
│  ├── 背景协调                                               │
│  ├── 风格一致                                               │
│  └── 细节丰富                                               │
│                                                             │
└─────────────────────────────────────────────────────────────┘

基础人像工作流 #

工作流结构 #

text
基础人像生成工作流:

┌─────────────────────────────────────────────────────────────┐
│                                                             │
│  模型选择                                                   │
│  ┌─────────────┐                                           │
│  │ Load        │                                           │
│  │ Checkpoint  │──→ 选择写实/人像专用模型                   │
│  └─────────────┘                                           │
│         │                                                   │
│         ▼                                                   │
│  提示词设置                                                 │
│  ┌─────────────┐     ┌─────────────┐                       │
│  │ CLIP Text   │     │ CLIP Text   │                       │
│  │ Encode (+)  │     │ Encode (-)  │                       │
│  │ 人像描述    │     │ 负面词      │                       │
│  └─────────────┘     └─────────────┘                       │
│         │                   │                               │
│         └─────────┬─────────┘                               │
│                   │                                         │
│                   ▼                                         │
│           ┌─────────────┐                                   │
│           │ KSampler    │                                   │
│           │ 人像参数    │                                   │
│           └─────────────┘                                   │
│                   │                                         │
│                   ▼                                         │
│           ┌─────────────┐                                   │
│           │ VAE Decode  │                                   │
│           └─────────────┘                                   │
│                   │                                         │
│                   ▼                                         │
│           ┌─────────────┐                                   │
│           │ Save Image  │                                   │
│           └─────────────┘                                   │
│                                                             │
└─────────────────────────────────────────────────────────────┘

模型选择 #

text
推荐人像模型:

写实风格:
├── realisticVisionV51 - 高质量写实
├── majicmixRealistic - 真实质感
├── absolutereality - 真实场景
└── deliberate_v3 - 细腻写实

艺术风格:
├── dreamshaper_8 - 通用艺术
├── deliberate_v3 - 多风格
└── revAnimated - 动漫风格

专业人像:
├── portraitplus - 人像专用
├── realisticVisionV51 - 写真人像
└── 使用人像 LoRA 增强

提示词技巧 #

人像提示词模板 #

text
基础人像模板:

"portrait of a [age] [gender],
[appearance details],
[expression],
[pose],
[location/background],
[lighting],
[style],
[quality tags]"

示例:
"portrait of a young woman,
long brown hair, blue eyes, gentle smile,
looking at camera,
standing in a flower garden,
soft sunlight, golden hour,
portrait photography, 8k, masterpiece,
highly detailed skin, sharp focus"

外貌描述 #

text
年龄描述:
├── young, young adult
├── middle-aged
├── elderly
└── specific age: "25 years old"

性别描述:
├── woman, man
├── girl, boy
└── lady, gentleman

面部特征:
├── eyes: blue eyes, brown eyes, green eyes
├── hair: long hair, short hair, curly hair
├── skin: fair skin, tan skin, dark skin
├── face: round face, oval face
└── features: freckles, dimples

表情描述:
├── smile, gentle smile, bright smile
├── serious expression
├── thoughtful look
└── natural expression

光影描述 #

text
光线类型:
├── natural light - 自然光
├── studio lighting - 摄影棚灯光
├── golden hour - 黄金时刻
├── soft lighting - 柔和光线
├── dramatic lighting - 戏剧性光线
└── rim lighting - 轮廓光

光线方向:
├── front lighting - 正面光
├── side lighting - 侧面光
├── back lighting - 逆光
└── overhead lighting - 顶光

特殊效果:
├── bokeh - 背景虚化
├── lens flare - 镜头光晕
├── hair light - 头发光
└── catch light - 眼神光

负面提示词 #

text
人像专用负面词:

基础负面:
"ugly, deformed, noisy, blurry,
low contrast, low quality,
bad anatomy, bad proportions"

面部负面:
"bad face, poorly drawn face,
extra eyes, missing eyes,
bad eyes, crossed eyes,
bad nose, bad mouth,
bad teeth, double head"

皮肤负面:
"bad skin, skin spots,
acnes, skin blemishes,
wrinkles, age spot"

手部负面:
"bad hands, poorly drawn hands,
extra fingers, missing fingers,
malformed hands, mutated hands"

完整负面模板:
"(worst quality:2), (low quality:2),
(normal quality:2), lowres,
bad anatomy, bad hands,
skin spots, acnes, skin blemishes,
age spot, glans,
extra fingers, fewer fingers,
strange fingers, bad hand,
(bad face:1.2), (bad eyes:1.2)"

参数优化 #

采样参数 #

text
人像推荐参数:

分辨率:
├── 512 x 768 - 竖向人像
├── 512 x 640 - 4:5 比例
└── 768 x 1024 - 高分辨率

采样器:
├── dpmpp_2m - 推荐
├── dpmpp_2m_sde - 高质量
└── euler_a - 快速预览

步数:
├── 预览:20-25
├── 标准:25-30
└── 高质量:30-40

CFG:
├── 写实:7-8
├── 艺术:8-10
└── 风格化:6-7

人像 LoRA #

text
推荐人像 LoRA:

写实增强:
├── detail_tweaker - 细节调整
├── add_detail - 增加细节
└── realistic_skin - 真实皮肤

面部优化:
├── face_detailer - 面部细节
├── beauty - 美化效果
└── portrait_helper - 人像辅助

使用方法:
Load Checkpoint → LoraLoader → KSampler

权重建议:
├── 细节 LoRA:0.5-0.8
├── 风格 LoRA:0.6-0.9
└── 组合使用:总权重 < 1.5

高级技巧 #

面部修复 #

text
使用 FaceDetailer 节点:

工作流:
基础生成 → FaceDetailer → 输出

参数:
├── guide_size: 面部大小
├── guide_size_for: 参考类型
├── max_size: 最大尺寸
├── steps: 修复步数
└── denoise: 修复强度

效果:
├── 改善面部细节
├── 修复五官问题
└── 提升整体质量

人像放大 #

text
人像高清放大工作流:

阶段 1:基础生成
├── 512x768 分辨率
├── 标准参数
└── 确定构图

阶段 2:放大
├── LatentUpscale 2x
├── 或 ImageUpscaleWithModel
└── 到目标分辨率

阶段 3:细节增强
├── KSampler (denoise: 0.3-0.5)
├── 添加细节
└── 可选面部修复

阶段 4:最终输出
├── VAE Decode
└── Save Image

多人像生成 #

text
多人像技巧:

1. 使用 ControlNet
   ├── OpenPose 控制姿势
   ├── 确保人物位置
   └── 避免重叠

2. 分区域生成
   ├── 区域条件控制
   ├── 分别生成人物
   └── 后期合成

3. 提示词技巧
   ├── 清晰描述每个人物
   ├── 使用位置描述
   └── "two women, standing together,
        one on the left, one on the right"

常见问题 #

问题 1:面部变形 #

text
解决方法:
├── 添加面部负面词
├── 使用 FaceDetailer
├── 调整 CFG 值
├── 增加采样步数
└── 使用人像专用模型

问题 2:手部问题 #

text
解决方法:
├── 添加手部负面词
├── 使用手部修复 LoRA
├── 遮挡手部区域
├── 后期 Inpainting 修复
└── 多次生成选择最佳

问题 3:皮肤质感差 #

text
解决方法:
├── 添加皮肤相关提示词
├── 使用皮肤 LoRA
├── 调整 VAE
├── 增加细节步数
└── 使用高清放大

下一步 #

现在你已经掌握了人像生成,接下来学习 风景创作,了解如何生成高质量风景图像。

最后更新:2026-04-05