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.
The starter prompt's shot times read as seconds in the box
Bowen Xuecf7ac2324c0c
diff --git a/freevideo_engine/comfy_nodes.py b/freevideo_engine/comfy_nodes.pyindex c918a34..92fe888 100644--- a/freevideo_engine/comfy_nodes.py+++ b/freevideo_engine/comfy_nodes.py@@ -6,7 +6,7 @@ from comfy_api.latest import ComfyExtension, InputImpl, io, uifrom . import comfy_bridgefrom .comfy_continuation import optional_text, request_options-from .default_prompt import DEFAULT_PROMPT+from .default_prompt import DEFAULT_PROMPT, DEFAULT_PROMPT_DISPLAYReferences = io.Custom('FREEVIDEO_REFERENCES')LoRAs = io.Custom('FREEVIDEO_LORAS')@@ -22,7 +22,7 @@ class FreeVideoGenerate(io.ComfyNode):description='Generate a video with audio using your FreeVideo installation. Memory placement, ''caches and validated optimizations are automatic. Outputs and diagnostics are retained.',inputs=[- io.String.Input('text', display_name='Prompt', multiline=True, default=DEFAULT_PROMPT,+ io.String.Input('text', display_name='Prompt', multiline=True, default=DEFAULT_PROMPT, placeholder=DEFAULT_PROMPT_DISPLAY,tooltip='Describe the scene, motion, dialogue, sound and music.'),io.Int.Input('width', default=1344, min=256, max=4096, step=32),io.Int.Input('height', default=768, min=256, max=4096, step=32),@@ -42,7 +42,7 @@ class FreeVideoGenerate(io.ComfyNode):'When it is connected, the prompt and media inputs are not used. ''Conditioning from generic CLIP nodes is rejected.'),Media.Input('media', optional=True, tooltip='Unified Media panel: keyframes or ordered references.'),- io.Boolean.Input('two_pass', display_name='Two-pass acceleration', default=True, optional=True,+ io.Boolean.Input('two_pass', display_name='Two-step generation', default=True, optional=True,tooltip='Usually faster: generate at a lower resolution, then upscale and finish sampling at the target size.'),io.Int.Input('base_steps', display_name='First-pass steps', default=8, min=1, max=32, optional=True,tooltip='Default: 8. Changing sampling steps may reduce generation quality.'),@@ -50,8 +50,8 @@ class FreeVideoGenerate(io.ComfyNode):tooltip='Default: 3. Three steps use the independent refinement schedule. Changing sampling steps may reduce generation quality.'),io.Boolean.Input('force_regenerate', display_name='Force regeneration', default=False, optional=True,tooltip='Generate again even when an identical completed video is saved locally.'),- io.Boolean.Input('preview', display_name='Two-pass: preview first pass', default=False, optional=True,- tooltip='Part of two-pass acceleration: pause after the half-resolution first pass and save it as a preview. '+ io.Boolean.Input('preview', display_name='Two-step: preview first', default=False, optional=True,+ tooltip='Part of two-step generation: pause after the half-resolution first pass and save it as a preview. ''Run the second pass from the result when it looks right; it continues from the same latents.'),io.String.Input('refine_from', display_name='Second pass of preview', default='', optional=True, advanced=True,socketless=True, tooltip='Set by the Run second pass button: the preview video to continue. '@@ -92,7 +92,7 @@ class FreeVideoGenerate(io.ComfyNode):from .two_pass import validate_stepsvalidate_steps(base_steps, refine_steps, two_pass)if preview and not two_pass:- return 'Preview first needs two-pass acceleration.'+ return 'Preview first needs two-step generation.'comfy_bridge.installation()except (OSError, ValueError, KeyError) as error:from .continuation import UNSUPPORTED@@ -123,7 +123,7 @@ class FreeVideoGenerate(io.ComfyNode):notes = []if options.get('continue_from') and not two_pass:two_pass = True- notes.append('Continuing a video needs "Two-pass acceleration", so it is on for this part.')+ notes.append('Continuing a video needs "Two-step generation", so it is on for this part.')if options.get('continue_from') and preview:preview = Falsenotes.append('A continued part is made in full, without stopping at the preview.')diff --git a/freevideo_engine/continuation.py b/freevideo_engine/continuation.pyindex 139ab93..22a04a4 100644--- a/freevideo_engine/continuation.py+++ b/freevideo_engine/continuation.py@@ -35,7 +35,7 @@ SIZE_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 + ' 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_PASSES = UNSUPPORTED + ' Turn on "Two-step generation" 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.diff --git a/freevideo_engine/default_prompt.py b/freevideo_engine/default_prompt.pyindex 66997b0..8125c22 100644--- a/freevideo_engine/default_prompt.py+++ b/freevideo_engine/default_prompt.py@@ -4,6 +4,8 @@ Written against MiniMax H3's official h3-prompt-writing/SKILL.md andreferences/base-en.txt. This is creative copy, not a benchmark input."""+import re+# Used only as a new-node default; saved and connected prompts stay authoritative.DEFAULT_PROMPT = ('integrated_multimodal_description: [Shot 1] A premium cinematic, photorealistic '@@ -35,3 +37,15 @@ DEFAULT_PROMPT = ('harmonics, expands into full strings and deep brass as the observatory opens, then ''resolves into one bright, confident chord under the final title.')+++def display_prompt(prompt=DEFAULT_PROMPT):+ """The same text as plain prose for the studio box; the structured labels stay in the prompt sent to the model."""+ text = re.sub(r'^integrated_multimodal_description:\s*', '', prompt)+ text = re.sub(r'\[Shot \d+\]\s*', '', text)+ text = re.sub(r'At 00:0?(\d+)\.000,', lambda m: f'At {int(m.group(1))} seconds,', text)+ text = re.sub(r'\n\noverall_soundscape:\s*', '\n\nSound: ', text)+ return re.sub(r'\n\nnon_diegetic_music:\s*', '\n\nMusic: ', text)+++DEFAULT_PROMPT_DISPLAY = display_prompt()diff --git a/freevideo_engine/failure_details.py b/freevideo_engine/failure_details.pyindex ada2678..465a800 100644--- a/freevideo_engine/failure_details.py+++ b/freevideo_engine/failure_details.py@@ -452,9 +452,9 @@ def launcher_failure(value, *, zh=False, other_disk=False, disk_name='', can_rep(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\. Turn on "Two-(?:pass|step)', 'continuation-passes',+ ('Continuing needs two-step generation', '接续需要两步生成'),+ ('Turn on "Two-step generation" 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”其中一项。')),diff --git a/web/error_panel.js b/web/error_panel.jsindex 3df01e3..36e2f7a 100644--- a/web/error_panel.js+++ b/web/error_panel.js@@ -24,9 +24,9 @@ const PLAIN_ERRORS = [{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-passes', message: 'Continue from video cannot be used with these settings. Turn on "Two-step generation" and turn off the first-pass preview.',+ title: ['Continuing needs two-step generation', '接续需要两步生成'],+ summary: ['Turn on "Two-step generation" 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”其中一项。']},@@ -51,7 +51,7 @@ const PLAIN_ERRORS = [title: ['This LoRA cannot be used with the int8 model yet', '这个 LoRA 暂时不能用于 int8 模型'],summary: ['This LoRA changes parts of the model that the int8 version cannot merge yet, so it cannot be used for now. LoRAs that change only linear layers work.', '这个 LoRA 修改了 int8 模型目前还不能合并的部分,暂时无法使用。只修改线性层的 LoRA 可以正常使用。']},{key: 'fa4-update', message: 'The attention speed-up component on this computer needs an update. Run freevideo setup --fa4-guard in a terminal, then restart FreeVideo.',- title: ['The attention speed-up component needs an update', '需要更新注意力加速组件'],+ title: ['Runtime components need updating', '运行组件需要更新'],summary: ['The attention speed-up component on this computer needs an update. Run freevideo setup --fa4-guard in a terminal, then restart FreeVideo.', '注意力加速组件需要更新。请在终端运行 freevideo setup --fa4-guard,然后重新启动 FreeVideo。']},{key: 'duration-too-short', message: 'The video must be at least 1.625 s long.',title: ['The video is too short', '视频时长太短'],@@ -82,11 +82,11 @@ function knownError(text) {// When a diagnostic report exists the card hides Export report; the same advice// then names Download report in the preview or node panel.-const DOWNLOAD_ADVICE = ['If it still fails, click Download report in the preview or node panel and attach the report to a GitHub issue.',- '仍然失败时,请在预览区或节点面板中点击“下载报告”,并提交到 GitHub issue。'];+const DOWNLOAD_ADVICE = ['If it still fails, use Download report in the preview and submit it in a GitHub issue.',+ '仍然失败时,可点预览区的“下载报告”,提交到 GitHub issue。'];const EXPORT_TO_DOWNLOAD = [['Export the report if it still fails.', DOWNLOAD_ADVICE[0]],- ['If it still fails, export the report and attach it to a GitHub issue.', DOWNLOAD_ADVICE[0]],+ ['If it still fails, export the report and submit it in a GitHub issue.', DOWNLOAD_ADVICE[0]],['仍失败时请导出报告。', DOWNLOAD_ADVICE[1]],['仍然失败时,请导出报告并提交到 GitHub issue。', DOWNLOAD_ADVICE[1]],['If it still fails, export the report.', DOWNLOAD_ADVICE[0]],@@ -294,8 +294,8 @@ export function failureAdvice(value, t, known = knownError(value)) {return {...row(key, title, summary, ['', '']), plain: true};}if (/Prompt outputs failed validation|Required input is missing|Value not in list|Return type mismatch|Failed to validate prompt|value (?:\S+ )?(?:smaller|bigger) than/i.test(text))- return row('validation', ['Check the workflow inputs', '请检查工作流输入'],- ['ComfyUI rejected the workflow before generation. The affected nodes and reasons are listed below.', 'ComfyUI 在生成开始前拒绝了工作流,相关节点和具体原因列在下方。'],+ return row('validation', ['Check generation settings', '检查生成设置'],+ ['The generation settings did not pass validation; see the error details below.', '生成设置未通过检查,可查看下方错误详情。'],['Check the named inputs, connections and model choices. Copy the details or export the error report when asking for help.', '检查下方指出的输入、节点连接和模型选项;反馈时可复制详情或导出错误报告。']);if (/FreeVideo resource planning could not admit/i.test(text)) {// The planner names smaller requests it admitted on this GPU just now.@@ -304,46 +304,46 @@ export function failureAdvice(value, t, known = knownError(value)) {if (fits.length) {const en = fits.map(f => f.longest ? `${f.width}\u00a0×\u00a0${f.height} up to ${f.seconds.toFixed(1)}\u00a0s` : `${f.width}\u00a0×\u00a0${f.height} at ${f.seconds.toFixed(1)}\u00a0s`).join(', or ');const zh = fits.map(f => f.longest ? `${f.width}\u00a0×\u00a0${f.height} 最长 ${f.seconds.toFixed(1)}\u00a0秒` : `${f.width}\u00a0×\u00a0${f.height} 生成 ${f.seconds.toFixed(1)}\u00a0秒`).join(',或 ');- return row('resources', ['This video is too large for the free GPU memory', '这段视频超出了当前可用显存'],- ['Before generating, FreeVideo estimated the GPU memory this video needs, and it is more than the GPU has free right now.', 'FreeVideo 在开始生成前估算了所需显存,这段视频超过了显卡现在空闲的显存。'],- [`This computer can make ${en} right now. Change the duration or total pixels and generate again; closing other programs that use the GPU also frees memory.`,- `现在可以生成:${zh}。请调整时长或总像素后重新生成;关闭其他占用显卡的程序也可以腾出显存。`]);+ return row('resources', ['Not enough GPU memory', '显存不够'],+ ['Generation needs more GPU memory than is currently available.', '生成所需显存超过当前可用量。'],+ [`This computer can make ${en} right now. Change the duration or resolution and generate again; closing other programs that use the GPU also frees memory.`,+ `现在可以生成:${zh}。请调整时长或清晰度后重新生成;关闭其他占用显卡的程序也可以腾出显存。`]);}return row('resources', ['The request exceeds available memory', '当前任务的可用内存不足'],- ['Before generating, FreeVideo estimated the GPU memory and RAM this task needs, and it is more than is available right now.', 'FreeVideo 在开始生成前估算了所需的显存和内存,这次任务超过了现在可用的部分。'],- ['Close other memory-heavy programs, or lower the resolution or shorten the duration, and retry. The details show whether GPU memory or RAM ran short, and by how much.', '请关闭其他占用内存的程序,或调低分辨率、缩短时长后重试。详情里写明了是显存还是内存不足,以及还差多少。']);+ ['Generation did not start because there is not enough available RAM or GPU memory.', '可用内存或显存不足,本次生成未开始。'],+ ['Close memory-heavy applications, or lower the resolution or duration, then retry.', '可关闭占用内存较多的程序,或调低分辨率、缩短时长后重试。']);}if (/commit headroom exhausted|paging file is too small|WinError 1455/i.test(text))- return row('commit', ['Windows memory allocation limit reached', 'Windows 内存提交额度不足'],- ['Windows cannot back another memory allocation, even if physical RAM is still available.', 'Windows 已没有足够的内存提交额度;即使物理内存还有空闲,也无法再分配内存。'],+ return row('commit', ['Not enough Windows memory', 'Windows 内存不足'],+ ['Windows cannot provide enough memory for generation right now.', 'Windows 暂时无法提供生成所需的内存。'],['Close memory-heavy applications and retry. In Windows virtual memory settings, use a system-managed paging file on a drive with free space.', '关闭占用内存较多的程序后重试。在 Windows 虚拟内存设置中,使用系统管理的分页文件,并确保所在磁盘有空闲空间。']);// Refused before it starts: more than this Mac can allocate at all, so closing// other applications cannot help (macos_generate.request_admission).if (/needs at least [\d.]+ GiB of unified memory for .*this Mac can allocate at most/i.test(text))return row('unified-memory-limit', ['Not enough unified memory', '统一内存不足'],- ['These settings need more unified memory than this Mac can allocate, even with other applications closed.', '这组设置需要的统一内存超过了这台 Mac 可分配的上限,关闭其他程序也无法满足。'],+ ['These settings need more memory than the device can provide.', '这组设置需要的内存超过设备上限。'],['Choose a lower resolution or a shorter duration and retry.', '请降低分辨率或缩短时长后重试。']);if (/MPS backend out of memory|MPS (?:generation|encoding|decoding) reached|No unified-memory allowance|Native generation needs at least .* unified memory/i.test(text))return row('unified-memory', ['Not enough unified memory', '统一内存不足'],- ['On a Mac, the CPU and GPU share unified memory. This step needed more unified memory than was available at the time.', 'Mac 的 CPU 和 GPU 共用统一内存。这一步需要的统一内存超过了当时可用的量。'],- ['Close memory-heavy applications and retry, or choose a lower resolution or a shorter duration. If you set a memory limit or reserve in Settings, check it as well. If it still fails, export the report.', '请关闭占用内存较多的程序后重试,或降低分辨率、缩短时长。如果在设置中手动设置了内存上限或预留,请一并检查。仍然失败时,请导出报告。']);+ ['Generation needed more memory than was available.', '生成所需内存超过当时可用量。'],+ ['Close memory-heavy applications, or lower the resolution or duration, then retry. Export the report if it still fails.', '可关闭占用内存较多的程序,或调低分辨率、缩短时长后重试。仍然失败时,请导出报告。']);if (/CUDA out of memory|torch\.OutOfMemoryError|cudaErrorMemoryAllocation/i.test(text))- return row('vram', ['GPU memory allocation failed', '显存分配失败'],- ['The GPU could not allocate the memory needed at this stage.', '这一阶段的显存申请没有成功。'],- ['Close other GPU workloads and retry so FreeVideo can replan using the newly available memory. Your resolution, duration and steps are kept.', '关闭其他占用显卡的任务后重试,FreeVideo 会根据新的可用显存重新规划,保留你的分辨率、时长和步数。']);+ return row('vram', ['GPU memory unavailable', '显存暂不可用'],+ ['', ''],+ ['Close other programs using the GPU, then retry.', '关闭其他占用显卡的程序后重试。']);const ramReasons = /RAM guard:\s*([a-z_, ]+)\./i.exec(text)?.[1] || '';if (ramReasons.includes('system_or_commit_pressure') && !ramReasons.includes('working_memory_budget'))return row('ram', ['System memory headroom is too low', '系统可用内存不足'],- ['Memory headroom fell below the safety threshold during execution, so generation stopped. Earlier planning values may be higher.', '运行时测得的系统内存余量低于保护线,生成已停止。此前资源规划时的数值可能更高。'],+ ['Generation stopped because available memory was too low.', '可用内存不足,生成已停止。'],['Close memory-heavy applications and duplicate FreeVideo/ComfyUI instances, then retry. Export the report if it still fails.', '关闭占用内存较多的程序及重复运行的 FreeVideo/ComfyUI 后重试。仍失败时请导出报告。']);if (ramReasons.includes('working_memory_budget') && !ramReasons.includes('system_or_commit_pressure'))- return row('ram', ['The configured RAM limit was reached', '已触及设置的 RAM 限额'],- ['The worker exceeded the enforced RAM budget from a manual limit or selected profile.', '生成进程超过了手动限额或所选配置规定的 RAM 预算。'],- ['Review the RAM limit or selected profile. Automatic mode replans from available memory. Export the report if it still fails.', '检查 RAM 限额或所选配置;自动模式会根据可用内存重新规划。仍失败时请导出报告。']);+ return row('ram', ['Memory limit reached', '已达到内存上限'],+ ['This generation exceeded the configured memory limit.', '本次生成超过了设置的内存上限。'],+ ['Check the memory limit in Settings, or switch back to automatic. Export the report if it still fails.', '请在设置里检查内存上限,或改回自动。仍然失败时,请导出报告。']);if (/RAM guard:|crossed its RAM budget|Insufficient currently available memory/i.test(text))- return row('ram', ['Available memory or an explicit RAM limit reached', '可用内存或手动 RAM 限额不足'],- ['Automatic RAM estimates can be exceeded while memory is available. This stop indicates system pressure or an explicitly enforced limit.', '自动模式允许在系统仍有余量时超出预估 RAM;停止意味着系统内存压力,或触及了手动设置的硬限制。'],- ['Close memory-heavy applications and retry. If you set a RAM limit for testing, remove or raise it for normal generation. Copy the details below if it still fails.', '关闭占用内存较多的程序后重试。如果设置过测试用 RAM 限制,正常生成时可取消或调高。仍失败时可复制下方详情。']);+ return row('ram', ['Memory is low or its limit was reached', '内存不足或已达到上限'],+ ['Generation stopped because memory was low or its configured limit was reached.', '内存不足或已达到设置的上限,生成已停止。'],+ ['Close memory-heavy applications and retry. If you set a memory limit, remove or raise it. Copy the details below if it still fails.', '关闭占用内存较多的程序后重试;设置过内存上限的,请取消或调高。仍然失败时,可复制下方详情。']);if (/No space left on device|WinError 112|disk (?:is )?full/i.test(text))return row('disk', ['Disk space is insufficient', '磁盘空间不足'],['FreeVideo could not write a required file.', 'FreeVideo 无法写入所需文件。'],@@ -351,14 +351,14 @@ export function failureAdvice(value, t, known = knownError(value)) {if (/Model download paused|unexpected-transfer-size|ConnectionError|ConnectTimeout|ReadTimeout|Every download source failed|All Git sources failed|All package sources failed|curl-28/i.test(text))return row('download', ['Download needs attention', '下载未完成'],['A transfer failed or its received data did not match the expected file.', '传输中断,或收到的数据与预期文件不一致。'],- ['Check your connection or select another download source in Settings, then retry. Existing download fragments are retained.', '检查网络,或在设置中切换下载源后重试。已有下载片段会保留。']);+ ['Choose another download source in Settings and retry; download progress is kept.', '可在设置中切换下载源后重试,下载进度会保留。']);if (/ModuleNotFoundError|No module named|DLL load failed/i.test(text))- return row('dependencies', ['A runtime dependency could not load', '运行依赖无法加载'],- ['A component FreeVideo needs could not load. This usually means the environment is incomplete or an incompatible environment was selected.', 'FreeVideo 运行所需的组件没能加载,通常是运行环境不完整,或者选择了不兼容的环境。'],- ['In the FreeVideo launcher, open Settings › Environment and click Repair; it checks this installation and restores what is missing. If it still fails, export the report and attach it to a GitHub issue.', '请在 FreeVideo 启动器的“设置 → 环境”里点击“修复”,它会检查这份安装并补齐缺少的组件。仍然失败时,请导出报告并提交到 GitHub issue。']);+ return row('dependencies', ['A runtime component could not load', '运行组件无法加载'],+ ['A component needed to run FreeVideo could not load.', 'FreeVideo 所需的运行组件未能加载。'],+ ['Select "Repair" in the launcher under Settings > Environment. If it still fails, export the report and submit it in a GitHub issue.', '可在启动器“设置 → 环境”里点“修复”。仍然失败时,请导出报告并提交到 GitHub issue。']);return row('unknown', ['Generation stopped', '生成已停止'],- ['FreeVideo hit an internal error, and this generation did not finish.', 'FreeVideo 内部出错,这次生成没有完成。'],- ['Click Export report and attach the report to a GitHub issue; we will look into it and fix the problem for you.', '请点击“导出报告”,并把报告提交到 GitHub issue,我们会专门排查,为您解决这个问题。']);+ ['This generation did not finish.', '这次生成未完成。'],+ ['Click Export report and submit it in a GitHub issue; we will look into it.', '请点“导出报告”,提交到 GitHub issue,我们会专门排查。']);}let activeDialog = null;@@ -462,7 +462,7 @@ export function createErrorPanel(t) {// disabled by the browser or the page is served over plain HTTP.disclosure.open = true; details.value = JSON.stringify(currentReport, null, 2);details.focus(); details.select();- downloadStatus.textContent = t('Download unavailable. Use Copy error to copy the report below.', '浏览器未能下载,请点击“复制错误”复制下方完整报告。');+ downloadStatus.textContent = t('The download did not finish; select "Copy error" to copy the report below.', '下载未完成,可点“复制错误”复制下方报告。');} finally {link?.remove();if (url) setTimeout(() => URL.revokeObjectURL(url), 30000);@@ -477,15 +477,15 @@ export function createErrorPanel(t) {: failureAdvice(report.details, t, report.known_error ?? null);if (report.stage === 'submission' && advice.kind === 'unknown') {advice.title = t('The task could not be submitted', '任务提交失败');- advice.summary = t('The task submission returned an error. Its details are shown below.', '提交任务时返回了错误,具体原因显示在下方。');+ advice.summary = t('The task could not be submitted; see the error details below.', '任务未提交成功,可查看下方错误详情。');}if (report.stage === 'queue' && advice.kind === 'unknown') {advice.title = t('The queue operation did not complete', '队列操作未完成');advice.summary = t('Check that ComfyUI is still running and connected, then retry.', '请确认 ComfyUI 仍在运行、连接正常后重试。');}if (advice.kind === 'unknown' && ['submission', 'queue'].includes(report.stage))- advice.action = t('Copy the error details when reporting the issue; they include the failed stage when available.', '反馈问题时请复制错误详情,其中会保留已记录的失败阶段。');- title.textContent = advice.title; explanation.textContent = advice.summary; action.textContent = advice.action;+ advice.action = t('Select "Copy error" to keep the error details.', '可点“复制错误”保留错误详情。');+ title.textContent = advice.title; explanation.textContent = advice.summary; explanation.hidden = !advice.summary; action.textContent = advice.action;element.querySelector('.fv-extension-steps')?.remove();if (advice.kind === 'browser-extension') action.after(extensionSteps(advice));element.freevideoKind = advice.kind; reload.hidden = advice.kind !== 'browser-extension';@@ -497,7 +497,7 @@ export function createErrorPanel(t) {}action.hidden = !advice.action;const stage = report.stage === 'submission' ? t('Submitting task', '提交任务')- : report.stage === 'queue' ? t('Queue operation', '队列操作') : t('Executing workflow', '执行工作流');+ : report.stage === 'queue' ? t('Queue operation', '队列操作') : t('Generating', '正在生成');location.textContent = stage + (report.http_status ? ` · HTTP ${report.http_status}` : '')+ report.nodes.map(node => ` · ${node.type || t('Node', '节点')} #${node.id}`).join('');const reasons = report.nodes.flatMap(node => node.errors.map(error =>@@ -516,15 +516,15 @@ export function createErrorPanel(t) {downloadStatus.textContent = '';download.hidden = diagnosticReports.has(report);if (internal && download.hidden)- action.textContent = t('Click Download report in the preview or node panel and attach the report to a GitHub issue; we will look into it and fix the problem for you.',- '请在预览区或节点面板中点击“下载报告”,并把报告提交到 GitHub issue,我们会专门排查,为您解决这个问题。');+ action.textContent = t('Use Download report in the preview and submit it in a GitHub issue; we will look into it.',+ '请点预览区的“下载报告”,提交到 GitHub issue,我们会专门排查。');else if (download.hidden) {// Advice that ends with "export the report" points at the report this card does offer.for (const [from, to] of EXPORT_TO_DOWNLOAD)if (action.textContent.includes(from)) action.textContent = action.textContent.replace(from, to);}privacy.textContent = download.hidden- ? t('Use Download report in the preview or node panel for the diagnostic report.', '完整诊断请使用预览区或节点面板中的“下载报告”。')+ ? t('Select "Download report" in the preview to save the full diagnostic information.', '可在预览区点“下载报告”保存完整诊断信息。'): t('Paths and typed text are removed.', '已去掉路径和输入的文字。');copy.textContent = advice.kind === 'sampling-table' ? t('Copy details', '复制详情') : t('Copy error', '复制错误');if (popup) showFailureDialog(report, t);diff --git a/web/freevideo.js b/web/freevideo.jsindex 5957ada..e6b301f 100644--- a/web/freevideo.js+++ b/web/freevideo.js@@ -73,7 +73,7 @@ function mediaKind(name) {throw new Error(text("Choose an image, video or audio file", "请选择图片、视频或音频文件"));}-const referenceHelp = () => text('When one input receives several images, each counts as one reference.', '一个接口接入多张图片时,每张各算一个参考素材。');+const referenceHelp = () => text('Each reference image counts as one media item.', '每张参考图片各占一个素材名额。');// Input names stay English like every other node's; the panel's chips are translated.const referenceSocket = index => `Reference image ${index + 1}`;const referenceLabel = index => text(`Reference image ${index + 1}`, `参考图片 ${index + 1}`);@@ -184,7 +184,7 @@ function mediaPanel(node, mount = null) {try {outcome = await openImageEditor({source, name: source, target: videoSize(), edit: original.edit || agent?.edit || null, role: original.role,t: text, resolve: viewURL, upload: uploadOne, library, tool});- } catch (error) { message(text('The image could not be opened for editing.', '这张图片无法打开编辑。'), true); return; }+ } catch (error) { message(text('This image cannot be edited right now; choose an image again.', '图片暂时无法编辑,可重新选择图片。'), true); return; }if (!outcome) return;// The cards may have changed meanwhile; find this one again by its file.const rows = read(), at = rows.findIndex(row => row.file === file);@@ -202,8 +202,8 @@ function mediaPanel(node, mount = null) {if (index < 0) return;const hasOriginal = outcome.edit.layers.some(layer => layer.id === 'base');latest[index] = {...latest[index], file: result.file, ...(hasOriginal ? {source} : {}), edit: outcome.edit}; update(latest);- message(hasOriginal ? text(`Saved the edited image, ${outcome.width}×${outcome.height}. The original is kept.`,- `已保存编辑后的图片(${outcome.width}×${outcome.height}),原图保留。`) : '');+ message(hasOriginal ? text('The edited image is saved, and the original is kept.',+ '编辑后的图片已保存,原图已保留。') : '');} catch (error) { message(error.message, true); }finally { node.isUploading = false; add.disabled = false; addAudio.disabled = false; }}@@ -215,7 +215,7 @@ function mediaPanel(node, mount = null) {try {outcome = await openImageEditor({target: videoSize(), role: role.value, t: text,resolve: viewURL, upload: uploadOne, library});- } catch { message(text('The image could not be opened for editing.', '这张图片无法打开编辑。'), true); return; }+ } catch { message(text('This image cannot be edited right now; choose an image again.', '图片暂时无法编辑,可重新选择图片。'), true); return; }if (!outcome?.blob || read().length >= 32) return;node.isUploading = true; add.disabled = addAudio.disabled = generateImage.disabled = true;try {@@ -252,8 +252,8 @@ function mediaPanel(node, mount = null) {const audioRefs = active.filter(row => row.role === 'reference' && mediaKind(row.file) === 'audio').length + Number(linked('reference_audio'));const refs = active.filter(row => row.role === "reference").length + referenceInputs.filter(linked).length + Number(linked('reference_audio'));audioHelp.hidden = !audioRefs;- audioHelp.textContent = text('Use <Audio 1>, <Audio 2>, … in your prompt to guide the generated voice, music or rhythm. A clip is cut to the generated length, up to 15 seconds. Set accompanying images to Reference.',- '在提示词中用 <Audio 1>、<Audio 2> 等标签引导生成的音色、音乐或节奏。片段只取与生成视频等长的部分,最长 15 秒;搭配的图片请选择“参考”用途。');+ audioHelp.textContent = text('Use <Audio 1>, <Audio 2> in your prompt to guide voice, music or rhythm; up to the first 15 s is used. Set accompanying images to Reference.',+ '在提示词里用 <Audio 1>、<Audio 2> 参考音色、音乐或节奏,最多取前 15 秒;搭配的图片选“参考”。');connections.replaceChildren();for (const [name, label] of [['first', text('First frame', '首帧')], ['last', text('Last frame', '尾帧')], ...referenceInputs.map((name, index) => [name, referenceLabel(index)]), ['reference_audio', text('Reference audio', '参考音频')]]) {if (!linked(name)) continue;@@ -263,9 +263,9 @@ 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("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));+ message(refs > 32 ? text('There are more than 32 references; remove some before generating.', '参考素材超过 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("Drop or paste files, or connect images and audio on the left.", "可拖入、粘贴文件,或连接左侧的图片和音频。"), 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'));+ if (!rows.length && connections.childElementCount) cards.append(el('div', text('Media comes from the connected inputs; no upload is needed.', '素材来自已连接的输入,无需上传。'), 'fv-connected-card'));rows.forEach((row, index) => {const card = el("div", undefined, "fv-card"); card.dataset.enabled = String(row.enabled !== false);const top = el("div", undefined, "fv-row");@@ -315,8 +315,8 @@ function mediaPanel(node, mount = null) {const length = el("div", "", "fv-note"); length.hidden = true; card.append(length);preview.onloadedmetadata = () => {if (!(preview.duration > 15.05) || !Number.isFinite(preview.duration)) return;- length.textContent = text(`${preview.duration.toFixed(1)} s: cut to the generated length when used, at most the first 15 s`,- `时长 ${preview.duration.toFixed(1)} 秒:生成时按视频时长截取前段,最多前 15 秒`);+ length.textContent = text(`Audio length: ${preview.duration.toFixed(1)} s; uses up to the first 15 s within the video length.`,+ `音频长 ${preview.duration.toFixed(1)} 秒,最多取前 15 秒且不超过视频时长。`);length.hidden = false;};}@@ -487,13 +487,13 @@ function resultPanel(node) {const size = onGPU ? ` · ${(value.gpu_bytes_after / 2 ** 30).toFixed(1)} GiB` : '';const percent = ` · ${Math.min(100, Math.floor(100 * value.done_bytes / value.bytes))}%`;note.textContent = value.purpose === 'upscale'- ? (value.state === 'reading' ? text('Preparing the files the second pass reads', '正在预读二采要用的模型文件') + percent- : value.state === 'ready' ? text('Second-pass files warmed · no VRAM reserved', '二采要用的模型文件已预热 · 不占用显存') : '')- : value.state === 'loading' ? text('Preparing text encoder on GPU in background', '正在后台预加载文本编码器到 GPU') + size- : value.state === 'partial' ? text('Text encoder partially prepared on GPU', '文本编码器已部分预加载到 GPU') + size- : value.state === 'reading' ? text('Preparing encoder files', '正在预读编码器文件') + percent- : value.state === 'ready' ? (onGPU ? text('Text encoder ready on GPU', '文本编码器已在 GPU 就绪') + size- : text('Encoder files warmed · no VRAM reserved', '编码器文件已预热 · 不占用显存')) : '';+ ? (value.state === 'reading' ? text('Preparing model files', '正在准备模型文件') + percent+ : value.state === 'ready' ? text('Model files ready', '模型文件已就绪') : '')+ : value.state === 'loading' ? text('Preparing the prompt model', '正在准备提示词模型') + size+ : value.state === 'partial' ? text('Prompt model still preparing', '提示词模型仍在准备') + size+ : value.state === 'reading' ? text('Preparing the prompt model', '正在准备提示词模型') + percent+ : value.state === 'ready' ? (onGPU ? text('Prompt model ready', '提示词模型已就绪') + size+ : text('Prompt model ready', '提示词模型已就绪')) : '';node.freevideoPrewarm = note.textContent;window.dispatchEvent(new CustomEvent('freevideo-prewarm', {detail: {node: node.id, label: note.textContent}}));};@@ -520,7 +520,7 @@ function resultPanel(node) {links.append(link);}links.append(shareButton(value, text));- links.append(el("span", value.result_cache_hit ? text("Reused previous result", "已复用上次结果") : value.conditioning_cache_hit ? text("Input cache reused", "已复用输入缓存") : text("Inputs encoded", "已编码输入"), "fv-mode"));+ links.append(el("span", value.result_cache_hit ? text("Reused previous result", "已复用上次结果") : value.conditioning_cache_hit ? text("Previous inputs reused", "已使用上次的输入") : text("Inputs ready", "输入已准备好"), "fv-mode"));if (value.preview) {links.append(secondPassAction(text, async () => {try { await node.freevideoUpscaleResult(value); }@@ -538,7 +538,7 @@ function resultPanel(node) {}panel.append(stats, links, progress.stall, progress.report);for (const row of value.reference_trims || []) panel.append(el("div", referenceTrimText(row, text), "fv-note fv-trim-note"));- if (value.low_memory && !value.result_cache_hit) resultNotes.push(el("div", text('This video used the low-memory mode for this GPU, so it took longer than usual. A lower resolution or a shorter video runs faster.', '这段视频使用了省显存方式,所以比平时慢。降低分辨率或缩短时长会更快。'), "fv-note"));+ if (value.low_memory && !value.result_cache_hit) resultNotes.push(el("div", text('Generation was slow; try a lower resolution or shorter video.', '生成较慢,可降低分辨率或缩短时长后再试。'), "fv-note"));if (value.thermal && !value.result_cache_hit) resultNotes.push(el("div", thermalText(value.thermal, text), "fv-note"));const shared = value.shared_gpu && !value.result_cache_hit ? sharedGpuText(value.shared_gpu, text) : '';if (shared) resultNotes.push(el("div", shared, "fv-note"));@@ -550,9 +550,6 @@ function resultPanel(node) {}panel.append(...resultNotes);warn();- panel.title = (unified- ? text("Unified memory: device capacity. Process RAM is not total GPU memory, ", "统一内存为设备总量;进程内存不代表 GPU 内存总占用,")- : text("VRAM: engine allocator peak. RAM: measured request processes, ", "显存为引擎分配器峰值,内存为请求进程实测,")) + (value.ram_metric || "unknown");fitPanel();};node.freevideoUpscaleResult = createSecondPassQueue(api, () => node.id, async () => cleanOptionalPrompt(await app.graphToPrompt()));@@ -662,7 +659,7 @@ app.registerExtension({return;}if (!["FreeVideoMedia", "FreeVideoGenerate", "FreeVideoLoRAStack"].includes(nodeData.name)) return;- if (nodeData.name === "FreeVideoGenerate") nodeType.prototype.freevideoStarterPrompt = nodeData.input?.required?.text?.[1]?.default || '';+ if (nodeData.name === "FreeVideoGenerate") { const spec = nodeData.input?.required?.text?.[1] || {}; nodeType.prototype.freevideoStarterPrompt = spec.default || ''; nodeType.prototype.freevideoStarterShown = spec.placeholder || spec.default || ''; }const created = nodeType.prototype.onNodeCreated;nodeType.prototype.onNodeCreated = function () {const result = created?.apply(this, arguments);@@ -689,15 +686,15 @@ app.registerExtension({if (prompt) { const owner = this; prompt.serializeValue = () => expandCast(prompt.value, mediaRows(owner), {active: !owner.freevideoCastOff?.()}).text; }const quality = this.widgets?.find(w => w.name === 'two_pass');if (quality) {- quality.label = text('Two-pass acceleration', '二次采样加速');- quality.tooltip = text('Usually faster: generate at a lower resolution, then upscale and finish sampling at the target size.', '通常更快:先以低分辨率生成,再放大到目标分辨率完成采样,缩短生成时间。');+ quality.label = text('Two-step generation', '两步生成');+ quality.tooltip = text('Usually faster: generates at a lower resolution, then upscales and refines.', '通常更快:先用低分辨率生成,再放大细化。');}- for (const [name, en, zh] of [['base_steps', 'First-pass steps', '一采步数'], ['refine_steps', 'Second-pass steps', '二采步数']]) {+ for (const [name, en, zh] of [['base_steps', 'First-pass steps', '首轮步数'], ['refine_steps', 'Refine steps', '细化步数']]) {const steps = this.widgets?.find(w => w.name === name);if (steps) {steps.label = text(en, zh);- steps.tooltip = text('Changing sampling steps may reduce generation quality. Defaults: 8 + 3. Other second-pass counts must be fewer than first-pass steps.',- '修改采样步数可能降低生成质量。默认一采 8 步、二采 3 步;其他二采步数需小于一采步数。');+ steps.tooltip = text('Changing steps may lower quality. Default: 8 first-pass and 3 refine steps; refine steps must be fewer.',+ '修改步数可能降低质量。默认首轮 8 步、细化 3 步;细化步数要少于首轮。');}}for (const widget of this.widgets || []) {diff --git a/web/generation_progress.js b/web/generation_progress.jsindex 1a4ddfe..fa58b4a 100644--- a/web/generation_progress.js+++ b/web/generation_progress.js@@ -13,29 +13,29 @@ const duration = value => {const progressFields = ['phase', 'stage', 'timing_phase', 'label', 'done', 'total', 'block'];// Iris's approved substage sentences. Unknown engine labels never reach the UI.const SUBACTIVITY = {- start: ['Starting the generation process', '正在启动生成进程'],- libraries: ["Loading the text encoder's libraries", '正在载入文本编码器的程序库'],- weights: ['Reading the text encoder from disk', '正在从硬盘读取文本编码器'],- gpu: ['Moving the text encoder to the GPU', '正在把文本编码器载入显卡'],- prompt: ['Encoding the prompt', '正在编码提示词'],- reference: ['Encoding the reference images and videos', '正在编码参考图片和视频'],+ start: ['Starting generation', '正在启动生成'],+ libraries: ["Preparing the prompt model", '正在准备提示词模型'],+ weights: ['Reading the prompt model', '正在读取提示词模型'],+ gpu: ['Loading the prompt model', '正在加载提示词模型'],+ prompt: ['Processing the prompt', '正在处理提示词'],+ reference: ['Processing reference images and videos', '正在处理参考图片和视频'],load: ['Loading the video model', '正在载入视频模型'],first: ['Running the first step (it takes longer the first time a size is used or after an update)','正在进行第一步(首次使用这个尺寸或更新后,第一步要多花一些时间)'],- upscale: ['Upscaling the first pass', '正在放大第一遍的结果'],- decoder: ['Loading the video decoder', '正在载入视频解码器'],- decode: ['Decoding the video', '正在解码视频'],- audio: ['Decoding the audio', '正在解码音频'],+ upscale: ['Upscaling the video', '正在放大画面'],+ decoder: ['Preparing video output', '正在准备输出视频'],+ decode: ['Rendering the video', '正在输出视频'],+ audio: ['Rendering the audio', '正在输出音频'],save: ['Saving the video', '正在保存视频'],};// [EN, ZH, EN with a step, ZH with a step]; a request that samples twice adds which pass.const SAMPLING_NAME = {- single: ['Sampling', '正在采样', 'Sampling step', '正在采样第 '],- first: ['Sampling (first pass)', '正在采样(一采)', 'Sampling step', '正在采样第 '],- pass2: ['Sampling (second pass)', '正在采样(二采)', 'Sampling step', '正在采样第 '],- preview: ['Sampling (preview)', '正在采样(预览)', 'Sampling step', '正在采样第 '],+ single: ['Sampling', '正在采样', 'Step', '正在生成 · 第 '],+ first: ['Generating video', '正在生成视频', 'Step', '正在生成 · 第 '],+ pass2: ['Generating video', '正在生成视频', 'Step', '正在生成 · 第 '],+ preview: ['Generating a preview', '正在生成预览', 'Step', '正在生成 · 第 '],};-const SAMPLING_PASS = {first: ['first pass', '一采'], pass2: ['second pass', '二采'], preview: ['preview', '预览']};+const SAMPLING_PASS = {first: ['first pass', '首轮'], pass2: ['refine', '细化'], preview: ['preview', '预览']};const SUBACTIVITY_LABELS = {'Starting generation process': 'start', 'Starting text encoder': 'libraries','Loading text encoder': 'libraries', 'Preparing text encoder GPU': 'gpu',@@ -105,10 +105,10 @@ const STALL_SECONDS_BY_PHASE = Object.freeze({const ACTIVITY = {prepare: ['Preparing', '正在准备'],describe: ['Writing part descriptions', '正在写各段描述'],- prompt: ['Encoding the prompt', '正在编码提示词'],- combined: ['Encoding the prompt and references', '正在编码提示词和参考素材'],+ prompt: ['Processing the prompt', '正在处理提示词'],+ combined: ['Processing the prompt and references', '正在处理提示词和参考素材'],load: ['Loading the video model', '正在载入视频模型'],- decode: ['Decoding the video', '正在解码视频'],+ decode: ['Rendering the video', '正在输出视频'],save: ['Saving the video', '正在保存视频'],};const LABEL_ACTIVITY = {@@ -139,8 +139,8 @@ const REFERENCE_WORK = new Set(['Encoding reference media', 'Encoding image/vide'Encoding long references', 'Encoding long references in smaller blocks']);const labelActivities = new Map(Object.entries(LABEL_ACTIVITY).flatMap(([key, labels]) => labels.map(label => [label, key])));const DOWNLOADS = {- preset_download: ['Downloading sampling tables', '下载采样表'],- dependencies: ['Downloading sampling tables', '下载采样表'],+ preset_download: ['Downloading files for generation', '正在下载生成所需文件'],+ dependencies: ['Downloading files for generation', '正在下载生成所需文件'],sources_download: ['Downloading model files', '下载模型文件'],reference_download: ['Downloading model files', '下载模型文件'],};@@ -180,9 +180,9 @@ function activityLabel(message, t, plan = {}, secondPass = false, references = fif (phase === 'sample_finalize') return named('decode');if (message.stage === 'latent_upscale' || phase === 'latent_upscale')return {key: 'upscale', text: Number.isInteger(second?.width) && Number.isInteger(second?.height)- ? t(`Second pass · upscaling to ${second.width} × ${second.height}`,- `二采 · 放大到 ${second.width} × ${second.height}`)- : t('Second pass · upscaling', '二采 · 放大')};+ ? t(`Refine · upscaling to ${second.width} × ${second.height}`,+ `细化 · 放大到 ${second.width} × ${second.height}`)+ : t('Refine · upscaling', '细化 · 放大')};if (phase === 'sampling' || phase === 'refinement' || message.stage === 'preview_mismatch') {const done = Number.isInteger(message.done) ? message.done : null;const total = Number.isInteger(message.total) && message.total > 0 ? message.total : null;@@ -202,7 +202,7 @@ function activityLabel(message, t, plan = {}, secondPass = false, references = fload: 'load', decode: 'decode', save: 'save',}[phase] || labelActivities.get(message.stage);if (!key) return null;- if (key === 'refine') return {key: 'upscale', text: t('Second pass · upscaling', '二采 · 放大')};+ if (key === 'refine') return {key: 'upscale', text: t('Refine · upscaling', '细化 · 放大')};// Named encoder and post-sampling events stay distinct, even before a pause.const substage = SUBACTIVITY_LABELS[message.label] || (key === 'reference' ? 'reference' : null);if (substage) return {key: ['prompt', 'combined', 'reference'].includes(key) ? 'encode' : key,@@ -218,15 +218,11 @@ function activityLabel(message, t, plan = {}, secondPass = false, references = ffunction retryText(retry, t) {const reason = {gpu_oom: ['Out of GPU memory', '显存不足'], ram_pressure: ['Out of RAM', '内存不足'],- unified_memory: ['Out of unified memory', '统一内存不足']}[retry.kind]+ unified_memory: ['Not enough memory', '内存不够']}[retry.kind]|| ['Previous attempt did not finish', '上一次尝试没有完成'];- if (retry.reuse_sampling === true) return t(`${reason[0]}; sampling kept, retrying decoding.`,- `${reason[1]},采样已保留,正在重试解码。`);- const kept = retry.reuse_first_pass === true;- const action = retry.kind === 'gpu_oom' ? ['in low-memory mode', '改用省显存方式']- : ['using less memory', '改用更省内存的设置'];- return t(`${reason[0]}; ${kept ? 'first pass kept, ' : ''}retrying ${kept ? 'the second pass ' : ''}${action[0]}.`,- `${reason[1]},${kept ? '第一遍已保留,' : ''}正在${action[1]}重试${kept ? '第二遍' : ''}。`);+ if (retry.reuse_sampling === true) return t(`${reason[0]}; the generated result is kept, and a retry is in progress.`,+ `${reason[1]},已保留生成结果,正在重试。`);+ return t(`${reason[0]}; adjusting settings and retrying.`, `${reason[1]},正在调整设置后重试。`);}function trimStatus(rows, t) {@@ -267,20 +263,19 @@ export function encoderFilePath(file) {}export function encoderFileText(file, t) {- const [actual, expected] = file.sizes;- let message = t(`This run used a ${actual} GiB text encoder file, not the ${expected} GiB file with the same name that FreeVideo tests. Results and speed are not guaranteed to match the tested version.`,- `这次使用的文本编码器文件(${actual} GiB)不是 FreeVideo 测试过的同名文件(${expected} GiB)。生成结果和速度都不保证与测试过的版本一致。`);+ let message = t('The prompt model file differs from the tested one, so results and speed may differ.',+ '提示词模型文件和测试过的版本不同,效果和速度可能不一样。');if (file.offline_installation === true) {const target = encoderFilePath(file) ? t('the file below', '下面这个文件') : t('this file', '这个文件');message += t(` This offline-package installation cannot switch back in one step yet. Close FreeVideo, move or rename ${target}, then import the Text encoder package again on the Installation page of the launcher.`,`离线包安装暂时不能一键换回。请先关闭 FreeVideo,把${target}移走或改名,再在启动器的“安装”页重新导入“文本编码器”包。`);} else if (file.launcher === true) message += t(- ' In the FreeVideo launcher, open Settings › Environment and click Repair to switch back to the tested file; the current file is kept under a new name.',- '在 FreeVideo 启动器的“设置 → 环境”中点击“修复”,可以换回测试过的文件,原文件会改名保留。');+ ' Select "Repair" in the launcher under Settings > Environment to restore the tested file; the current file is kept.',+ '可在启动器“设置 → 环境”中点“修复”恢复已验证的文件,原文件会保留。');else message += t(- " Click Install / repair in FreeVideo's settings on this page (or, if you installed with setup.sh, run ./setup.sh again); after you confirm, the tested file is restored and the current file is kept under a new name.",- '请在页面的 FreeVideo 设置中点击“安装/修复”(用 setup.sh 安装的,也可以重新运行 ./setup.sh);确认后会换回测试过的文件,原文件改名保留。');+ ' Select "Install / repair" in the page settings to restore the tested file; the current file is kept.',+ '可在页面设置中点“安装/修复”恢复已验证的文件,原文件会保留。');return message;}@@ -535,7 +530,7 @@ export function createGenerationProgress(t, now = () => Date.now(), {compact = fstopCount(); countShown = null;heading.hidden = true;element.dataset.counted = 'false'; element.dataset.complete = 'false'; count.textContent = ''; fill.style.width = '';- track.setAttribute('aria-label', t('Estimated overall video progress', '视频整体预估进度'));+ track.setAttribute('aria-label', t('Generation progress', '生成进度'));track.removeAttribute('aria-valuenow'); track.removeAttribute('aria-valuemax'); track.removeAttribute('aria-valuetext');return;}@@ -552,7 +547,7 @@ export function createGenerationProgress(t, now = () => Date.now(), {compact = fheading.hidden = !known;element.dataset.counted = String(known);element.dataset.complete = String(complete);- track.setAttribute('aria-label', t('Estimated overall video progress', '视频整体预估进度'));+ track.setAttribute('aria-label', t('Generation progress', '生成进度'));track.setAttribute('aria-valuemax', '100');if (known) {const percent = complete ? 100 : Math.floor(shownFraction * 100);@@ -584,11 +579,11 @@ export function createGenerationProgress(t, now = () => Date.now(), {compact = fconst hasReport = diagnostic.hasReport();// The separate notice never adds another clock or blocks the run.if (shown && (stall.hidden || hasReport !== stallHasReport)) {- const first = t('No progress for a while. Generation is still running, so you can keep waiting.',- '已经有一段时间没有新的进度,生成仍在进行,可以继续等待。');+ const first = t('Progress has not updated recently; generation is still running.',+ '进度暂未更新,仍在生成中。');const sentence = hasReport ? first + t(- ' You can also use Download report below and submit the report in a GitHub issue; we will look into it and work on a fix for you.',- '也可以点击下方的“下载报告”并提交到 GitHub issue,我们会专门排查和优化,为您解决这个问题。') : first;+ ' You can also use Download report below and submit it in a GitHub issue; we will look into it.',+ '也可以点下方“下载报告”提交到 GitHub issue,我们会专门排查。') : first;if (hasReport) {const buttonName = el('span', ''); buttonName.style.whiteSpace = 'nowrap';buttonName.textContent = t('Download report', '“下载报告”');@@ -653,7 +648,7 @@ export function createGenerationProgress(t, now = () => Date.now(), {compact = f// The current stage has lasted 2 s: the stage line names it from now on.function settle(at) {if (stageId !== null && stageId !== labelId && at - stageSince >= 2000) {- labelId = stageId; labelText = lastActivity ? withWorkPercent(lastActivity.text) : labelText; away = null;+ labelId = stageId; labelText = lastActivity ? lastActivity.text : labelText; away = null;}}function enterStage(id, at) {@@ -698,32 +693,20 @@ export function createGenerationProgress(t, now = () => Date.now(), {compact = fif (!lastActivity) { labelId = null; return t(...ACTIVITY.prepare); }settle(now());if (labelId === null) { labelId = stageId; away = null; }- if (labelId === stageId) labelText = withWorkPercent(lastActivity.text);+ if (labelId === stageId) labelText = lastActivity.text;return labelText;}- function withWorkPercent(base) {- const percent = localShare === null ? null : Math.min(localShare === 1 ? 100 : 99, Math.floor(localShare * 100 + 1e-9));- // Keep the percentage with its own sentence while a new stage waits to be named.- return percent !== null && (detail?.key === 'load' || detail?.key === 'decode')- ? base + t(` (${percent}% of this step)`, `(本步 ${percent}%)`) : base;- }function drawActivity(age, ended) {const paused = !ended && age > 15;const base = ended ? (overall.status === 'complete' || state.phase === 'complete' ? savedText() : t('Stopped', '已停止')): paused ? detail?.text || stageText() : stageText();- const shown = !ended && paused && detail ? withWorkPercent(base) : base;- if (label.textContent !== shown) label.textContent = shown;+ if (label.textContent !== base) label.textContent = base;drawMini(age, ended);const automatic = compatibility?.origin === 'automatic' && compatibility.level > 0;- const required = Number.isInteger(compatibility?.recovery_successes_required) && compatibility.recovery_successes_required > 0- ? compatibility.recovery_successes_required : 3;- const successes = Number.isInteger(compatibility?.consecutive_successes) ? compatibility.consecutive_successes : 0;- const remaining = Math.max(0, required - Math.max(0, successes));const compatibilityText = !ended && automatic ? compatibility.recovery_disabled? t('Generation is slowed automatically for stability; you can change this in Settings.', '为了稳定,生成已自动放慢;可在设置里调整。')- : t(remaining === 1 ? 'Generation is slowed automatically for stability; it speeds up after one more successful generation.'- : `Generation is slowed automatically for stability; it speeds up after ${remaining} more successful generations.`,- `为了稳定,生成已自动放慢;再连续完成 ${remaining} 次后会加快一些。`) : '';+ : t('Generation has slowed automatically and will gradually speed up as it stabilizes.',+ '生成已自动放慢,稳定后会逐步加快。') : '';// All explanations share one row, including automatic compatibility.compatibilityNote.hidden = true;let pauseText = '';@@ -751,18 +734,18 @@ export function createGenerationProgress(t, now = () => Date.now(), {compact = f: splitFailed && !progressText ? 'split' : '';const explanation = {retry: recovery,pause: progressText,- memory: t('This video uses a memory-saving mode, so it takes longer than usual but will finish.',- '这次生成使用省显存方式,会比平时慢,但能完成。'),+ memory: t('This video will take longer than usual, but it will finish.',+ '这次生成会比平时慢,但能完成。'),// Mac, level 3 with low-memory mode (never both). The measured numbers go to the// report only. Closing applications during the first pass can still give the// second pass room, so that advice shows only until then.'unified-memory': memoryTight?.phase === 'refinement' && !firstPassOver- ? t('Less unified memory is available. Close memory-heavy applications before the first pass ends so the second pass is not slowed down.',- '可用的统一内存较少。在第一遍结束前关闭占用内存较多的程序,第二遍就不会变慢。')- : t('Less unified memory is available, so this generation will be slower than usual.',- '可用的统一内存较少,这次生成会比平时慢。'),- compatibility: compatibility ? t(`Compatibility setting ${compatibility.name_en} is on, so generation is slower than usual.`,- `已开启兼容性设置(${compatibility.name_zh}档),生成会比平时慢。`) : '',+ ? t('Memory is low; closing memory-heavy applications will speed this up.',+ '可用内存较少,关闭占用内存较多的程序可以更快。')+ : t('Less memory is available, so this generation will take longer.',+ '可用内存较少,这次生成会较慢。'),+ compatibility: compatibility ? t('Compatibility settings are enabled, so generation will take longer.',+ '已开启兼容性设置,生成会较慢。') : '',automatic: compatibilityText,notice: trimStatus([...trims.values()], t),// A long video whose part descriptions could not be written: the server's own words stay in the report.diff --git a/web/studio.js b/web/studio.jsindex 732da5e..812bdca 100644--- a/web/studio.js+++ b/web/studio.js@@ -492,12 +492,12 @@ export function openStudio(node, {extendFrom = null} = {}) {syncReferencePrompt(node, t);// An untouched node shows its starter prompt as a placeholder and generates it.// Once something was typed, an emptied box stays empty and asks for a scene.- const starter = node.freevideoStarterPrompt || '';+ const starter = node.freevideoStarterPrompt || '', starterShown = node.freevideoStarterShown || starter;const untouched = () => Boolean(starter) && value(node, 'text') === starter;const shown = text => starter && text === starter ? '' : String(text || '');const prompt = el('textarea'); prompt.value = shown(value(node, 'text')); prompt.setAttribute('aria-label', t('Prompt', '提示词'));prompt.dataset.fvGuide = 'describe';- const placeholder = () => { prompt.placeholder = extension.source ? extendText(t, 'prompt') : untouched() ? starter : t('Describe the scene… Type @ to reference media', '描述画面… 输入 @ 引用素材'); };+ const placeholder = () => { prompt.placeholder = extension.source ? extendText(t, 'prompt') : untouched() ? starterShown : t('Describe the scene… Type @ to reference media', '描述画面… 输入 @ 引用素材'); };placeholder();prompt.disabled = linked(node, 'text'); prompt.oninput = () => { set(node, 'text', prompt.value); placeholder(); };const promptEditor = el('div', null, 'fv-prompt-editor'); promptEditor.append(prompt);