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.
Continue from video: wording of the continued-part notes and the four refusals as signed off
Bowen Xueb6fbd009de88
diff --git a/freevideo_engine/comfy_media.py b/freevideo_engine/comfy_media.pyindex 6441c9e..dbf0646 100644--- a/freevideo_engine/comfy_media.py+++ b/freevideo_engine/comfy_media.py@@ -62,7 +62,7 @@ def continued(exported, notes=None):lines = [continued_note(len(pictures), keyframes, len(candidates[:PICTURES_MAX]))]if any(row.get('kind') != 'image' for row in media.get('references', [])) or media.get('conditioning_info') \or (exported or {}).get('conditioning'):- lines.append('Video and audio references and pre-encoded conditioning are not used for a continued part.')+ lines.append('A continued part uses picture references only. Video, audio and pre-encoded inputs are skipped.')for line in filter(None, lines):logging.info('[FreeVideo] %s', line)if notes is not None:@@ -72,14 +72,15 @@ def continued(exported, notes=None):def continued_note(pictures, keyframes, used):"""One line for a continued part whose keyframes became pictures or whose pictures did not all fit."""- frames = ' and '.join(keyframes)+ frames = 'the %s frame%s' % (' and '.join(keyframes), 's' if len(keyframes) > 1 else '')if pictures + len(keyframes) > used:- order = 'reference pictures first, then the %s frame image%s' % (frames, 's' if len(keyframes) > 1 else '')- return ('Continuing the previous video with %d of %d pictures: %s.' % (used, pictures + len(keyframes), order)- if keyframes else 'Continuing the previous video with the first %d of %d reference pictures.' % (used, pictures))+ return ('Continuing the previous video with %d of %d pictures: references first, then %s.'+ % (used, pictures + len(keyframes), frames) if keyframes+ else 'Continuing the previous video with the first %d of %d references.' % (used, pictures))if keyframes:- return ('Continuing the previous video; the %s frame image%s used as %s.'- % (frames, 's are' if len(keyframes) > 1 else ' is', 'reference pictures' if len(keyframes) > 1 else 'a reference picture'))+ return 'Continuing the previous video. %s %s used as %s.' % (+ frames[0].upper() + frames[1:], 'are' if len(keyframes) > 1 else 'is',+ 'references' if len(keyframes) > 1 else 'a reference')return Nonediff --git a/freevideo_engine/comfy_nodes.py b/freevideo_engine/comfy_nodes.pyindex a2a28cd..c918a34 100644--- a/freevideo_engine/comfy_nodes.py+++ b/freevideo_engine/comfy_nodes.py@@ -123,10 +123,10 @@ class FreeVideoGenerate(io.ComfyNode):notes = []if options.get('continue_from') and not two_pass:two_pass = True- notes.append('Continuing a video uses two-pass acceleration, so it is on for this part.')+ notes.append('Continuing a video needs "Two-pass acceleration", so it is on for this part.')if options.get('continue_from') and preview:preview = False- notes.append('A continued part is made in full, without stopping for a first-pass preview.')+ notes.append('A continued part is made in full, without stopping at the preview.')from .two_pass import validate_stepsif not refine_from:validate_steps(base_steps, refine_steps, two_pass)diff --git a/freevideo_engine/continuation.py b/freevideo_engine/continuation.pyindex b6ea6ab..139ab93 100644--- a/freevideo_engine/continuation.py+++ b/freevideo_engine/continuation.py@@ -34,11 +34,10 @@ MISSING = 'The previous video has no usable continuation data. Generate it againSIZE_MISMATCH = 'Use the same width and height as the previous video.'# Every refusal starts with UNSUPPORTED, then says what to change.UNSUPPORTED = 'Continue from video cannot be used with these settings.'-UNSUPPORTED_DEVICE = UNSUPPORTED + ' It needs an NVIDIA GPU. Clear Continue from video to make a new video.'-UNSUPPORTED_PASSES = UNSUPPORTED + ' Turn on Two-pass acceleration and turn off Two-pass: preview first pass.'-UNSUPPORTED_REFINE = UNSUPPORTED + ' Clear Second pass of preview: a continued part is made in full.'-UNSUPPORTED_MEDIA = (UNSUPPORTED + ' A continued part takes up to 3 pictures as references. '- 'Remove video or audio references and pre-encoded conditioning.')+UNSUPPORTED_DEVICE = UNSUPPORTED + ' Continuing a video needs an NVIDIA GPU. To make a new video, clear "Continue from video".'+UNSUPPORTED_PASSES = UNSUPPORTED + ' Turn on "Two-pass acceleration" and turn off the first-pass preview.'+UNSUPPORTED_REFINE = UNSUPPORTED + ' Clear either "Second pass of preview" or "Continue from video".'+UNSUPPORTED_MEDIA = UNSUPPORTED + ' Connect up to 3 pictures as references, and remove video, audio and pre-encoded inputs.'# A continued part keeps the cast's pictures, one per person and at most three people in a frame.PICTURES_MAX = 3INVALID_FRAMES = 'Frame count must be 5 + 17n and at least 39 (39, 56, 73, 90, ...).'diff --git a/freevideo_engine/failure_details.py b/freevideo_engine/failure_details.pyindex edbc24d..f57b912 100644--- a/freevideo_engine/failure_details.py+++ b/freevideo_engine/failure_details.py@@ -446,18 +446,18 @@ def launcher_failure(value, *, zh=False, other_disk=False, disk_name='', can_rep('Choose a supported frame count', '请选择支持的帧数'),('Use 39, 56, 73, 90, or another value reached by adding 17. This includes the 22 repeated frames when continuing a video.','请使用 39、56、73、90 等每次增加 17 的帧数;接续时,这个数包含开头重复的 22 帧。')),- (r'Continue from video cannot be used with these settings\. It needs an NVIDIA GPU', 'continuation-route',- ('This computer cannot continue a video', '这台电脑不支持视频接续'),- ('Continuing a video needs an NVIDIA GPU. Clear Continue from video to make a new video.', '视频接续需要 NVIDIA 显卡。要生成新视频,请清空 Continue from video。')),- (r'Continue from video cannot be used with these settings\. Turn on Two-pass', 'continuation-passes',- ('Continuing needs the full two passes', '接续需要完整的两遍生成'),- ('Turn on Two-pass acceleration and turn off Two-pass: preview first pass.', '请打开“二次采样加速”,并关闭一采预览。')),- (r'Continue from video cannot be used with these settings\. Clear Second pass', 'continuation-refine',- ('Continuing makes the whole part', '接续会完整生成这一段'),- ('Clear Second pass of preview, or clear Continue from video.', '请清空 Second pass of preview,或清空 Continue from video。')),- (r'Continue from video cannot be used with these settings\. A continued part takes', 'continuation-media',- ('A continued part takes pictures only', '接续段只能带图片参考'),- ('Connect up to 3 pictures as references. Remove video or audio references and pre-encoded conditioning.', '请把最多 3 张图片作为参考图接入,移除视频或音频参考以及预编码条件。')),+ (r'Continue from video cannot be used with these settings\. Continuing a video needs an NVIDIA', 'continuation-route',+ ("This computer can't continue a video", '这台电脑无法接续视频'),+ ('Continuing a video needs an NVIDIA GPU. To make a new video, clear "Continue from video".', '接续视频需要 NVIDIA 显卡。要生成新视频,请清空“Continue from video”。')),+ (r'Continue from video cannot be used with these settings\. Turn on "Two-pass', 'continuation-passes',+ ('Continuing needs two-pass acceleration', '接续需要二次采样加速'),+ ('Turn on "Two-pass acceleration" and turn off the first-pass preview.', '请打开“二次采样加速”,并关闭首轮预览。')),+ (r'Continue from video cannot be used with these settings\. Clear either', 'continuation-refine',+ ('A continued part is made in full', '接续会完整生成这一段'),+ ('Clear either "Second pass of preview" or "Continue from video".', '请清空“Second pass of preview”或“Continue from video”其中一项。')),+ (r'Continue from video cannot be used with these settings\. Connect up to 3 pictures', 'continuation-media',+ ('A continued part takes picture references only', '接续段只能用图片参考'),+ ('Connect up to 3 pictures as references, and remove video, audio and pre-encoded inputs.', '最多接 3 张图片作为参考图,并移除视频、音频参考和预编码输入。')),(r'Choose an existing MP4 video using its absolute path', 'continuation-file',('Choose the previous video', '请选择上一段视频'),('Select an existing MP4 video generated by FreeVideo. In ComfyUI, keep it inside the output or input folder.',diff --git a/web/error_panel.js b/web/error_panel.jsindex 1161a4a..3df01e3 100644--- a/web/error_panel.js+++ b/web/error_panel.js@@ -21,18 +21,18 @@ const PLAIN_ERRORS = [{key: 'continuation-size', message: 'Use the same width and height as the previous video.',title: ['The video sizes differ', '两段视频的画面大小不一致'],summary: ['Set the width and height to the previous video’s size.', '请把宽度和高度设为与上一段视频相同。']},- {key: 'continuation-route', message: 'Continue from video cannot be used with these settings. It needs an NVIDIA GPU. Clear Continue from video to make a new video.',- title: ['This computer cannot continue a video', '这台电脑不支持视频接续'],- summary: ['Continuing a video needs an NVIDIA GPU. Clear Continue from video to make a new video.', '视频接续需要 NVIDIA 显卡。要生成新视频,请清空 Continue from video。']},- {key: 'continuation-passes', message: 'Continue from video cannot be used with these settings. Turn on Two-pass acceleration and turn off Two-pass: preview first pass.',- title: ['Continuing needs the full two passes', '接续需要完整的两遍生成'],- summary: ['Turn on Two-pass acceleration and turn off Two-pass: preview first pass.', '请打开“二次采样加速”,并关闭一采预览。']},- {key: 'continuation-refine', message: 'Continue from video cannot be used with these settings. Clear Second pass of preview: a continued part is made in full.',- title: ['Continuing makes the whole part', '接续会完整生成这一段'],- summary: ['Clear Second pass of preview, or clear Continue from video.', '请清空 Second pass of preview,或清空 Continue from video。']},- {key: 'continuation-media', message: 'Continue from video cannot be used with these settings. A continued part takes up to 3 pictures as references. Remove video or audio references and pre-encoded conditioning.',- title: ['A continued part takes pictures only', '接续段只能带图片参考'],- summary: ['Connect up to 3 pictures as references. Remove video or audio references and pre-encoded conditioning.', '请把最多 3 张图片作为参考图接入,移除视频或音频参考以及预编码条件。']},+ {key: 'continuation-route', message: 'Continue from video cannot be used with these settings. Continuing a video needs an NVIDIA GPU. To make a new video, clear "Continue from video".',+ title: ['This computer can\'t continue a video', '这台电脑无法接续视频'],+ summary: ['Continuing a video needs an NVIDIA GPU. To make a new video, clear "Continue from video".', '接续视频需要 NVIDIA 显卡。要生成新视频,请清空“Continue from video”。']},+ {key: 'continuation-passes', message: 'Continue from video cannot be used with these settings. Turn on "Two-pass acceleration" and turn off the first-pass preview.',+ title: ['Continuing needs two-pass acceleration', '接续需要二次采样加速'],+ summary: ['Turn on "Two-pass acceleration" and turn off the first-pass preview.', '请打开“二次采样加速”,并关闭首轮预览。']},+ {key: 'continuation-refine', message: 'Continue from video cannot be used with these settings. Clear either "Second pass of preview" or "Continue from video".',+ title: ['A continued part is made in full', '接续会完整生成这一段'],+ summary: ['Clear either "Second pass of preview" or "Continue from video".', '请清空“Second pass of preview”或“Continue from video”其中一项。']},+ {key: 'continuation-media', message: 'Continue from video cannot be used with these settings. Connect up to 3 pictures as references, and remove video, audio and pre-encoded inputs.',+ title: ['A continued part takes picture references only', '接续段只能用图片参考'],+ summary: ['Connect up to 3 pictures as references, and remove video, audio and pre-encoded inputs.', '最多接 3 张图片作为参考图,并移除视频、音频参考和预编码输入。']},{key: 'continuation-frames', message: 'Frame count must be 5 + 17n and at least 39 (39, 56, 73, 90, ...).',aliases: ['Frames must be 0 to use Duration, or 5 + 17n and at least 39 (for example, 39, 56, 141 or 243). The total includes 22 overlap frames when continuing.'],title: ['Choose a supported frame count', '请选择支持的帧数'],diff --git a/web/freevideo.js b/web/freevideo.jsindex 071ab69..a55272e 100644--- a/web/freevideo.js+++ b/web/freevideo.js@@ -263,7 +263,7 @@ function mediaPanel(node, mount = null) {chip.title = source?.title || source?.type || label; connections.append(chip);}mode.textContent = refs ? text("Reference video · experimental", "参考生成 · 实验性") : first && last ? text("First + last frame", "首尾帧生成") : first ? text("Image to video", "图生视频") : last ? text("Last frame to video", "尾帧生成") : text("Text to video · media is optional", "文生视频 · 素材可留空");- message(refs > 32 ? text(`There are ${refs} references and the limit is 32. Remove some before generating.`, `参考素材有 ${refs} 个,超过了 32 个的上限,请减少后再生成。`) : (first || last) && continuing ? text("Continuing a video: first and last frame images are used as reference pictures.", "接续视频时,首尾帧图会作为参考图使用。") : refs && (first || last) ? text("Choose keyframes or references. Disable unused cards.", "首尾帧与参考模式不能混用,请关闭本次不用的素材。") : first > 1 || last > 1 ? text("Keep only one first frame and one last frame enabled.", "首帧和尾帧各只能启用一张图片。") : text("Connect IMAGE / AUDIO outputs on the left, or drop / paste files here.", "可连接左侧 IMAGE / AUDIO 输入,或拖入、粘贴文件。"), Boolean(refs > 32 || refs && (first || last) && !continuing || first > 1 || last > 1));+ message(refs > 32 ? text(`There are ${refs} references and the limit is 32. Remove some before generating.`, `参考素材有 ${refs} 个,超过了 32 个的上限,请减少后再生成。`) : (first || last) && continuing ? text("When continuing a video, the first and last frames are used as references.", "接续视频时,首尾帧会用作参考图。") : refs && (first || last) ? text("Choose keyframes or references. Disable unused cards.", "首尾帧与参考模式不能混用,请关闭本次不用的素材。") : first > 1 || last > 1 ? text("Keep only one first frame and one last frame enabled.", "首帧和尾帧各只能启用一张图片。") : text("Connect IMAGE / AUDIO outputs on the left, or drop / paste files here.", "可连接左侧 IMAGE / AUDIO 输入,或拖入、粘贴文件。"), Boolean(refs > 32 || refs && (first || last) && !continuing || first > 1 || last > 1));if (!rows.length && !connections.childElementCount) cards.append(el("div", text("Leave empty for text to video.", "留空则为文生视频。"), "fv-empty"));if (!rows.length && connections.childElementCount) cards.append(el('div', text('Media will come from the connected nodes.\nNo upload is needed.', '素材由已连接的节点提供。\n无需上传文件。'), 'fv-connected-card'));rows.forEach((row, index) => {