Files
ComfyUI/custom_nodes/comfyui_pulid_flux_ll/README_CN.md
jaidaken f09734b0ee
Some checks failed
Python Linting / Run Ruff (push) Has been cancelled
Python Linting / Run Pylint (push) Has been cancelled
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.10, [self-hosted Linux], stable) (push) Has been cancelled
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.11, [self-hosted Linux], stable) (push) Has been cancelled
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.12, [self-hosted Linux], stable) (push) Has been cancelled
Full Comfy CI Workflow Runs / test-unix-nightly (12.1, , linux, 3.11, [self-hosted Linux], nightly) (push) Has been cancelled
Execution Tests / test (macos-latest) (push) Has been cancelled
Execution Tests / test (ubuntu-latest) (push) Has been cancelled
Execution Tests / test (windows-latest) (push) Has been cancelled
Test server launches without errors / test (push) Has been cancelled
Unit Tests / test (macos-latest) (push) Has been cancelled
Unit Tests / test (ubuntu-latest) (push) Has been cancelled
Unit Tests / test (windows-2022) (push) Has been cancelled
Add custom nodes, Civitai loras (LFS), and vast.ai setup script
Includes 30 custom nodes committed directly, 7 Civitai-exclusive
loras stored via Git LFS, and a setup script that installs all
dependencies and downloads HuggingFace-hosted models on vast.ai.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 00:56:42 +00:00

7.2 KiB
Raw Blame History

English

在安装此插件之前,必须卸载或禁用ComfyUI-PuLID-Flux和其他PuLID Flux节点, 因为由于某些原因,我使用了同样的节点名ApplyPulidFlux

ComfyUI主体版本需要>=0.3.7

更新日志

2025.02.19

  • 解决多张人脸时选择的人脸嵌入量和对齐特征不是同一个人脸的问题。

2025.02.18

  • 支持从含有多张脸的图片中选择一张脸作为参考。示例工作流.

2025.01.27

  • 修改 facexlib 的模型路径为 ComfyUI/models/facexlib/.
  • 自动下载时 修改 Antelopev2 模型的路径为 ComfyUI/models/insightface/models/antelopev2/.
  • 修改 EVA_CLIP_L_14_336 的模型路径为 ComfyUI/models/clip/.

预览 (图片含工作流)

save api extended save api extended save api extended

安装

  • 手动
    cd custom_nodes
    git clone https://github.com/lldacing/ComfyUI_PuLID_Flux_ll.git
    cd ComfyUI_PuLID_Flux_ll
    pip install -r requirements.txt
    # 重启 ComfyUI

安装问题:

insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp(36): fatal error C1083: 无法打开包括文件: “Python.h”: No such file or directory
      error: command 'd:\\installed\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for insightface
Failed to build insightface

模型

可用的 Flux 模型

若使用 GGUF 需要安装 ComfyUI-GGUF

PuLID 模型

节点

  • PulidFluxModelLoader
  • PulidFluxInsightFaceLoader
  • PulidFluxEvaClipLoader
  • ApplyPulidFlux
  • FixPulidFluxPatch (已弃用)
  • PulidFluxOptions
    • input_faces_order - 对检测到的脸部边界框的排序规则。
      • left-right: 按列从左到右对bbox的左边界进行排序。
      • right-left: left-right的倒序按列从右到左对bbox的左边界进行排序
      • top-bottom: 按行从上到下对bbox的顶部边界进行排序。
      • bottom-top: top-bottom的倒序按行从下到上对bbox的顶部边界进行排序
      • small-large: 按bbox的面积从小到大排序。
      • large-small: 按bbox的面积从大到小排序。
    • input_faces_index - 从排序后的bbox选取的索引号。
    • input_faces_align_mode - 选择对齐脸部特征的检测方式。
      • 0: 旧版本方式,一张图片中有张脸时选择的脸部嵌入量和对齐特征可能不一致。
      • 1: 保持选择的脸部嵌入量和对齐特征一致。
      • 两种出图有细微差别,值1align_face结果图比0embed_face范围小一点。
  • PulidFluxFaceDetector
    • 用来检查在ApplyPulidFlux实际使用的面部特征。
    • input_faces_align_mode = 0时,embed_facealign_face 理论上应该是同一张脸,但它们由不同的检测器产生,可能检测到的数量不一致,因此两张图可能不是同一张脸。
    • input_faces_align_mode = 1时,embed_facealign_face 由相同的检测器产生,两张图始终是同一张脸。
    • face_bbox_image - 画出检测到的脸部边界框(embed_face的检测器结果)。

感谢

ToTheBeginning/PuLID

ComfyUI-PuLID-Flux

TeaCache

Comfy-WaveSpeed