Nodes/ComfyUI Impact Pack/IPAdapterApply (SEGS)
ComfyUI Node Runs on cloud

IPAdapterApply (SEGS)

Steer each detected region toward a reference image during detailing

By ltdrdata·Created 3 years ago·Updated 4 months ago· 3,242
IPAdapterApply (SEGS)
  • segs
  • ipadapter_pipe
  • reference_image
  • neg_image
  • SEGS
weight0.70
noise0.40
weight_typechannel penalty
start_at0.000
end_at0.900
unfold_batchfalse
faceid_v2false
weight_v21.00
context_crop_factor1.2
combine_embeds

Detailing a face is one thing. Detailing it toward a specific reference face is another. IPAdapterApply (SEGS) attaches an IPAdapter reference to your detected regions, so that when the detailer re-renders each one, it's guided by an image you supply instead of prompt text alone. The classic use: you have a portrait you want the detailed faces to resemble, so you feed that reference in here and the detail pass pulls toward it. It applies the IPAdapter per SEG, which is what makes it region-aware rather than blanket.

This is a bridge node. It doesn't detail anything itself - it decorates the SEGS with IPAdapter conditioning that a downstream Detailer then honors.

How it works

You pass in your SEGS plus an ipadapter_pipe (the bundled IPAdapter model + CLIP vision, prepared upstream) and a reference_image. The node embeds that reference and stores it on the SEGS as per-region conditioning. When those SEGS reach a detailer, each region's sampling pass is steered toward the reference at the weight you set. It's the SEGS-scoped version of a normal IPAdapter apply.

The inputs and outputs that matter

  • segs (SEGS) - the regions to attach the reference to.
  • ipadapter_pipe (IPADAPTER_PIPE) - the IPAdapter model bundle. You build this upstream with the IPAdapter pack's provider nodes; it carries the adapter model and CLIP vision encoder.
  • reference_image (IMAGE) - the image you want the regions to resemble. This is the whole point of the node.
  • weight (default 0.7) - how strongly the reference pulls. Higher sticks closer to the reference; too high and every region converges on it and looks stamped-on. 0.5–0.8 is the working range.
  • start_at / end_at (defaults 0 and 0.9) - the fraction of sampling over which the reference applies. Ending before 1.0 lets the final steps settle naturally.
  • faceid_v2 + weight_v2 - turn these on when you're using a FaceID-style adapter, which needs its own second weight.

The single output is SEGS - now carrying the reference - which you feed into a Detailer.

How to install it

Install the pack with ComfyUI Manager (search ComfyUI Impact Pack, Install, restart) or manually:

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

Run the pip in ComfyUI's Python environment and restart. Critically, this node needs an IPAdapter node pack installed separately to produce the IPADAPTER_PIPE, plus the IPAdapter model files and a CLIP vision model in your models folders. The README specifically warns that Impact Pack is incompatible with outdated versions of ComfyUI IPAdapter Plus - if this node misbehaves, updating that pack is the first move.

Common issues & troubleshooting

Type errors on the ipadapter_pipe input, or the node throws on load. This is the compatibility trap the README calls out: an out-of-date IPAdapter pack. Update the IPAdapter node pack to a current version and rebuild the pipe.

Every detailed region looks like the reference, uniformly. Your weight is too high. Bring it down - the reference should influence the region, not overwrite it.

Missing CLIP vision / model not found. IPAdapter needs both its adapter model and a CLIP vision model present. If the pipe provider errors, that's usually a missing file, not this node's fault.

Nothing changed. This node only tags the SEGS; the actual application happens in the detailer. If you didn't route the output SEGS into a Detailer, the reference never gets used.

CategoryImpactPack/Util

Inputs (14)

NameTypeDefaultDescription
segsSEGS
ipadapter_pipeIPADAPTER_PIPE
weightFLOAT0.70-1–3
noiseFLOAT0.400–1
weight_typeCOMBOchannel penalty3 options: original, linear, channel penalty
start_atFLOAT0.0000–1
end_atFLOAT0.9000–1
unfold_batchBOOLEANfalse
faceid_v2BOOLEANfalse
weight_v2FLOAT1.00-1–3
context_crop_factorFLOAT1.21–100
reference_imageIMAGE
combine_embedsoptCOMBO5 options: concat, add, subtract, average, norm average
neg_imageoptIMAGE

Outputs (1)

NameTypeDescription
SEGSSEGS