Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

Hide 17 tail frames in continued dialogue parts

Bowen Xueed3850727c91
diff --git a/freevideo_engine/cli.py b/freevideo_engine/cli.py
index 2059597..cdc8690 100644
--- a/freevideo_engine/cli.py
+++ b/freevideo_engine/cli.py
@@ -98,7 +98,7 @@ def main():
'reference picture. Reduces drift over many parts; holds framing and motion close to '
'the opening, so leave it off when later parts should move away from it')
generate.add_argument('--hide-tail', action='store_true',
- help='Generate and discard 34 extra frames for dialogue segments.')
+ help='Generate and discard 17 extra frames for dialogue segments.')
generate.add_argument('--voice-reference', action='store_true',
help='With --continue-from: use the opening six seconds as a voice reference when the prompt has dialogue')
generate.add_argument('--continue-anchor', type=Path, metavar='IMAGE',
diff --git a/freevideo_engine/comfy_nodes.py b/freevideo_engine/comfy_nodes.py
index 8a5f8de..1bc24ce 100644
--- a/freevideo_engine/comfy_nodes.py
+++ b/freevideo_engine/comfy_nodes.py
@@ -68,7 +68,7 @@ class FreeVideoGenerate(io.ComfyNode):
io.Boolean.Input('voice_reference', display_name='Voice reference', default=False,
optional=True, advanced=True, tooltip='Keeps the opening voice consistent in continued dialogue.'),
io.Boolean.Input('hide_tail', display_name='Hide dialogue tail', default=False,
- optional=True, advanced=True, tooltip='Generates and discards 34 extra frames to keep dialogue moving between parts.'),
+ optional=True, advanced=True, tooltip='Generates and discards 17 extra frames to keep dialogue moving between parts.'),
],
outputs=[io.Video.Output('video'), io.String.Output('report', display_name='Report JSON')],
hidden=[io.Hidden.unique_id, io.Hidden.prompt, io.Hidden.extra_pnginfo],
diff --git a/freevideo_engine/continuation.py b/freevideo_engine/continuation.py
index 139ab93..6a50d9f 100644
--- a/freevideo_engine/continuation.py
+++ b/freevideo_engine/continuation.py
@@ -468,12 +468,15 @@ def load(request, stage):
audio=torch.from_numpy(value['audio'].copy()))
-# Dialogue parts settle into an ending over their last ~1.5 s; 17 frames hid only the pause, 34 also the pose reset.
-HIDE_TAIL_FRAMES = 34
+# Dialogue parts settle into an ending over their last ~1.5 s. Hiding 34 frames also hid the pose reset, but the model
+# kept talking through the longer hidden tail and the next part opened with stray speech; 17 frames keep the seam
+# level steps as low with far less of it.
+HIDE_TAIL_FRAMES = 17
def validate_hide_tail(frames):
- if type(frames) is not int or frames not in (0, 17, HIDE_TAIL_FRAMES):
+ # 34 stays valid for continuations recorded by earlier versions.
+ if type(frames) is not int or frames not in (0, 17, 34):
raise ValueError('Hidden tail must be 0, 17 or 34 frames')
return frames