From 40ffdcf67101807d58cfca01d37e3c291d1cf6f7 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Mon, 23 Feb 2026 13:34:21 +0100 Subject: [PATCH] Clean up DEFAULTS: remove unused settings, add end_frame and transition Removed steps, cfg, sampler_name, scheduler, denoise, model_name, and vae_name that were showing as custom parameters. Added end_frame (0) and transition (1-2) with VACE Settings widgets. Set default general_negative prompt. Co-Authored-By: Claude Opus 4.6 --- tab_batch.py | 5 ++++- utils.py | 23 +++++++++-------------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/tab_batch.py b/tab_batch.py index 661aa8d..29e0dc6 100644 --- a/tab_batch.py +++ b/tab_batch.py @@ -234,7 +234,8 @@ def render_batch_processor(data, file_path, json_files, current_dir, selected_fi } standard_keys.update(lora_keys) standard_keys.update([ - "frame_to_skip", "input_a_frames", "input_b_frames", "reference switch", "vace schedule", + "frame_to_skip", "end_frame", "transition", + "input_a_frames", "input_b_frames", "reference switch", "vace schedule", "reference path", "video file path", "reference image path", "flf image path" ]) @@ -403,6 +404,8 @@ def render_batch_processor(data, file_path, json_files, current_dir, selected_fi st.rerun() else: st.toast("No change to shift", icon="ℹ️") + seq["end_frame"] = st.number_input("End Frame", value=int(seq.get("end_frame", 0)), key=f"{prefix}_ef") + seq["transition"] = st.text_input("Transition", value=str(seq.get("transition", "1-2")), key=f"{prefix}_trans") seq["input_a_frames"] = st.number_input("Input A Frames", value=int(seq.get("input_a_frames", 0)), key=f"{prefix}_ia") seq["input_b_frames"] = st.number_input("Input B Frames", value=int(seq.get("input_b_frames", 0)), key=f"{prefix}_ib") seq["reference switch"] = st.number_input("Reference Switch", value=int(seq.get("reference switch", 1)), key=f"{prefix}_rsw") diff --git a/utils.py b/utils.py index 9ed349d..a3a8faf 100644 --- a/utils.py +++ b/utils.py @@ -23,26 +23,21 @@ logger = logging.getLogger(__name__) # Default structure for new files DEFAULTS = { - # --- Standard Keys for your Restored Single Tab --- - "general_prompt": "", # Global positive - "general_negative": "", # Global negative - "current_prompt": "", # Specific positive - "negative": "", # Specific negative + # --- Prompts --- + "general_prompt": "", + "general_negative": "Vivid tones, overexposed, static, blurry details, subtitles, style, artwork, painting, picture, still image, overall gray, worst quality, low quality, JPEG compression artifacts, ugly, deformed, extra fingers, poorly drawn hands, poorly drawn face, distorted, disfigured, malformed limbs, fused fingers, unmoving frame, cluttered background, three legs", + "current_prompt": "", + "negative": "", "seed": -1, - + # --- Settings --- "camera": "static", "flf": 0.0, - "steps": 20, - "cfg": 7.0, - "sampler_name": "euler", - "scheduler": "normal", - "denoise": 1.0, - "model_name": "v1-5-pruned-emaonly.ckpt", - "vae_name": "vae-ft-mse-840000-ema-pruned.ckpt", # --- I2V / VACE Specifics --- "frame_to_skip": 81, + "end_frame": 0, + "transition": "1-2", "vace schedule": 1, "input_a_frames": 0, "input_b_frames": 0, @@ -51,7 +46,7 @@ DEFAULTS = { "reference image path": "", "reference path": "", "flf image path": "", - + # --- LoRAs --- "lora 1 high": "", "lora 1 low": "", "lora 2 high": "", "lora 2 low": "",