Files
ausboss-ComfyUI-AusBoss/js/docs/AUSBOSS_NODES_Krea2Encode.md
T
ausboss e31282a0b5 Turn VLM reference back on in the Krea 2 Outpaint example
The 2.1.0 refresh reset Krea 2 Encode to its defaults when it wired the
prompt in, which switched VLM reference off; the example's own note, the
README and the patch's help page all describe the AnyPaint recipe with
it on. The node's tooltips and help page described only Registered
Outpaint; they now name both setups, as the card already did.
2026-09-24 00:33:41 -05:00

46 lines
2.3 KiB
Markdown

# Krea 2 Encode
Encodes a Krea 2 prompt pair and attaches reference latents, in one node.
Wire a VAE and a reference image and the reference is encoded and appended to
the positive conditioning. Leave them unwired and this is a plain two-prompt
encoder. The negative comes out of the same node, so a turbo graph running at
CFG 1.0 still has something to plug in without a second text encode sitting
there doing nothing.
## Controls
- **clip**: The Krea 2 text encoder.
- **prompt**: Describe the whole finished canvas, not just the new area — the
model generates all of it and matches the reference where it must.
- **negative_prompt**: Ignored at CFG 1.0, which is where turbo runs. Empty is
the normal case there.
- **vae**: Needed to turn the reference images into latents. Without it the
references are skipped and only the prompts are encoded.
- **reference**: The image the result follows. For AnyPaint that is Load
Image + Pad 🆎's padded `image`; for Registered Outpaint, its unpadded
`reference` output. Any image works; it is fitted to a multiple of 16 first.
- **extra_image**: A second reference, e.g. a style or character plate.
- **VLM reference** (`vlm_reference`): Also show the references to the vision
tower, so the text encoder describes them. On for AnyPaint with the padded
canvas as the reference; off for Registered Outpaint with the unpadded
source, where the description tends to pull the result toward a paraphrase
of the source. The Krea 2 Outpaint Model Patch page covers both setups.
## Outputs
- **positive**: Prompt conditioning with the reference latents attached.
- **negative**: Negative prompt conditioning.
## Notes and limitations
- **References are downscaled to a 384px long edge and snapped to a multiple
of 16.** The VAE downsamples by 8 and the DiT patchifies by 2, so an edge off
a multiple of 16 lands on a partial patch and the token grid stops lining up
with the canvas grid. The cap is deliberate — a reference is there to say
"this is the picture", and the canvas latent carries the detail.
- Attaching reference latents alone does not tell the model *where* they go.
Pair this with Krea 2 Outpaint Model Patch 🆎 for outpainting.
- On a core without the Krea 2 prompt template, `vlm_reference` still works —
it falls back to tokenizing without the template.