Nodes/ComfyUI Inspire Pack/IPAdapter Model Helper [Manual] (Inspire)
ComfyUI Node Runs on cloud

IPAdapter Model Helper [Manual] (Inspire)

Skip the Presets, Pick Your Own Files

By ltdrdata·Created 3 years ago·Updated about 14 hours ago· 831
IPAdapter Model Helper [Manual] (Inspire)
  • model
  • clip
  • IPADAPTER_PIPE
  • IPADAPTER
  • CLIP_VISION
  • INSIGHTFACE
  • MODEL
  • CLIP
  • insightface_cache_key
  • clip_vision_cache_key
◄ipadapter_model▾►
◄clip_vision_model▾►
◄lora_model▾►
◄is_insightfacefalse►
◄lora_strength_model1.00►
◄lora_strength_clip1.00►
◄insightface_provider▾►
◄cache_modeinsightface only►
◄insightface_model_name▾►

The other IPAdapter helper in this pack gives you a dropdown of named presets - SDXL Plus, SD1.5 FaceID, that sort of thing - and those presets only work if your filenames match the preset's expectation exactly. Sensible, but the internet is full of re-uploaded ip-adapter-plus_sdxl_vit-h(1).safetensors. This node is the same loader with the preset list swapped out for three plain file pickers, so anything you actually have on disk can be loaded.

It's the one I reach for when a downloaded IPAdapter refuses to appear in the preset helper.

What it hands you

Everything you need for IPAdapter-style regional work, built from four choices you make:

  • model (required) - your checkpoint's model. It's here, rather than as an afterthought, because the helper applies the FaceID LoRA to it and hands it back.
  • ipadapter_model - the IPAdapter file itself, from models/ipadapter.
  • clip_vision_model - the matching CLIP vision encoder, from models/clip_vision. The pairing is on you now; that's the whole trade of a manual node.
  • lora_model - None or a FaceID LoRA from models/loras, with lora_strength_model and lora_strength_clip alongside. Only relevant for FaceID presets, which need a companion LoRA to work properly.
  • is_insightface - whether to load InsightFace at all. Flip it on for FaceID; leave it off for the plain and Plus models, and save yourself the InsightFace download.
  • insightface_provider - CPU, CUDA or ROCM, when you did flip it on.
  • cache_mode - insightface only, clip_vision only, all or none. Keeps whichever pieces in Inspire's backend cache so another workflow doesn't reload them. all is the sensible setting once a workflow is stable.

Outputs are generous: IPADAPTER_PIPE for the regional chain, plus the individual IPADAPTER, CLIP_VISION, INSIGHTFACE, MODEL and CLIP types for cubiq's own nodes, plus two cache keys as strings if you want to manage eviction yourself.

The FLUX.1 and SD3.5 wrinkle

The ipadapter_model list doesn't only read models/ipadapter. Files found in models/ipadapter-flux and models/xlabs/ipadapters are appended, marked (FLUX.1). Those are the IP-Adapters Inspire implements itself - ported from the InstantX and XLabs codebases - and they change the node's behaviour:

  • their pipe goes to Regional Adapter (Inspire) only; IPADAPTER, CLIP_VISION and the rest won't cooperate,
  • no IPAdapter Plus install is needed,
  • the LoRA strengths and insightface_model_name are ignored.

Pick the InstantX SD3.5 Large file and you get the same native path for SD3.5. If you're not sure which one you picked, the (FLUX.1) suffix is the tell.

For the InstantX FLUX file there's one hard-won setting: keep end_at on the Regional Adapter entry at 0.7. Past that the picture picks up thin vertical stripes, one per 16 pixels, and lowering weight doesn't fix it.

Extra model folders

The file lists also read whatever you point them at in extra_model_paths.yaml, under the keys ipadapter, clip_vision and loras. ComfyUI's example file has no ipadapter key, so add one:

my_models:
    base_path: /path/to/models
    ipadapter: ipadapter/
    clip_vision: clip_vision/
    loras: loras/

Restart after editing. This is the difference between "my IPAdapter folder is on another drive" and giving up.

Install

cd ComfyUI/custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Inspire-Pack
git clone https://github.com/cubiq/ComfyUI_IPAdapter_plus
pip install -r ComfyUI-Inspire-Pack/requirements.txt

Or Manager, searching both packs by name. IPAdapter Plus is required for anything that isn't a native FLUX.1/SD3.5 preset, and the README pins a minimum version - a build older than roughly March 2024 is incompatible with the pack.

Add InsightFace pieces only if you need FaceID:

pip install -r ComfyUI-Inspire-Pack/additional_requirements.txt
pip install onnxruntime-gpu   # or onnxruntime, not both

Where it goes wrong

Model mismatch. Pairing an SD1.5 IPAdapter with an SDXL checkpoint gives you garbage or an outright error naming SD1.5/SDXL. The vision encoder has to match too: ViT-H for the Plus models, bigG for the plain SDXL one.

Empty dropdowns. The file isn't in any folder the node scans - check extra_model_paths.yaml before reinstalling anything.

FaceID looks wrong. Check the LoRA is actually selected and is_insightface is on. FaceID without its LoRA produces a weak, generic face, which reads like "the adapter doesn't work" rather than "a file is missing".

CategoryInspirePack/models

Inputs (11)

NameTypeDefaultDescription
modelMODEL—
ipadapter_modelCOMBOThe files marked (FLUX.1), of models/ipadapter-flux and models/xlabs/ipadapters, and the InstantX file for SD3.5 Large are the IP-Adapters that Inspire implements itself; their pipe goes to Regional Adapter only. The InstantX file for FLUX.1: set end_at of Regional Adapter to 0.7, a later end_at lays vertical stripes over the picture.
clip_vision_modelCOMBO0 options:
lora_modelCOMBO1 options: None
is_insightfaceBOOLEANfalse—
lora_strength_modelFLOAT1.00-20–20—
lora_strength_clipFLOAT1.00-20–20—
insightface_providerCOMBO3 options: CPU, CUDA, ROCM
cache_modeCOMBOinsightface only4 options: insightface only, clip_vision only, all, none
clipoptCLIP—
insightface_model_nameoptCOMBO2 options: buffalo_l, antelopev2

Outputs (8)

NameTypeDescription
IPADAPTER_PIPEIPADAPTER_PIPE—
IPADAPTERIPADAPTER—
CLIP_VISIONCLIP_VISION—
INSIGHTFACEINSIGHTFACE—
MODELMODEL—
CLIPCLIP—
insightface_cache_keySTRING—
clip_vision_cache_keySTRING—