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.
Parts of a long video and continued parts sample 8 + 3 steps
Bowen Xueb127b2a0cb47
diff --git a/freevideo_engine/comfy_continuation.py b/freevideo_engine/comfy_continuation.pyindex 9a26d55..035bd8d 100644--- a/freevideo_engine/comfy_continuation.py+++ b/freevideo_engine/comfy_continuation.py@@ -41,6 +41,21 @@ def node_frames(value):return value+def part_steps(base_steps, refine_steps, step_cache):+ """(base_steps, refine_steps, step_cache, note) for a continued part or any part of a video made in parts.++ The engine continues a video only in two passes, and two passes run only with 8 first-pass steps+ (two_pass.TWO_PASS_BASE_STEPS). Other steps would let the first part finish and refuse the next,+ so every part samples 8 + 3, the same for the whole film. note is None when nothing changed.+ """+ from .two_pass import TWO_PASS_BASE_STEPS+ if base_steps == TWO_PASS_BASE_STEPS:+ return base_steps, refine_steps, step_cache, None+ return (TWO_PASS_BASE_STEPS, 3, 'none',+ 'Parts of a long video and continued parts use %d + 3 steps with "Two-pass acceleration". '+ '%d first-pass steps apply only to a single video.' % (TWO_PASS_BASE_STEPS, base_steps))++def request_frames(value):"""Translate the node's duration sentinel into the bridge's optional count."""if type(value) is not int or value != 0 and (value < 39 or (value - 5) % 17):diff --git a/freevideo_engine/comfy_nodes.py b/freevideo_engine/comfy_nodes.pyindex e54ffee..e1665b6 100644--- a/freevideo_engine/comfy_nodes.py+++ b/freevideo_engine/comfy_nodes.py@@ -5,7 +5,7 @@ from pathlib import Pathfrom comfy_api.latest import ComfyExtension, InputImpl, io, uifrom . import comfy_bridge-from .comfy_continuation import node_frames, optional_text, request_options+from .comfy_continuation import node_frames, optional_text, part_steps, request_optionsfrom .default_prompt import DEFAULT_PROMPTReferences = io.Custom('FREEVIDEO_REFERENCES')@@ -144,6 +144,7 @@ class FreeVideoGenerate(io.ComfyNode):if options.get('continue_from'):# A continued part turns on two passes, skips the preview and takes keyframes as pictures (execute).two_pass, preview = True, False+ base_steps, refine_steps = part_steps(base_steps, refine_steps, step_cache)[:2]options.update(two_pass=True, preview=False, refine_from=refine_from or None,media=dict(first=False, last=False, conditioning_info=False))comfy_bridge.validate_request(text, width, height, seconds, seed, **options)@@ -181,6 +182,11 @@ class FreeVideoGenerate(io.ComfyNode):chain = block_context(PromptServer.instance, node_id)options = request_options(continue_from, node_frames(frames))notes = []+ if options.get('continue_from') or chain is not None and chain.get('count', 1) > 1:+ base_steps, refine_steps, step_cache, note = part_steps(base_steps, refine_steps, step_cache)+ if note:+ two_pass = True+ notes.append(note)if options.get('continue_from') and not two_pass:two_pass = Truenotes.append('Continuing a video needs "Two-pass acceleration", so it is on for this part.')