IPAdapter ClipVision Enhancer(IPAdapterClipVisionEnhancer)
IPAdapter ClipVision Enhancer node from ComfyUI-IPAdapter-plus.
IP Adapter Clip Vision Enhancer
Description
The IPAdapter ClipVision Enhancer node (class IPAdapterClipVisionEnhancer) is an experimental IPAdapter node in the ipadapter/dev category. It applies IPAdapter conditioning using a reference image while exposing additional CLIP Vision enhancement controls for tile-based processing and enhancement blending.
The node combines the standard advanced IPAdapter controls (weight, weight_type, combine_embeds, start_at, end_at, embeds_scaling) with two enhancement-specific inputs: enhance_tiles and enhance_ratio. It also supports optional negative image conditioning, an attention mask, and an optional CLIP Vision encoder override.
The current source declares no output sockets. The node does not return a MODEL, IPADAPTER, IMAGE, or conditioning value through its output schema.
Inputs
Required Inputs
| Input | Type | Default / Range | Description |
|---|---|---|---|
model | MODEL | Required | The diffusion model used by the IPAdapter application. |
ipadapter | IPADAPTER | Required | The IPAdapter model or configuration that provides the projection and attention behavior. |
image | IMAGE | Required | The primary reference image whose CLIP Vision embedding drives the IPAdapter conditioning. |
weight | FLOAT | Default 1; min -1; max 5; step 0.05 | Overall strength of the IPAdapter effect. Negative values can reverse the influence; values above 1 intensify it. |
weight_type | COMBO | Required | Selects the weighting curve or application mode for the IPAdapter influence. The available choices depend on the installed IPAdapter implementation. |
combine_embeds | COMBO | Required; one of concat, add, subtract, average, norm average | Controls how multiple image embeddings are combined. concat concatenates embeddings, add sums them, subtract subtracts them, average computes the arithmetic mean, and norm average averages normalized embeddings. |
start_at | FLOAT | Default 0; min 0; max 1; step 0.001 | Normalized start point of the active IPAdapter interval. 0 starts at the beginning of sampling. |
end_at | FLOAT | Default 1; min 0; max 1; step 0.001 | Normalized end point of the active IPAdapter interval. 1 runs through the end of sampling. Keep start_at below end_at for a non-empty active range. |
embeds_scaling | COMBO | Required; one of V only, K+V, K+V w/ C penalty, K+mean(V) w/ C penalty | Controls how image embeddings are scaled and injected into attention. V only targets the value projection; K+V targets key and value projections; the penalty variants add the named C penalty behavior. |
enhance_tiles | INT | Default 2; min 1; max 16 | Number of tiles used by the CLIP Vision enhancement. 1 uses a single tile; higher values split the image into more tiles for additional detail at higher compute cost. |
enhance_ratio | FLOAT | Default 1; min 0; max 1; step 0.05 | Strength or blend amount of the CLIP Vision enhancement. 0 removes the enhancement contribution; 1 uses the full configured enhancement. |
Optional Inputs
| Input | Type | Description |
|---|---|---|
image_negative | IMAGE | Optional negative reference image. When connected, it provides content for the IPAdapter to steer away from. |
attn_mask | MASK | Optional spatial mask that limits where IPAdapter attention is applied. |
clip_vision | CLIP_VISION | Optional CLIP Vision encoder used to process the image inputs. If omitted, the IPAdapter pipeline uses its default or configured CLIP Vision model. |
Outputs
This node declares no outputs. It does not expose a returned MODEL, IPADAPTER, IMAGE, or conditioning socket. Any effect must occur through in-place modification or side effects within the package, and downstream wiring should follow the package's intended workflow.
Usage Notes
- Start with the defaults:
weightat1,start_atat0,end_atat1,enhance_tilesat2, andenhance_ratioat1. - Use
weight_typeandembeds_scalingonly when you need to tune how strongly or where the IPAdapter influence is applied across attention layers. - Increase
enhance_tilesto add more CLIP Vision tiling detail, but expect higher compute and memory use. Decrease it or set it to1for a simpler, cheaper pass. - Lower
enhance_ratiotoward0to compare the base IPAdapter result against the enhanced result. Use values near1for full enhancement. - Connect
image_negativewhen you want negative-image guidance, and connectattn_maskwhen the effect should be restricted spatially. - Connect
clip_visionto override the default CLIP Vision encoder; leave it disconnected to use the IPAdapter pipeline's configured encoder. - Because this node is in the
ipadapter/devcategory and declares no output sockets, treat it as an experimental or workflow-specific node and check the package example workflows for the expected wiring.
Comments
Sign in with GitHub to join the discussion.