From bc75e7f341f8ae8742a9d0ff8a504d8545a001c5 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Tue, 24 Feb 2026 14:10:37 +0100 Subject: [PATCH] Add CFG input to batch processor UI Co-Authored-By: Claude Opus 4.6 --- tab_batch.py | 3 ++- utils.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tab_batch.py b/tab_batch.py index e0f0001..52454e6 100644 --- a/tab_batch.py +++ b/tab_batch.py @@ -232,7 +232,7 @@ def render_batch_processor(data, file_path, json_files, current_dir, selected_fi # Updated LoRA keys to match new logic lora_keys = ["lora 1 high", "lora 1 low", "lora 2 high", "lora 2 low", "lora 3 high", "lora 3 low"] standard_keys = { - "general_prompt", "general_negative", "current_prompt", "negative", "prompt", "seed", + "general_prompt", "general_negative", "current_prompt", "negative", "prompt", "seed", "cfg", "camera", "flf", KEY_SEQUENCE_NUMBER } standard_keys.update(lora_keys) @@ -376,6 +376,7 @@ def render_batch_processor(data, file_path, json_files, current_dir, selected_fi val = st.number_input("Seed", value=current_seed, key=seed_key) seq["seed"] = val + seq["cfg"] = st.number_input("CFG", value=float(seq.get("cfg", DEFAULTS["cfg"])), step=0.5, format="%.1f", key=f"{prefix}_cfg") seq["camera"] = st.text_input("Camera", value=seq.get("camera", ""), key=f"{prefix}_cam") seq["flf"] = st.text_input("FLF", value=str(seq.get("flf", DEFAULTS["flf"])), key=f"{prefix}_flf") diff --git a/utils.py b/utils.py index 6af6038..d0dfc65 100644 --- a/utils.py +++ b/utils.py @@ -29,6 +29,7 @@ DEFAULTS = { "current_prompt": "", "negative": "", "seed": -1, + "cfg": 6.0, # --- Settings --- "camera": "static",