InstantID Model Helper (Inspire)
InstantID's Three Files in One Node, Ready for Regional Use
- instantid_pipe
- instantid
- insightface
- control_net
InstantID was the January 2024 adapter that made people ask whether character LoRAs were finished. It wasn't - a face is not a character - but for one photo in, one consistent face out, nothing else did it as well on SDXL. Its real contribution was spatial: IdentityNet conditions on facial landmarks, so the generated face keeps the geometry of your reference instead of just its vibe.
The catch is that InstantID isn't one file. It's a model, a ControlNet, and an InsightFace face-analysis stack. This helper loads all three in one node and hands you the pipe that Regional Adapter (Inspire) wants, which means you can give InstantID a masked region instead of the whole canvas.
What it loads
Three things, in the order the plumbing cares about:
- instantid_file from
models/instantid- the IP-Adapter-shaped identity model. - control_net_name from
models/controlnet- InstantID's IdentityNet ControlNet, which is what injects landmarks into the region's copy of the prompt. - the face analyser, InsightFace, at the
provideryou pick (CPU, CUDA, ROCM, CoreML). It runs on your reference image to pull the face embedding and the five keypoints.
The loaders themselves come from cubiq's ComfyUI InstantID pack - Inspire calls its InstantIDModelLoader and InstantIDFaceAnalysis rather than reimplementing them. If that pack is missing you get an error naming it. That's why the README points at additional_requirements.txt; InsightFace needs pip install -r additional_requirements.txt from the Inspire pack folder, which brings in insightface and expects exactly one of onnxruntime or onnxruntime-gpu. Install the one that matches your machine: the CPU build over the top of the GPU build turns CUDA off without a word of complaint.
On first use InsightFace fetches its own model (antelopev2 into models/insightface/models) and facexlib pulls its detection weights into its package folder. First run is slow and quiet. That's normal.
cache_mode, and why you care
Two choices: insightface only and none. InsightFace's initialisation is the expensive part of InstantID - hundreds of megabytes of ONNX models, several seconds of setup - so caching it in Inspire's backend cache means a second workflow doesn't pay for it again. The cache is shared with PuLID Model Helper (Inspire) for the same provider, so if you run both, you pay once. If you're debugging something weird with face detection, none gives you a clean reload.
Outputs
- instantid_pipe →
InstantID Pipe Options (Inspire)if you want to setcontrolnet_strengthor a pose image, otherwise straight intoRegional Adapter (Inspire). - instantid, insightface, control_net - the raw pieces, in the types cubiq's pack expects. The README says these fit that pack's nodes, so you can drop this helper into an existing non-regional InstantID workflow and keep everything downstream.
- The pipe itself goes to
Regional Adapteronly. Don't try to feed it to IPAdapter nodes.
Read this before you build a business on it
InstantID is SDXL-only and the reference repo went dormant in mid-2024; the ecosystem moved on, and identity work that used to be InstantID's job is now mostly instruction-editing models. It still works, and working is what matters when you have an SDXL checkpoint you like.
The licensing is the sharper edge. The code is Apache 2.0 but the checkpoints are research-only and the face models come from InsightFace, which is non-commercial. That combination means the obvious commercial use - a paid avatar service - is the one you can't do. Worth knowing before you build a workflow around it rather than after, which is when most people find out.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Inspire-Pack
git clone https://github.com/cubiq/ComfyUI_InstantID
pip install -r ComfyUI-Inspire-Pack/requirements.txt
pip install -r ComfyUI-Inspire-Pack/additional_requirements.txt
pip install onnxruntime-gpu # or plain onnxruntime
Then restart, and put ip-adapter.bin in models/instantid and diffusion_pytorch_model.safetensors in models/controlnet. Both dropdowns are empty until the files exist, which is the usual "the node has no options" complaint.
Troubleshooting
If either dropdown is empty, the files aren't in the folders the node scans - and note the filenames have to match what's on disk, this node doesn't do fuzzy matching.
If you get a CUDA-vs-CPU performance surprise, check which onnxruntime is actually installed:
pip list | grep onnxruntime
Two entries is the failure state. Uninstall both, install one.
And if the reference image genuinely has no face at a usable size, recognition fails - the pack searches detector sizes from 640 down before giving up. A tilted headshot or a face at 30 pixels wide in a group photo won't cut it.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| instantid_file | COMBO | 0 options: | |
| control_net_name | COMBO | 0 options: | |
| provider | COMBO | 4 options: CPU, CUDA, ROCM, CoreML | |
| cache_mode | COMBO | 2 options: insightface only, none |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| instantid_pipe | INSTANTID_PIPE | — |
| instantid | INSTANTID | — |
| insightface | FACEANALYSIS | — |
| control_net | CONTROL_NET | — |