Nodes/JLC-Flux2-ControlNet/ JLC Flux2 Conditioning Cache Prep
ComfyUI Node

 JLC Flux2 Conditioning Cache Prep

Pre-warms reference, ControlNet hint, and/or hard-mask inpaint caches. Physically wired sockets may be muted/pruned and therefore absent at runtime; genuinely missing selected wires remain errors. With no active conditioning inputs, the node completes successfully as no_cache_required. Otherwise, the first output becomes available only after all active selected entries are cache hits or successful inserts.

By Damkohler·Created 2 months ago·Updated 6 days ago· 13
 JLC Flux2 Conditioning Cache Prep
  • vae
  • empty_flux2_latent
  • reference_image_1
  • reference_image_2
  • reference_image_3
  • reference_image_4
  • reference_image_5
  • reference_image_6
  • reference_image_7
  • reference_image_8
  • reference_image_9
  • reference_image_10
  • control_image_1
  • control_image_2
  • control_image_3
  • control_image_4
  • inpaint_image
  • inpaint_mask
  • cache_ready_image
  • cache_set
  • cache_report
reference_count0
control_count0
use_inpaintfalse
clear_before_preparefalse
diagnosticstrue
input_connection_contract{}
CategoryFlux2 Latents Cache/utils

Inputs (24)

NameTypeDefaultDescription
vaeVAE
reference_countINT00–10Number of reference-image cache inputs exposed by the layout button.
control_countINT00–4Number of ControlNet hint cache inputs exposed by the layout button.
use_inpaintBOOLEANfalseExpose one inpaint IMAGE/MASK pair. If both connected inputs resolve to None at execution time, inpaint is treated as intentionally inactive and skipped.
clear_before_prepareBOOLEANfalseClear only the active cache domains before preparing them.
diagnosticsBOOLEANtrue
input_connection_contractSTRING{}Hidden frontend-generated record of which dynamic input sockets are physically wired. Do not edit manually.
empty_flux2_latentoptLATENTConnect the same Empty Flux2 Latent used by the sampler. Do not connect the sampler output or any sampled latent. This is required only when an active ControlNet hint or active inpaint pair is present.
reference_image_1optIMAGE
reference_image_2optIMAGE
reference_image_3optIMAGE
reference_image_4optIMAGE
reference_image_5optIMAGE
reference_image_6optIMAGE
reference_image_7optIMAGE
reference_image_8optIMAGE
reference_image_9optIMAGE
reference_image_10optIMAGE
control_image_1optIMAGE
control_image_2optIMAGE
control_image_3optIMAGE
control_image_4optIMAGE
inpaint_imageoptIMAGE
inpaint_maskoptMASK

Outputs (3)

NameTypeDescription
cache_ready_imageIMAGE
cache_setBOOLEAN
cache_reportSTRING