Run ComfyUI Easily with InstaSD

Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

ApplyPulid

Documentation for ApplyPulid Node in ComfyUI

Overview

The ApplyPulid node is a component of the PuLID ComfyUI repository, designed to integrate advanced facial identity control into generative workflows using a pretrained model called PuLID. It utilizes information from reference images to adjust the fidelity and style of images as they are generated. This node allows for fine-tuning and creative manipulation of images, providing more control over the output's resemblance to reference identities.

Node Functionality

What This Node Does

The ApplyPulid node modifies a given generative model by injecting identity information derived from reference images. The node performs facial analysis and utilizes pre-trained embeddings to guide the generation process, ensuring the outputs adhere more closely to specified identity parameters. This is particularly useful for maintaining fidelity to a reference image's identity while generating creative content.

Inputs

The node accepts the following inputs:

  • Model: The generative model to which the PuLID adjustments will be applied.
  • PuLID: The loaded PuLID model containing pre-trained weights necessary for identity adjustments.
  • EVA_CLIP: An instance of EVA_CLIP, used for creating embeddings from the reference images.
  • FaceAnalysis: The face analysis model used to detect and analyze facial features in the reference image.
  • Image: The reference image used to derive the identity characteristics for interpolation into the generative model.
  • Method: The method for applying weights, with options such as fidelity, style, or neutral.
  • Weight: A floating-point value dictating the strength of the applied adjustment, ranging from -1.0 to 5.0.
  • Start At and End At: Floating-point values to determine the percentage of the generation process during which adjustments are applied, ranging from 0.0 to 1.0.
  • Attn Mask (optional): An attention mask to refine where adjustments are applied spatially within the output.

Outputs

  • Model: The modified generative model, now integrated with identity adjustments as specified by the inputs.

Usage in ComfyUI Workflows

In a typical ComfyUI workflow, the ApplyPulid node can be used to enhance generative models by infusing them with specific identity characteristics. Here’s a basic outline of how it might fit into a workflow:

  1. Load Models: Use the appropriate loader nodes, such as PulidModelLoader and PulidEvaClipLoader, to initialize and prepare the required components.
  2. Facial Analysis: Ensure that the FaceAnalysis component is ready by loading it via PulidInsightFaceLoader.
  3. Integrate Identity Features: Use the ApplyPulid node to blend identity characteristics from a reference image into your generative model.
  4. Generate Images: Output images that maintain a desired resemblance to the reference identity according to the parameters set within the node’s inputs.

Special Features and Considerations

  • Advanced Controls: The node includes flexible parameters to tweak the degree of resemblance to the reference image, such as fidelity and style options, offering detailed control over the resulting image’s identity characteristics.
  • Compatibility Notes: For compatibility with other components and to achieve the best results, ensure that the IPAdapter extension is up-to-date.
  • Reference Image Quality: The quality and detail of the reference image greatly affect the adjustment process, as sharper and cleaner images yield better fidelity results.
  • Experimental Node: As documented in the repository, the node is in a beta stage, meaning future updates and improvements may alter its functionality or usage slightly.

With these considerations in mind, the ApplyPulid node provides a powerful tool for anyone working with identity-driven image generation in the ComfyUI environment.