Krea2 System Prompt Scaled Encoder (Advanced)
A Krea 2 encoder with a resolution dial and numbered picture anchors
- clip
- image_inputs
- visual_fusion_config
- vae
- CONDITIONING
Most of the "system prompt" encoder nodes in silveroxides' UtilsCollection are preset-driven: you pick a resolution from a dropdown and move on. This one is the advanced sibling that trades presets for precision. TextEncodeKrea2SystemEditScaledAdv - "Krea2 System Prompt Scaled Encoder (Advanced)" - gives you a free-form vlm_resolution dial, a formula field, padding control, and per-image <Picture N> semantic anchors for Krea 2 workflows.
Like nearly every non-UC_ node in this pack, it's a deprecated alias of a canonical node - specifically of UC_AdvancedVisualConditioningEncode. The pack keeps the old ID registered so existing graphs load, and marks it deprecated so you know to migrate. Take the replacement if ComfyUI offers.
What "scaled" means here
The headline difference from the simpler Krea 2 encoders is vlm_resolution as an integer rather than a preset combo. It's an equivalent-square VLM target from 256 to 3584 in 32-pixel steps (default 384), and anything outside 256–3584 silently preserves the source image's original resolution. That matters because the semantic path - where your reference images get read by the vision encoder - is the part that sets the ceiling on how much detail the model can borrow from an image. Crank it toward 1024+ when a reference carries fine style cues you don't want lost at 384.
The rest of the schema is the pack's standard advanced stack:
prompt- with fusion off,image_input_Nplaces image N inline; with fusion on,image_input_fusion(orimage_input_1) targets the fused slot.formula- used only with fusion off and no numbered placeholders; an empty formula falls back to the first image pass.padding_method-zero-padorinterpolate, for aligning images of different aspect ratios (only active when fusion config is off).vae_resolution/ref_latent_mode/vae_dimension_multiple- the VAE structural path for reference latents.multiplier- a global scale on the final conditioning vector; handy for pushing or damping overall prompt adherence.semantic_anchor- the feature that makes multi-image prompting legible: prefix each encoded visual slot with its numbered<Picture N>anchor, so the model knows which image you mean when your prompt says "the jacket in Picture 2."image_inputs- autogrowing image sockets mapped sequentially toa, b, c, …/ numbered variables.
Optional visual_fusion_config (from UC_VisualFusionConfig) swaps the fallback formula/padding behavior for proper spatial fusion of isolated visual blocks, without the coordinate blur you get from naive image compositing. Output is a single CONDITIONING, straight into the sampler's positive input.
Install
Via ComfyUI Manager (search ComfyUI-UtilsCollection) or:
cd ComfyUI/custom_nodes
git clone https://github.com/silveroxides/ComfyUI-UtilsCollection
Restart, and note the pack's real deps are just opencv-python plus typing-extensions.
When you'd reach for it
When a preset's "Fast (384)" is too coarse and 1024 is too slow, and you want, say, 768 for the semantic read. Or when you're juggling several references and semantic_anchor finally lets you say "Picture 2's lighting" and have it mean something. If you don't need the dial or the anchors, the simpler Krea 2 encoder does the same job with less to trip over - this one earns its "Advanced" label for multi-reference, resolution-sensitive work.
Inputs (14)
| Name | Type | Default | Description |
|---|---|---|---|
| clip | CLIP | CLIP/T5 dual text encoder reference. | |
| prompt | STRING | Main prompt. With fusion off, image_input_N places active image N inline. With fusion on, use image_input_fusion (image_input_1 is accepted as an alias). | |
| system_prompt | STRING | System prompt injected prior to user description. | |
| vlm_resolution | INT | 3840–4096 | Equivalent-square VLM target from 256 to 3584. Values outside that range preserve original resolution. |
| formula | STRING | Optional formula used only with fusion off when no numbered inline placeholders are present. Empty selects the first image pass. | |
| padding_method | COMBO | zero-pad | Alignment method for images with different aspect ratios/resolutions. Active ONLY if visual_fusion_config is disconnected or set to 'off'. |
| vae_resolution | COMBO | Fast (1024) | Resolution of the reference latent encoded by the VAE (structural path). |
| ref_latent_mode | COMBO | off | Reference latent encoding mode. 'single'/'multi' append latents; 'parallel-single'/'parallel-multi' run them in a separate conditioning stream to prevent semantic override. |
| multiplier | FLOAT | 1.0-1000–1000 | Overall multiplier applied to the final conditioning vector. |
| vae_dimension_multiple | INT | 84–256 | Pixel multiple used to align reference images before VAE encoding. |
| semantic_anchor | BOOLEAN | false | Prefixes each encoded visual slot with its numbered <Picture N>: semantic anchor. |
| image_inputs | COMFY_AUTOGROW_V3 | Multimodal images. Maps active inputs sequentially to variables (a, b, c, ...). | |
| visual_fusion_configopt | VISUAL_FUSION_CONFIG | Optional spatial visual fusion configuration from UC_VisualFusionConfig. Blends isolated visual blocks without coordinate blur. | |
| vaeopt | VAE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| CONDITIONING | CONDITIONING | — |