BFS (Best Face Swap)

141 00

BFS (Best Face Swap) 是一套专为 Qwen Image Edit (2509/2511) 和 Flux 2 Klein (4b/9b) 模型设计的 LoRA 集合。它旨在实现极高保真度的面部替换与完整的头部转移,同时确保肤色自然融合、光照一致以及解剖结构的合理性。

作者
Alissonerdx
触发词
face swap face from Image 1 to Image 2.
基础模型
Flux 2 Klein
BFS (Best Face Swap)

BFS (Best Face Swap) 是一套专为 Qwen Image Edit (2509/2511) 和 Flux 2 Klein (4b/9b) 模型设计的 LoRA 集合。它旨在实现极高保真度的面部替换与完整的头部转移,同时确保肤色自然融合、光照一致以及解剖结构的合理性。

BFS (Best Face Swap)

从细微的面部特征交换到包含发型和头骨结构的完整头部迁移,BFS 系列提供了不同层级的解决方案,能够无缝集成到现有的图像编辑工作流中。

版本概览与特性

版本适用模型核心特性输入顺序 (Img1 -> Img2)
BFS Face V1Qwen IE 2509仅交换面部区域,保留目标对象的头发、光照和背景。面部 -> 身体
BFS Head V1Qwen IE 2509完整头部交换(含头发),与目标身体自然融合。面部 -> 身体
BFS Head V2Qwen IE 2509改进的肤色匹配、姿态对齐及解剖一致性。面部 -> 身体
BFS Head V3Qwen IE 2509更稳定准确,输入顺序反转。身体 -> 面部
BFS Head V4Qwen IE 2509/2511更强的表情迁移能力与鲁棒性,输入顺序反转。身体 -> 面部
BFS Head V5Qwen IE 2511最新版本,支持原始版与合并版(V4+V5),表情重现更佳,输入顺序反转。身体 -> 面部
BFS Head V1Flux 2 Klein 4b/9b针对 Flux 架构优化,输入顺序反转。身体 -> 面部

⚠️ 重要提示:从 Head V3 开始,包括所有 Flux 版本,输入图片的顺序均发生了反转。请务必在连接节点时注意:Image 1 应为目标身体(Base),Image 2 应为源面部(Source)。

BFS Head V5 详解

作为 Qwen Image Edit 2511 工作流的最新成果,V5 提供了两种变体:

  1. 100% 原始版本:直接在 2511 模型上训练 5,500+ 步的结果。
  2. 合并版本:将 BFS Head V4 的特性合并到 V5 原始权重中。
    • 评估结论:合并版本在重现广泛表情方面表现更好,虽然仍非完美,但代表了当前的最佳方向。提供 Rank 16 (FP16) 和 Rank 32 (FP32) 两种精度选择。

提示词指南 (Prompting Strategy)

为了获得最佳效果,建议根据版本使用特定的提示词结构:

🟢 BFS Face V1 (标准顺序: 面部 -> 身体)

  • face swap face from Image 1 to Image 2.
  • 进阶:swap only the face (not the hair), match the skin tone to Image 2, keep Image 2 pose and lighting.

🔵 BFS Head V1/V2 (标准顺序: 面部 -> 身体)

  • head swap from Image 1 to Image 2 with perfect skin match
  • Head swap from Image 1 to Image 2, keep all facial details and hair from Image 1, blend naturally with Image 2's body.

🟣 BFS Head V3/V4/V5 & Flux (反转顺序: 身体 -> 面部)

  • V3: head_swap: start with Picture 1 as the base image... remove the head from Picture 1 completely and replace it with the head from Picture 2... blend the skin tones, shadows, and lighting naturally...
  • V4: h34d_sw4p: replace the head of Picture 1 by the head from Picture 2, strictly preserving the identity... ensure the new head mimics the identical expression, angle, and rotation found in Picture 1.
  • V5: head_swap: start with Picture 1 as the base image... replace it with the head from Picture 2, strictly preserving the hair, eye color, and nose structure of Picture 2. copy the eye direction, head rotation, and micro-expressions from Picture 1. high quality, sharp details, 4k
  • Flux: 类似 V5,强调 copy the direction of the eye, head rotation, micro expressions from Picture 1。

使用建议

  1. 明确输入角色:在使用 V3 及以后版本或 Flux 模型时,务必确认 Image 1 是你要保留身体和环境的“底图”,Image 2 是提供面部特征的“源图”。
  2. 表情控制:V4 和 V5 对微表情的捕捉能力更强。如果需要精确复制源图的表情,请在提示词中明确提及 micro-expressions 或 eye direction。
  3. 光照与融合:虽然 LoRA 会自动处理光照融合,但在提示词中强调 match lighting 或 natural blend 有助于提升最终的真实感。
  4. 模型选择:
    • 只需换脸不换发型?选 Face V1。
    • 需要换头且追求最高稳定性?选 Head V5 (Merged)。
    • 使用 Flux 2 Klein?选对应的 Flux V1 版本。

相关图书

Fix JPEG artifacts compression lora

Fix JPEG artifacts compression lora

Fix JPEG artifacts compression lora是一款基于图像编辑模型Flux Kontext开发的微调LoRA模型,此模型是用来修复JPEG压缩伪影。
Flux Kontext Makeup Remover

Flux Kontext Makeup Remover

Flux Kontext Makeup remover是一个专注于为浓妆女子卸妆的LoRA,基于 FLUX.1-Kontext-dev 模型进行训练,将真实人物的浓妆卸去。
CharacterSheet

CharacterSheet

CharacterSheet 是一系列图像编辑 LoRA,可将现有角色图像转换为清晰的多视图参考图。这些模型旨在在生成的视图中保留角色的身份、服装、比例和整体外观。
Flux Kontext PS1

Flux Kontext PS1

Flux Kontext PS1是一款基于图像编辑模型Flux Kontext开发的微调LoRA模型,核心功能是将图片转换为PS1风格的图片。