Nodes/ComfyUI Inspire Pack/Apply Regional Adapters (Inspire)
ComfyUI Node Runs on cloud

Apply Regional Adapters (Inspire)

The Exit Node of Inspire's Regional Setup

By ltdrdata·Created 3 years ago·Updated about 14 hours ago· 831
Apply Regional Adapters (Inspire)
  • model
  • positive
  • negative
  • regional_adapter1
  • MODEL
  • positive
  • negative

Two people in one picture, and the red hair migrates to the wrong head. That's the whole reason regional prompting exists, and it's the problem this node finishes solving - except the thing being scoped to a region isn't a prompt this time, it's a reference image. IPAdapter, InstantID, PuLID, Redux: each one gets its own masked patch of canvas instead of fighting over the whole frame.

Apply Regional Adapters is the last link in that chain, so it looks useless on its own. You build entries elsewhere - Regional Adapter (Inspire) or its color-mask twin - and this node is what actually writes them into your model and your conditioning.

Where it sits

The modern Inspire setup is three steps: a model helper loads the adapter's files and hands you a pipe (IPAdapter Model Helper, PuLID Model Helper, InstantID Model Helper, Redux Model Helper); optionally a pipe options node adjusts what only that family has; then Regional Adapter turns pipe + reference image + mask into one REGIONAL_ADAPTER entry. Do that once per region and you have a stack of entries. Apply Regional Adapters takes the stack.

The older Regional IPAdapter * (Inspire) nodes and Apply Regional IPAdapters are deprecated. Saved workflows still load and run, but if you're starting fresh, this is the path.

What it actually does

Feed it a pipeline of entries and it walks them in the order you wired them, in two passes. First the entries that touch the model patch it in place - InstantID's attention patch, PuLID's attention injection, an IPAdapter's cross-attention. Then the entries that need to say something to the prompt get their pass, which is why positive and negative are optional on paper but mandatory in practice: if any entry you connected modifies the prompt and you left the conditioning unlinked, the node stops with an error naming that entry.

Finally, entries that give their region its own copy of the prompt produce copies - one conditioning per region, each with its mask baked in by ComfyUI's own Conditioning (Set Mask) machinery. Region masks of different sizes get stretched to one size first, the same way the sampler would stretch them. And the leftover canvas that no region covers keeps the plain prompt, because without that the uncovered area renders as flat grey and people file bug reports about it.

Outputs are simply MODEL, positive, negative. The model goes to your sampler's model, the two conditionings to positive and negative. That's it - no other consumer exists.

Inputs worth knowing

  • model (required): your checkpoint's model, or a model already carrying anything else you want underneath the regional entries.
  • positive / negative: the base prompt. Wire both or the node has nothing to copy into regions.
  • regional_adapter1: the first entry. Connect it and the node grows another socket for the next one - that's a bit of JavaScript in the pack adding slots as you go, so you're not hunting for a "how many regions" setting.

Install

The pack is ltdrdata/ComfyUI-Inspire-Pack, by the person who also maintains ComfyUI-Manager and Impact Pack. In Manager, search "ComfyUI Inspire Pack" and restart. By hand:

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

The pack's own requirements are light (matplotlib, cachetools, numpy, webcolors, opencv-python). Everything heavy is conditional on what you plug in: IPAdapter Plus presets need cubiq's IPAdapter_plus, InstantID and PuLID need those packs plus additional_requirements.txt (insightface, facexlib, and exactly one of onnxruntime / onnxruntime-gpu - installing the CPU build over the GPU one silently turns CUDA off). The FLUX.1 and SD3.5 IPAdapter presets are implemented inside Inspire and need neither.

Where people get burned

The mask covers everything, or nothing. Without a mask on an entry it spreads over the whole picture, which is a normal IPAdapter and a confusing regional test.

Two people, one seed, one region gets no face. With several subjects in frame the sampler decides who stands where; on some seeds the person in a region isn't the one your reference is for. Reroll or fix the composition - this is a sampling property, not a bug.

A third-party apply node after this one keeps writing. Something like Apply InstantID Advanced placed downstream patches the model it receives, so re-running after nudging its weight can give a different picture than a fresh run from scratch. Keep the regional pipeline as the only adapter writer if you want reproducible results.

Version coupling. Several Inspire nodes track Impact Pack releases closely; if something silently misbehaves after an update, update Impact Pack too before debugging.

CategoryInspirePack/Regional

Inputs (4)

NameTypeDefaultDescription
modelMODEL—
positiveoptCONDITIONING—
negativeoptCONDITIONING—
regional_adapter1optREGIONAL_ADAPTER—

Outputs (3)

NameTypeDescription
MODELMODEL—
positiveCONDITIONING—
negativeCONDITIONING—