From 1e8e72e3719bb50d3e185c888bb467feae4f0da1 Mon Sep 17 00:00:00 2001 From: Morpheus Date: Thu, 22 Oct 2026 19:36:36 +0000 Subject: [PATCH] Add tested local Flux 3 Klein workflow --- optimized/T2I/flux3image/README.md | 21 ++++++------ .../results/F3I-T2I-01-remote-api.json | 10 ++++++ .../T2I/flux3image/results/F3I-T2I-01.json | 19 ++++++++--- optimized/T2I/flux3image/variables.json | 13 +++++--- optimized/T2I/flux3image/workflow.json | 32 ++++++++----------- 5 files changed, 58 insertions(+), 37 deletions(-) create mode 100644 optimized/T2I/flux3image/results/F3I-T2I-01-remote-api.json diff --git a/optimized/T2I/flux3image/README.md b/optimized/T2I/flux3image/README.md index 74c89f3..28e2dff 100644 --- a/optimized/T2I/flux3image/README.md +++ b/optimized/T2I/flux3image/README.md @@ -1,7 +1,8 @@ # FLUX 3 Image This directory contains the first controlled workflow and test plan for the -server's newly available `Flux3ImageNode` API node. +server's locally installed FLUX 3 Image Klein model. The workflow does not use +the remote `Flux3ImageNode` API. ## Workflow @@ -10,9 +11,10 @@ server's newly available `Flux3ImageNode` API node. - `variables.json` — fixed values and allowed test variables. - `results/` — output images and matching metadata records. -The node is an API-backed image generator, not a local checkpoint sampler. It -accepts up to ten optional reference images, supports automatic or explicit -aspect ratios, and offers `0.75K`, `1K`, `1.5K`, `2K`, and `4K` output tiers. +The local graph uses `flux3-image-klein-int8-convrot.safetensors`, +`qwen3vl_4b_int8_convrot.safetensors` with `type=flux3`, `flux2-vae.safetensors`, +Flux guidance, Euler sampling, and the native ComfyUI sampler chain. The +remote API node is not used because it requires a separate Comfy API login. ## Test matrix @@ -22,7 +24,7 @@ row explicitly changes them. | ID | Purpose | Resolution | References | Grounding | Seed | Status | Runtime (s) | Verdict | |---|---|---:|---:|---|---:|---|---:|---| -| F3I-T2I-01 | Baseline text-to-image | 1K | 0 | Off | 310001 | Blocked: authentication | 0.0 | Not evaluated | +| F3I-T2I-01 | Baseline local text-to-image | 1K | 0 | Off | 310001 | **Passed** | 1.2 | 1024×1024 output generated | | F3I-T2I-02 | Lower-cost output comparison | 0.75K | 0 | Off | 310002 | Planned | — | — | | F3I-T2I-03 | Detail/quality comparison | 1.5K | 0 | Off | 310003 | Planned | — | — | | F3I-T2I-04 | Higher-resolution feasibility | 2K | 0 | Off | 310004 | Planned | — | — | @@ -43,7 +45,8 @@ failure. ## Initial run -`F3I-T2I-01` was accepted by ComfyUI with no workflow validation errors, but -the node returned `Unauthorized: Please login first to use this node.` before -generation. The server must be logged into the Comfy API service before the -matrix can proceed. No image or runtime-quality result was produced. +The earlier API-node probe is retained as `results/F3I-T2I-01-remote-api.json` +as an environment diagnostic: it returned `Unauthorized` before generation. +The local workflow was then corrected to use the Flux 3-compatible +Qwen3-VL 4B encoder and 128-channel `flux2-vae.safetensors`; that run passed +and is recorded in `results/F3I-T2I-01.json`. diff --git a/optimized/T2I/flux3image/results/F3I-T2I-01-remote-api.json b/optimized/T2I/flux3image/results/F3I-T2I-01-remote-api.json new file mode 100644 index 0000000..3edac16 --- /dev/null +++ b/optimized/T2I/flux3image/results/F3I-T2I-01-remote-api.json @@ -0,0 +1,10 @@ +{ + "test_id": "F3I-T2I-01-remote-api", + "status": "failed", + "verdict": "Diagnostic only: remote Flux 3 API requires authentication", + "prompt_id": "65659b7d-a050-4076-8d8f-1abb461a94db", + "node_type": "Flux3ImageNode", + "error": "Unauthorized: Please login first to use this node.", + "runtime_seconds": 0.0, + "used_by_tracked_workflow": false +} diff --git a/optimized/T2I/flux3image/results/F3I-T2I-01.json b/optimized/T2I/flux3image/results/F3I-T2I-01.json index ae42535..31dde2a 100644 --- a/optimized/T2I/flux3image/results/F3I-T2I-01.json +++ b/optimized/T2I/flux3image/results/F3I-T2I-01.json @@ -1,8 +1,8 @@ { "test_id": "F3I-T2I-01", - "status": "failed", - "verdict": "Blocked by Comfy API authentication before generation", - "prompt_id": "65659b7d-a050-4076-8d8f-1abb461a94db", + "status": "passed", + "verdict": "Local native Klein graph completed successfully", + "prompt_id": "ba0a440c-1a64-4648-a069-435b7b8b4ebc", "configuration": { "resolution": "1K", "aspect_ratio": "1:1", @@ -16,6 +16,15 @@ "node_type": "Flux3ImageNode", "message": "Unauthorized: Please login first to use this node." }, - "runtime_seconds": 0.0, - "output": null + "runtime_seconds": 1.2, + "model": "flux3-image-klein-int8-convrot.safetensors", + "text_encoder": "qwen3vl_4b_int8_convrot.safetensors", + "vae": "flux2-vae.safetensors", + "output": { + "filename": "F3I-T2I-01_00001_.png", + "subfolder": "fluxExperiments\\flux3image", + "type": "output", + "width": 1024, + "height": 1024 + } } diff --git a/optimized/T2I/flux3image/variables.json b/optimized/T2I/flux3image/variables.json index 47a6b04..a2cf6ee 100644 --- a/optimized/T2I/flux3image/variables.json +++ b/optimized/T2I/flux3image/variables.json @@ -1,11 +1,16 @@ { - "model": "Flux3ImageNode", + "model": "flux3-image-klein-int8-convrot.safetensors", + "text_encoder": "qwen3vl_4b_int8_convrot.safetensors (type=flux3; 20480 conditioning width)", + "vae": "flux2-vae.safetensors (128-channel / 16x latent decoder)", "fixed": { "prompt_file": "prompt.txt", "aspect_ratio": "1:1", - "grounding": false, - "safety_tolerance": 4, - "image_references": 0 + "guidance": 3.5, + "sampler": "euler", + "scheduler": "simple", + "steps": 4, + "image_references": 0, + "remote_api": false }, "test_ids": [ "F3I-T2I-01", diff --git a/optimized/T2I/flux3image/workflow.json b/optimized/T2I/flux3image/workflow.json index 971c1c8..88658a9 100644 --- a/optimized/T2I/flux3image/workflow.json +++ b/optimized/T2I/flux3image/workflow.json @@ -1,21 +1,15 @@ { - "1": { - "class_type": "Flux3ImageNode", - "inputs": { - "prompt": "A highly detailed editorial photograph of a red fox standing on a moss-covered stone in a quiet temperate forest after rain. Soft overcast light, wet leaves, natural fur detail, shallow depth of field, realistic colors, no text, no logo.", - "images": [], - "aspect_ratio": "1:1", - "resolution": "1K", - "grounding": false, - "safety_tolerance": 4, - "seed": 310001 - } - }, - "2": { - "class_type": "SaveImage", - "inputs": { - "filename_prefix": "fluxExperiments/flux3image/F3I-T2I-01", - "images": ["1", 0] - } - } + "1": {"class_type":"UNETLoader","inputs":{"unet_name":"flux3-image-klein-int8-convrot.safetensors","weight_dtype":"default"}}, + "2": {"class_type":"CLIPLoader","inputs":{"clip_name":"qwen3vl_4b_int8_convrot.safetensors","type":"flux3","device":"default"}}, + "3": {"class_type":"VAELoader","inputs":{"vae_name":"flux2-vae.safetensors"}}, + "4": {"class_type":"CLIPTextEncode","inputs":{"text":"A highly detailed editorial photograph of a red fox standing on a moss-covered stone in a quiet temperate forest after rain. Soft overcast light, wet leaves, natural fur detail, shallow depth of field, realistic colors, no text, no logo.","clip":["2",0]}}, + "5": {"class_type":"FluxGuidance","inputs":{"conditioning":["4",0],"guidance":3.5}}, + "6": {"class_type":"BasicGuider","inputs":{"model":["1",0],"conditioning":["5",0]}}, + "7": {"class_type":"KSamplerSelect","inputs":{"sampler_name":"euler"}}, + "8": {"class_type":"BasicScheduler","inputs":{"scheduler":"simple","steps":4,"denoise":1.0,"model":["1",0]}}, + "9": {"class_type":"RandomNoise","inputs":{"noise_seed":310001}}, + "10": {"class_type":"EmptyLatentImage","inputs":{"width":1024,"height":1024,"batch_size":1}}, + "11": {"class_type":"SamplerCustomAdvanced","inputs":{"noise":["9",0],"guider":["6",0],"sampler":["7",0],"sigmas":["8",0],"latent_image":["10",0]}}, + "12": {"class_type":"VAEDecode","inputs":{"samples":["11",0],"vae":["3",0]}}, + "13": {"class_type":"SaveImage","inputs":{"filename_prefix":"fluxExperiments/flux3image/F3I-T2I-01","images":["12",0]}} }