IPAdapter InsightFace Loader(IPAdapterInsightFaceLoader)
IPAdapter InsightFace Loader node from ComfyUI-IPAdapter-plus.
IP Adapter Insight Face Loader
Description
The IPAdapter InsightFace Loader node loads an InsightFace face analysis model and exposes it as an INSIGHTFACE object for use by IPAdapter FaceID workflows. InsightFace models provide the facial embeddings and landmarks that IPAdapter FaceID nodes rely on to preserve a subject's identity when applying an image prompt.
The node handles two decisions: which hardware backend InsightFace should run on, and which pre-packaged InsightFace model set to load. The resulting INSIGHTFACE object is passed directly into downstream nodes that perform face detection and embedding extraction, so this loader typically sits at the start of a FaceID pipeline.
Inputs
provider
Type: COMBO (required)
Options: CPU, CUDA, ROCM
Selects the execution provider used by the underlying ONNX runtime for InsightFace inference.
CPU: Runs on the CPU. Works on any machine and avoids using VRAM, but face detection and embedding extraction are noticeably slower.CUDA: Uses an NVIDIA GPU via CUDA. The fastest option on supported NVIDIA hardware and the usual choice when a compatible GPU is available.ROCM: Uses an AMD GPU via ROCm. Choose this on supported AMD hardware with a working ROCm installation.
Pick the option that matches your installed hardware and drivers. Selecting a GPU backend that is not properly configured will cause the load or later inference to fail.
model_name
Type: COMBO (required)
Options: buffalo_l, antelopev2
Selects which InsightFace model pack to load.
buffalo_l: The standard, widely used model pack. A good default for general FaceID work.antelopev2: An alternative model pack that some FaceID workflows use for different quality or accuracy characteristics.
The two packs are not interchangeable within a single workflow: nodes downstream expect the model they were designed for, and embedding compatibility differs between packs. If a FaceID workflow specifies a model name, match it here.
On first use, the selected model pack may need to be downloaded before it can be loaded. Ensure the required files are available locally or that the environment has network access.
Outputs
INSIGHTFACE
Type: INSIGHTFACE
The loaded InsightFace model object. Connect this output to the InsightFace input of IPAdapter FaceID nodes (for example, the IPAdapter FaceID Apply node) so they can detect faces and compute identity embeddings.
Usage Notes
- Place this loader near the beginning of a FaceID pipeline and reuse its output across all FaceID nodes in the workflow rather than loading the model multiple times.
- Choose
providerbased on your actual hardware.CUDAandROCMrequire the corresponding GPU stack to be installed and working; otherwise fall back toCPU. - Keep
model_nameconsistent with the FaceID workflow you are following. Switching packs changes the embeddings produced and can alter or break the identity transfer results. - The first execution can be slow because the model may need to be fetched and initialized. Subsequent runs reuse the loaded model.
Comments
Sign in with GitHub to join the discussion.