FLUX.3 Box Reconcile KJ(Flux3BoxReconcileKJ)
FLUX. 3 Box Reconcile KJ takes the box-mode answer produced by a prompt upsampler and merges it back with the original box table from the FLUX.
Flux3 Box Reconcile KJ
Description
FLUX.3 Box Reconcile KJ takes the box-mode answer produced by a prompt upsampler and merges it back with the original box table from the FLUX.3 Prompt Builder, so the upsampler's improved wording can be used without letting it silently move or renumber the user's boxes.
The node performs three kinds of reconciliation:
- ID restoration: boxes that the upsampler re-planned under a new id are given their original id back, including the matching
<id>citations inside the caption text. - Coordinate locking: the user's rows keep their exact coordinates, but receive the upsampler's descriptions for those boxes.
- Added-row filtering: rows the upsampler introduced are kept only when they are well formed and actually cited in the caption; otherwise they are dropped.
The result is a single string containing the reconciled caption and box table, ready to be used as the final prompt.
Inputs
caption
Type: STRING (required)
The prompt upsampler's answer, i.e. the text output of a TextGenerate node. This is the version of the prompt whose descriptions, and possibly re-planned box rows and ids, will be reconciled against the locked rows.
prompt
Type: STRING (required)
The prompt output of the FLUX.3 Prompt Builder. Its box table is treated as the locked rows: these are the authoritative boxes whose ids and exact coordinates are preserved in the output.
Outputs
STRING
The reconciled prompt/caption. The user's boxes appear with their original ids and exact coordinates, carrying the upsampler's descriptions, and any surviving upsampler-added rows are included with their <id> citations aligned to the restored ids.
Usage Notes
- Connect the prompt upsampler's TextGenerate
textoutput tocaption, and the FLUX.3 Prompt Builder'spromptoutput toprompt. Both are plain strings, so no additional parsing nodes are needed. - Because the user's coordinates are locked, the upsampler is free to rewrite descriptions and propose extra boxes without breaking a layout you have already tuned by hand.
- Extra rows suggested by the upsampler are not trusted blindly: they only survive if they are well formed and referenced in the caption. This keeps stray or unreferenced boxes out of the final prompt.
- If the upsampler renumbers a box, the
<id>citations in the caption are rewritten to match the original id, so ids remain consistent between the text and the box table. - The node lives in the
KJNodes/textcategory.
Comments
Sign in with GitHub to join the discussion.