Easy Apply PuLID (Advanced)(applyPulIDADV)
Easy Apply PuLID (Advanced) node from ComfyUI-Easy-Use.
apply Pul IDADV
Description
The Easy Apply PuLID (Advanced) node applies PuLID face-identity conditioning to a diffusion model. It is the advanced variant of the standard Easy Apply PuLID node, adding extra controls for identity projection, fidelity, noise, scheduling, and optional attention masking.
Inputs
-
model (
MODEL, required): The base diffusion model that receives the PuLID identity injection. -
pulid_file (
COMBO, required): Selects the PuLID model file used to encode the input identity. -
insightface (
COMBO, required): The backend used for face detection and recognition. Options:CPU,CUDA,ROCM. -
image (
IMAGE, required): The source image(s) containing the face identity to apply. -
weight (
FLOAT, default1.0, range-1.0to5.0): The strength of the identity injection. Higher values strengthen the effect, lower values weaken it, and negative values push away from the provided identity. -
projection (
COMBO, defaultortho_v2): The projection used on the identity embedding.ortho_v2is the default,orthois the previous orthogonal projection, andnonedisables projection. -
fidelity (
INT, default8, range0to32): Controls how faithfully the injected face preserves the input identity. Higher values generally increase identity resemblance. -
noise (
FLOAT, default0.0, range-1.0to1.0): Adds noise to the identity embedding. This can be used to add variation while keeping the same identity. -
start_at (
FLOAT, default0.0, range0.0to1.0): The denoising step fraction at which PuLID application begins. -
end_at (
FLOAT, default1.0, range0.0to1.0): The denoising step fraction at which PuLID application ends. -
attn_mask (
MASK, optional): An optional attention mask that restricts the PuLID injection to specific image regions.
Outputs
None — the updated source defines no output sockets. The PuLID application is performed on the supplied model; no separate MODEL output is exposed in this version.
Usage Notes
- PuLID is applied between
start_atandend_atof the denoising schedule. With the defaults, it is active for the entire sampling process. - To inject identity only during the later part of sampling, set
start_atabove0.0. To stop applying it before the final steps, setend_atbelow1.0. - The
insightfacebackend should match your runtime:CUDAfor NVIDIA GPUs,ROCMfor AMD GPUs, orCPUfor CPU-only operation. - Higher
fidelityvalues generally produce stronger identity preservation, while lower values allow more flexibility in expression, pose, and style. weightinteracts withfidelity: increasing both can produce a stronger identity lock, while reducing one or both gives the model more freedom.- Using
projection = "none"skips the orthogonal projection and may be useful for comparing raw identity embedding behavior. - When an
attn_maskis supplied, the identity injection is localized to the masked region instead of applying globally.
Comments
Sign in with GitHub to join the discussion.