Change input_a_frames and input_b_frames default to 16
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -204,8 +204,8 @@ class JSONLoaderVACE:
|
|||||||
str(data.get("current_prompt", "")), str(data.get("negative", "")),
|
str(data.get("current_prompt", "")), str(data.get("negative", "")),
|
||||||
str(data.get("camera", "")), to_float(data.get("flf", 0.0)),
|
str(data.get("camera", "")), to_float(data.get("flf", 0.0)),
|
||||||
to_int(data.get("seed", 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("frame_to_skip", 81)), to_int(data.get("input_a_frames", 16)),
|
||||||
to_int(data.get("input_b_frames", 0)), str(data.get("reference path", "")),
|
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)),
|
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", ""))
|
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("current_prompt", "")), str(target_data.get("negative", "")),
|
||||||
str(target_data.get("camera", "")), to_float(target_data.get("flf", 0.0)),
|
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("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)),
|
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", "")),
|
to_int(target_data.get("vace schedule", 1)), str(target_data.get("video file path", "")),
|
||||||
str(target_data.get("reference image path", ""))
|
str(target_data.get("reference image path", ""))
|
||||||
|
|||||||
@@ -417,10 +417,10 @@ def render_batch_processor(data, file_path, json_files, current_dir, selected_fi
|
|||||||
else:
|
else:
|
||||||
st.toast("No change to shift", icon="ℹ️")
|
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["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_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", 0)), key=f"{prefix}_ib")
|
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", 0))
|
input_a = int(seq.get("input_a_frames", 16))
|
||||||
input_b = int(seq.get("input_b_frames", 0))
|
input_b = int(seq.get("input_b_frames", 16))
|
||||||
stored_total = int(seq.get("vace_length", 49))
|
stored_total = int(seq.get("vace_length", 49))
|
||||||
base_length = max(stored_total - input_a - input_b, 1)
|
base_length = max(stored_total - input_a - input_b, 1)
|
||||||
vl_col, vl_out = st.columns([3, 1])
|
vl_col, vl_out = st.columns([3, 1])
|
||||||
|
|||||||
@@ -73,8 +73,8 @@ def render_single_editor(data, file_path):
|
|||||||
standard_keys.update(vace_keys)
|
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["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_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", 0)), key=f"{fk}_ib")
|
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["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")
|
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"]:
|
for f in ["reference path", "video file path", "reference image path"]:
|
||||||
|
|||||||
4
utils.py
4
utils.py
@@ -40,8 +40,8 @@ DEFAULTS = {
|
|||||||
"transition": "1-2",
|
"transition": "1-2",
|
||||||
"vace_length": 49,
|
"vace_length": 49,
|
||||||
"vace schedule": 1,
|
"vace schedule": 1,
|
||||||
"input_a_frames": 0,
|
"input_a_frames": 16,
|
||||||
"input_b_frames": 0,
|
"input_b_frames": 16,
|
||||||
"reference switch": 1,
|
"reference switch": 1,
|
||||||
"video file path": "",
|
"video file path": "",
|
||||||
"reference image path": "",
|
"reference image path": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user