Nodes/ComfyUI Inspire Pack/PuLID Model Helper (Inspire)
ComfyUI Node Runs on cloud

PuLID Model Helper (Inspire)

SDXL or FLUX Faces From One Local-File Node

By ltdrdata·Created 3 years ago·Updated about 14 hours ago· 831
PuLID Model Helper (Inspire)
    • pulid_pipe
    • pulid
    • eva_clip
    • face_analysis
    ◄pulid_file▾►
    ◄provider▾►
    ◄cache_mode▾►

    PuLID beat InstantID for one reason that has nothing to do with quality: it shipped a FLUX port, and InstantID didn't. Its actual technical trick is nicer than that, though. Every identity adapter before it degraded style, detail and prompt adherence when it injected a face - the "ID pollution" problem - and PuLID trains two parallel branches with a contrastive loss so the identity-conditioned path stays close to the unconditioned one's output distribution. In practice that means the face arrives without the whole picture turning into the face.

    This helper loads PuLID's parts and gives you the pipe. What makes it worth its friction is that the same node handles both the SDXL model and the FLUX.1 model - the file you pick decides which kind you get.

    What it loads

    Three things, and one of them is where people get stuck:

    • pulid_file - from models/pulid. An SDXL file gives you the SDXL behaviour, with PuLID_ComfyUI's ranges and method settings; a FLUX.1 file averages the faces of every picture in your reference batch, which is different behaviour worth knowing before you feed it a group photo.
    • EVA-CLIP - EVA02_CLIP_L_336_psz14_s6B.pt, about 856 MB. Inspire reads it and never downloads it. If it isn't in models/clip_vision or in your Hugging Face cache, you supply it yourself. This is the number one reason the node fails on a fresh machine, and the error won't necessarily mention EVA-CLIP by name in a way you'd recognise.
    • InsightFace - the face analyser, at the provider you choose (CPU, CUDA, ROCM). Pulls embeddings and landmarks from the reference.

    InsightFace and facexlib come from the pack's additional_requirements.txt - insightface, facexlib, and exactly one of onnxruntime or onnxruntime-gpu. On first run those libraries fetch what they're missing themselves: antelopev2 into models/insightface/models, facexlib's detection and parsing weights into its own package folder. Expect a long quiet first run.

    cache_mode is the whole point

    Four choices: insightface only, eva_clip only, all, none. Both the face analysis and EVA-CLIP are expensive to initialise and neither changes between runs, so caching them in Inspire's backend cache means the second workflow doesn't reload them. all is what you want once things work. The cache is shared with InstantID Model Helper (Inspire) for the same provider - run both adapters and you pay for InsightFace once.

    Use none while debugging. Half of PuLID problems are stale cached face analysis after you changed provider or model.

    Outputs

    • pulid_pipe → PuLID Pipe Options (Inspire) if you want to set method, otherwise straight to Regional Adapter (Inspire).
    • pulid, eva_clip, face_analysis - the raw components. For an SDXL file these also fit the nodes of cubiq's PuLID_ComfyUI, so this helper drops into an existing non-regional workflow.
    • For a FLUX.1 file, pulid gives nothing. That's not a bug; the FLUX path is implemented inside Inspire on ComfyUI's own model objects, so there's no separate PuLID model to hand out.

    Install

    cd ComfyUI/custom_nodes
    git clone https://github.com/ltdrdata/ComfyUI-Inspire-Pack
    pip install -r ComfyUI-Inspire-Pack/requirements.txt
    pip install -r ComfyUI-Inspire-Pack/additional_requirements.txt
    pip install onnxruntime-gpu   # or plain onnxruntime - never both
    

    Manager gets you the pack; the face-analysis deps are a manual step by design, since they're only needed for the face-adjacent nodes. Download EVA02_CLIP_L_336_psz14_s6B.pt from the EVA-CLIP release on Hugging Face into models/clip_vision, and put your PuLID weights in models/pulid.

    Small warning on the onnxruntime choice: installing the CPU package over the GPU one replaces it in the same folder and silently turns CUDA off. pip list | grep onnxruntime should show exactly one line.

    Reality check, and the licence

    FLUX + PuLID wants a lot of VRAM; 16GB is the comfortable figure, and the packs that wrap it report 12GB-only paths through their own demos rather than through a full ComfyUI graph. If you're on 8GB, this is where you stop.

    PuLID's code is Apache 2.0 but it sits on InsightFace's non-commercial face models, so the commercial story is murky in exactly the way InstantID's is. It's also part of the adapter generation that instruction-editing models have been steadily displacing - worth knowing if you're choosing where to invest your workflow time, irrelevant if you already have a checkpoint and a face you like.

    Troubleshooting

    "No face was found in the reference image." The pack retries detector sizes down from 640 before giving up, so this means genuinely no usable face: too small, too tilted, or stylised art InsightFace doesn't recognise.

    FLUX PuLID looks like no effect. Check the file is actually a FLUX.1 PuLID, not the SDXL one. And for anyone reading ahead: FLUX.2 klein isn't covered - the published pulid_flux2_klein_v2 weights have untrained layers where the face gets injected, and FLUX.2 takes references through core's ReferenceLatent instead.

    CategoryInspirePack/models

    Inputs (3)

    NameTypeDefaultDescription
    pulid_fileCOMBOA PuLID model for SDXL or for FLUX.1.
    providerCOMBO3 options: CPU, CUDA, ROCM
    cache_modeCOMBO4 options: insightface only, eva_clip only, all, none

    Outputs (4)

    NameTypeDescription
    pulid_pipePULID_PIPE—
    pulidPULID—
    eva_clipEVA_CLIP—
    face_analysisFACEANALYSIS—