describe emits one canonical reference; compare can anchor on it
Describe mode now produces a single coherent, internally-consistent canonical scene description (paragraph + per-axis spec, written to canonical_reference in the report). Compare gains an optional reference_description input: when set, it anchors on that fixed text and shows only the generated image (no swap) — so the reference side never drifts or self-contradicts across iterations; only the generated image is re-described each turn. agent_bridge gains --ref-desc / --ref-desc-file (reads the describe report's canonical_reference). Docs + example workflow updated. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -93,20 +93,24 @@ black-box optimizer → LLM-in-the-loop) are in the methodology doc.
|
||||
## End-to-end loop
|
||||
|
||||
1. Run ComfyUI with `--listen`, install this node pack, put your reference at `ComfyUI/input/reference.png`.
|
||||
2. **First pass (describe):** the judge looks at the reference alone and returns a prompt-ready
|
||||
`caption` + per-axis target spec to seed the initial prompt:
|
||||
2. **First pass (describe):** the judge looks at the reference alone and emits **one canonical
|
||||
scene description** (coherent paragraph + per-axis target spec) to seed the prompt *and*
|
||||
anchor the loop:
|
||||
```bash
|
||||
python agent_bridge.py --mode describe --workflow workflow/workflow_describe_api.json \
|
||||
--run-tag seed --analysis-dir /media/p5/Comfyui/output/calibrator
|
||||
```
|
||||
3. **Compare loop:** load `workflow/workflow_api.json` (SDXL `waiIllustriousSDXL_v160` example —
|
||||
swap the checkpoint for Flux/Krea as needed) and iterate, following `docs/CALIBRATION_POLICY.md`:
|
||||
swap the checkpoint for Flux/Krea as needed) and iterate, following `docs/CALIBRATION_POLICY.md`.
|
||||
Pass `--ref-desc-file` so compare anchors on the canonical reference (the `ref` side stays
|
||||
fixed; only the generated image is re-read each turn):
|
||||
```bash
|
||||
python agent_bridge.py --workflow workflow/workflow_api.json \
|
||||
--prompt "<caption from step 2, then calibrated>" \
|
||||
--prompt "<description from step 2, then calibrated>" \
|
||||
--ref-desc-file /media/p5/Comfyui/output/calibrator/calib_seed.json \
|
||||
--run-tag iter001 --analysis-dir /media/p5/Comfyui/output/calibrator
|
||||
```
|
||||
stdout = the analysis JSON (`{score, ref, gen}` per axis) → agent steers toward `ref` → next iteration.
|
||||
stdout = the analysis JSON (`{verdict, ref, gen}` per axis) → agent steers toward `ref` → next iteration.
|
||||
|
||||
## Status
|
||||
|
||||
|
||||
Reference in New Issue
Block a user