Initial commit: VLM-as-judge prompt calibration loop

Qwen3-VL image-similarity judge node, external-prompt receptor node,
agent_bridge CLI, example SDXL workflow, and methodology/agent-loop/
calibration-policy docs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-26 22:15:56 +02:00
commit 95198a15b5
13 changed files with 1294 additions and 0 deletions
+82
View File
@@ -0,0 +1,82 @@
{
"4": {
"class_type": "CheckpointLoaderSimple",
"inputs": { "ckpt_name": "waiIllustriousSDXL_v160.safetensors" },
"_meta": { "title": "Load Checkpoint (swap for your T2I)" }
},
"10": {
"class_type": "CalibratorPromptReceptor",
"inputs": {
"prompt": "a photo of a woman, casual outfit, indoors",
"negative": "blurry, deformed, lowres, extra limbs",
"seed": 12345,
"source_file": ""
},
"_meta": { "title": "SxCP External Prompt (Receptor)" }
},
"6": {
"class_type": "CLIPTextEncode",
"inputs": { "text": ["10", 0], "clip": ["4", 1] },
"_meta": { "title": "Positive (from receptor)" }
},
"7": {
"class_type": "CLIPTextEncode",
"inputs": { "text": ["10", 1], "clip": ["4", 1] },
"_meta": { "title": "Negative (from receptor)" }
},
"5": {
"class_type": "EmptyLatentImage",
"inputs": { "width": 1024, "height": 1024, "batch_size": 1 },
"_meta": { "title": "Empty Latent" }
},
"3": {
"class_type": "KSampler",
"inputs": {
"model": ["4", 0],
"positive": ["6", 0],
"negative": ["7", 0],
"latent_image": ["5", 0],
"seed": ["10", 2],
"steps": 28,
"cfg": 5.5,
"sampler_name": "euler",
"scheduler": "normal",
"denoise": 1.0
},
"_meta": { "title": "KSampler (seed from receptor)" }
},
"8": {
"class_type": "VAEDecode",
"inputs": { "samples": ["3", 0], "vae": ["4", 2] },
"_meta": { "title": "VAE Decode" }
},
"9": {
"class_type": "SaveImage",
"inputs": { "images": ["8", 0], "filename_prefix": "calibrator/gen" },
"_meta": { "title": "Save Generated" }
},
"11": {
"class_type": "LoadImage",
"inputs": { "image": "reference.png" },
"_meta": { "title": "Reference Image (put in ComfyUI/input/)" }
},
"12": {
"class_type": "QwenVLImageJudge",
"inputs": {
"reference_image": ["11", 0],
"generated_image": ["8", 0],
"model_path": "/media/p5/qwen3vl_4b_abliterated_comfy_convert/hf_bf16",
"precision": "bf16",
"axes": "cast, clothing, pose, scene, composition, expression, color_light",
"max_new_tokens": 512,
"temperature": 0.0,
"swap_eval": true,
"keep_loaded": true,
"auto_download": true,
"report_dir": "/media/p5/Comfyui/output/calibrator",
"run_tag": "",
"prompt_used": ""
},
"_meta": { "title": "Qwen3-VL Image Judge (Calibrator)" }
}
}