From 7261f2c689c6e56b249287a2c300dc5a7971bfa4 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Mon, 23 Feb 2026 17:12:24 +0100 Subject: [PATCH] Change input_a_frames and input_b_frames default to 16 Co-Authored-By: Claude Opus 4.6 --- json_loader.py | 6 +++--- tab_batch.py | 8 ++++---- tab_single.py | 4 ++-- utils.py | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/json_loader.py b/json_loader.py index fa6d650..351efdd 100644 --- a/json_loader.py +++ b/json_loader.py @@ -204,8 +204,8 @@ class JSONLoaderVACE: str(data.get("current_prompt", "")), str(data.get("negative", "")), str(data.get("camera", "")), to_float(data.get("flf", 0.0)), to_int(data.get("seed", 0)), - to_int(data.get("frame_to_skip", 81)), to_int(data.get("input_a_frames", 0)), - to_int(data.get("input_b_frames", 0)), str(data.get("reference path", "")), + to_int(data.get("frame_to_skip", 81)), to_int(data.get("input_a_frames", 16)), + to_int(data.get("input_b_frames", 16)), str(data.get("reference path", "")), to_int(data.get("reference switch", 1)), to_int(data.get("vace schedule", 1)), str(data.get("video file path", "")), str(data.get("reference image path", "")) ) @@ -271,7 +271,7 @@ class JSONLoaderBatchVACE: str(target_data.get("current_prompt", "")), str(target_data.get("negative", "")), str(target_data.get("camera", "")), to_float(target_data.get("flf", 0.0)), to_int(target_data.get("seed", 0)), to_int(target_data.get("frame_to_skip", 81)), - to_int(target_data.get("input_a_frames", 0)), to_int(target_data.get("input_b_frames", 0)), + to_int(target_data.get("input_a_frames", 16)), to_int(target_data.get("input_b_frames", 16)), str(target_data.get("reference path", "")), to_int(target_data.get("reference switch", 1)), to_int(target_data.get("vace schedule", 1)), str(target_data.get("video file path", "")), str(target_data.get("reference image path", "")) diff --git a/tab_batch.py b/tab_batch.py index 5be56e8..e0f0001 100644 --- a/tab_batch.py +++ b/tab_batch.py @@ -417,10 +417,10 @@ def render_batch_processor(data, file_path, json_files, current_dir, selected_fi else: st.toast("No change to shift", icon="ℹ️") 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") - input_a = int(seq.get("input_a_frames", 0)) - input_b = int(seq.get("input_b_frames", 0)) + seq["input_a_frames"] = st.number_input("Input A Frames", value=int(seq.get("input_a_frames", 16)), key=f"{prefix}_ia") + seq["input_b_frames"] = st.number_input("Input B Frames", value=int(seq.get("input_b_frames", 16)), key=f"{prefix}_ib") + input_a = int(seq.get("input_a_frames", 16)) + input_b = int(seq.get("input_b_frames", 16)) stored_total = int(seq.get("vace_length", 49)) base_length = max(stored_total - input_a - input_b, 1) vl_col, vl_out = st.columns([3, 1]) diff --git a/tab_single.py b/tab_single.py index fa46bec..fd3afff 100644 --- a/tab_single.py +++ b/tab_single.py @@ -73,8 +73,8 @@ def render_single_editor(data, file_path): standard_keys.update(vace_keys) spec_fields["frame_to_skip"] = st.number_input("Frame to Skip", value=int(data.get("frame_to_skip", 81)), key=f"{fk}_fts") - spec_fields["input_a_frames"] = st.number_input("Input A Frames", value=int(data.get("input_a_frames", 0)), key=f"{fk}_ia") - spec_fields["input_b_frames"] = st.number_input("Input B Frames", value=int(data.get("input_b_frames", 0)), key=f"{fk}_ib") + spec_fields["input_a_frames"] = st.number_input("Input A Frames", value=int(data.get("input_a_frames", 16)), key=f"{fk}_ia") + spec_fields["input_b_frames"] = st.number_input("Input B Frames", value=int(data.get("input_b_frames", 16)), key=f"{fk}_ib") spec_fields["reference switch"] = st.number_input("Reference Switch", value=int(data.get("reference switch", 1)), key=f"{fk}_rsw") spec_fields["vace schedule"] = st.number_input("VACE Schedule", value=int(data.get("vace schedule", 1)), key=f"{fk}_vsc") for f in ["reference path", "video file path", "reference image path"]: diff --git a/utils.py b/utils.py index 7140f01..6af6038 100644 --- a/utils.py +++ b/utils.py @@ -40,8 +40,8 @@ DEFAULTS = { "transition": "1-2", "vace_length": 49, "vace schedule": 1, - "input_a_frames": 0, - "input_b_frames": 0, + "input_a_frames": 16, + "input_b_frames": 16, "reference switch": 1, "video file path": "", "reference image path": "",