# ComfyUI-Krea2-MultiRef (temporary README) ComfyUI custom nodes for Krea2-style multi-reference image editing. ## Nodes - **Krea2 Model Patcher** — patches a Flux diffusion model to consume reference latents during sampling. - **Krea2 Reference Text Encode** — encodes a prompt together with up to 4 reference images through the Krea2 Qwen3-VL text encoder. Connect a VAE to also attach reference latents. - **Krea2 Reference Encoder (latent only)** — attaches pre-encoded reference latents to conditioning without re-encoding text. - **Krea2 Diagnostic** — prints diffusion model internals for debugging. ## Quick start 1. Place this folder under `ComfyUI/custom_nodes/`. 2. Restart ComfyUI. 3. In a workflow: - Load your Flux model. - Add `Krea2 Model Patcher` and connect the model. - Add `Krea2 Reference Text Encode`, connect CLIP + VAE + reference images, and write your prompt. - Feed the patched model and conditioning into a KSampler as usual. ## Requirements - ComfyUI with Krea2/Qwen3-VL text encoder support. - `einops` (usually already installed with ComfyUI). ## Notes - Reference images are downscaled to a max of 512×512 pixels for the VLM. - Reference latents are capped at 1024×1024 pixels and snapped to multiples of 16. - This README is a placeholder and will be expanded.