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.

Clarify refinement step limits and unavailable time estimates

Bowen Xue5c77402b337c
diff --git a/README.md b/README.md
index 7c841d1..926a950 100644
--- a/README.md
+++ b/README.md
@@ -39,7 +39,7 @@ It coordinates VRAM, system memory and disk, adapting weight placement, compute
- **Low-memory inference**: Weight streaming, asynchronous prefetching and chunked computation keep peak memory low, enabling inference with as little as 8 GB of VRAM and 16 GB of RAM.
- **Multimodal inputs**: Text prompts, first and last frames, and image, video and audio references.
- **Community LoRAs**: Use MiniMax H3 LoRAs in your workflow. See [examples](docs/LoRA.md).
-- **ComfyUI integration**: A dedicated creative workspace inside ComfyUI that supports two-pass sampling and batch generation and keeps a history of past creations. For finer control, switch to the node view to add LoRAs or customize the workflow.
+- **ComfyUI integration**: A dedicated creative workspace inside ComfyUI that supports two-step generation and batch generation and keeps a history of past creations. For finer control, switch to the node view to add LoRAs or customize the workflow.
- **One-click deployment**: The Windows, Mac and Linux launchers set up ComfyUI, the runtime environment and the models, reuse existing models, and support offline installation.
## Getting Started
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 43d10c0..37b1658 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -20,7 +20,7 @@ https://github.com/user-attachments/assets/ecda7d0d-7fbe-4e0c-8c29-8f3315bafc15
## 更新动态
- **2026-10-13** · **[v0.4.0](https://github.com/FlashML-org/FreeVideo/releases/tag/v0.4.0):Agent 全自动生成、分钟级长视频和剪辑视图。** 连接 Claude Code、Codex 等 AI Agent,让它全自动生成视频;一条视频可以生成到一分钟以上;在时间线上剪辑。
-- **2026-10-07** · **[v0.3.2](https://github.com/FlashML-org/FreeVideo/releases/tag/v0.3.2):先出预览。** 先看半分辨率预览,满意的再继续二采。
+- **2026-10-07** · **[v0.3.2](https://github.com/FlashML-org/FreeVideo/releases/tag/v0.3.2):先出预览。** 先看半分辨率预览,满意的再继续生成。
- **2026-10-07** · **[v0.3.0](https://github.com/FlashML-org/FreeVideo/releases/tag/v0.3.0):更快的 int8 模型。** GeForce 和 RTX 30 系显卡改用 int8,RTX 3090 生成 5 秒视频快约 2.3 倍。
- **2026-10-06** · **[作品展示](https://freevideo-community.pages.dev/#gallery)上线。** 观看 FreeVideo 生成的 20 秒视频,以及四档质量的并排对比。
- **2026-10-06** · **[v0.2.3](https://github.com/FlashML-org/FreeVideo/releases/tag/v0.2.3):视频自带工作流。** 把 FreeVideo 生成的视频拖到 ComfyUI 画布上,即可还原提示词、种子和全部参数,之前的视频也能补上。
@@ -39,7 +39,7 @@ FreeVideo 是面向消费级显卡的 MiniMax H3 本地推理引擎,基于 [Op
- **低显存推理**:通过权重流式加载、异步预取与分块计算降低峰值显存,最低只需 8GB 显存和 16GB 内存。
- **多模态输入**:支持文本、首帧、尾帧,以及图像、视频、音频参考输入。
- **社区 LoRA**:支持在工作流中使用 MiniMax H3 社区 LoRA。[查看效果对比](docs/LoRA.zh-CN.md)。
-- **ComfyUI 集成**:在 ComfyUI 中提供专门的创作面板,支持二次采样和批量生成,并可浏览历史作品;需要更精细的控制时,可切换到节点视图,接入 LoRA 或自定义工作流。
+- **ComfyUI 集成**:在 ComfyUI 中提供专门的创作面板,支持两步生成和批量生成,并可浏览历史作品;需要更精细的控制时,可切换到节点视图,接入 LoRA 或自定义工作流。
- **一键部署**:Windows、Mac 和 Linux 启动器自动完成 ComfyUI、运行环境与模型的部署,可复用已有模型,并支持离线安装。
## 开始使用
diff --git a/docs/Mac.md b/docs/Mac.md
index b63cc83..71c3980 100644
--- a/docs/Mac.md
+++ b/docs/Mac.md
@@ -26,7 +26,7 @@ This approves FreeVideo only. It doesn't turn off Gatekeeper or change your othe
- Before each stage, attention head groups, chunk sizes and the number of resident transformer layers are set from the unified memory available at that moment.
- Macs download ConvRot int8 weights. On Apple M5 and newer, the large projections run as int8 on the GPU's Metal 4 tensor units; earlier Macs decode them to BF16 on the GPU as each layer loads.
- Layers that are not kept in memory stream from disk with read-ahead.
-- Text prompts, first-frame input and two-pass sampling are supported.
+- Text prompts, first-frame input and two-step generation are supported.
## Generation time
diff --git a/docs/Mac.zh-CN.md b/docs/Mac.zh-CN.md
index eb406e0..49531d0 100644
--- a/docs/Mac.zh-CN.md
+++ b/docs/Mac.zh-CN.md
@@ -26,7 +26,7 @@ Mac 预览版暂未进行 Apple 公证,因此首次打开时 macOS 会拦截
- 每个阶段开始前,根据当前可用的统一内存确定注意力头分组、分块大小和常驻的 Transformer 层数。
- Mac 下载 ConvRot int8 权重。M5 及更新的芯片在 GPU 的 Metal 4 张量单元上以 int8 计算大矩阵;更早的芯片在每层加载时于 GPU 上解码为 BF16 计算。
- 未常驻内存的层从磁盘流式加载并提前预取。
-- 支持文本、首帧输入和二次采样。
+- 支持文本、首帧输入和两步生成。
## 生成时间
diff --git a/web/freevideo.js b/web/freevideo.js
index e11c54b..5957ada 100644
--- a/web/freevideo.js
+++ b/web/freevideo.js
@@ -508,7 +508,7 @@ function resultPanel(node) {
stats.hidden = !!value.result_cache_hit;
const number = (value, scale, unit) => Number.isFinite(value) && value >= 0 ? `${(value / scale).toFixed(1)} ${unit}` : "—";
const unified = value.memory_model === 'unified';
- for (const [label, shown] of [[text("Sampling", "采样"), number(value.sample_seconds, 1, "s")], [text("Request total", "请求总计"), number(value.request_seconds, 1, "s")], [unified ? text("Unified memory", "统一内存总量") : text("VRAM peak", "显存峰值"), number(unified ? value.unified_total_bytes : value.vram_peak_bytes, 2 ** 30, "GiB")], [unified ? text("Process RAM peak", "进程内存峰值") : text("RAM peak", "内存峰值"), number(value.ram_peak_bytes, 2 ** 30, "GiB")]]) {
+ for (const [label, shown] of [[text("Generation", "生成用时"), number(value.sample_seconds, 1, "s")], [text("Total time", "总用时"), number(value.request_seconds, 1, "s")], [unified ? text("Unified memory", "统一内存总量") : text("Peak VRAM", "最高显存"), number(unified ? value.unified_total_bytes : value.vram_peak_bytes, 2 ** 30, "GiB")], [unified ? text("Process peak RAM", "进程最高内存") : text("Peak RAM", "最高内存"), number(value.ram_peak_bytes, 2 ** 30, "GiB")]]) {
const stat = el("div", undefined, "fv-stat"); stat.append(el("strong", shown), el("span", label)); stats.append(stat);
}
const links = el("div", undefined, "fv-links");
diff --git a/web/library.js b/web/library.js
index 90f4298..2570e15 100644
--- a/web/library.js
+++ b/web/library.js
@@ -175,10 +175,10 @@ export function openLibrary(t, {upscale = null, selectedWork = null, extend = nu
const number = (value, scale, unit) => measured(value) ? `${(value / scale).toFixed(1)} ${unit}` : '—';
stats.replaceChildren();
for (const [label, value, scale, unit] of [
- [t('Sampling', '采样耗时'), row.sample_seconds, 1, 's'],
- [t('Request total', '请求总计'), row.request_seconds, 1, 's'],
- [t('VRAM peak', '显存峰值'), row.vram_peak_bytes, 2 ** 30, 'GiB'],
- [t('RAM peak', '内存峰值'), row.ram_peak_bytes, 2 ** 30, 'GiB'],
+ [t('Generation', '生成用时'), row.sample_seconds, 1, 's'],
+ [t('Total time', '总用时'), row.request_seconds, 1, 's'],
+ [t('Peak VRAM', '最高显存'), row.vram_peak_bytes, 2 ** 30, 'GiB'],
+ [t('Peak RAM', '最高内存'), row.ram_peak_bytes, 2 ** 30, 'GiB'],
]) {
const item = el('div', null, 'fv-stat');
item.append(el('strong', number(value, scale, unit)), el('span', label)); stats.append(item);
@@ -195,7 +195,7 @@ export function openLibrary(t, {upscale = null, selectedWork = null, extend = nu
await upscale(row);
if (!disposed && selected === row.video) notice.textContent = t('Queued. It appears in "Creations" when done.', '已加入队列,完成后在“作品”里。');
} catch (error) {
- if (!disposed && selected === row.video) notice.textContent = t('Could not start the second pass: ', '无法开始二采:') + error.message;
+ if (!disposed && selected === row.video) notice.textContent = t('Could not continue: ', '无法继续生成:') + error.message;
throw error;
}
}
@@ -217,7 +217,7 @@ export function openLibrary(t, {upscale = null, selectedWork = null, extend = nu
: error.message === 'editor-in-use' ? t('Not deleted: these edits use it: ', '未删除:这些剪辑正在使用它:') + (value.kept || []).join(', ')
: error.message === 'editor-unavailable' ? t('Not deleted: saved edits could not be checked. Try again in a moment.', '未删除:暂时无法检查已保存的剪辑,请稍后再试。')
: error.message === 'continuation-in-use' ? t('Not deleted: a video continuing from it is running or queued. Try again after it finishes.', '未删除:接在这条视频后面的生成正在运行或排队,请等它完成后再试。')
- : error.message === 'in-use' ? t('Not deleted: its second pass is running, or the video is still open. Try again in a moment.', '未删除:正在用它跑二采,或视频仍被占用,请稍后再试。')
+ : error.message === 'in-use' ? t('Not deleted: it is still being generated or the video is open. Try again in a moment.', '未删除:它还在继续生成,或视频仍被占用,请稍后再试。')
: t('Could not delete this creation.', '无法删除这条作品。'));
}
// Other views of the library (the studio's Recent videos) drop it too.
@@ -250,7 +250,7 @@ export function openLibrary(t, {upscale = null, selectedWork = null, extend = nu
image.dataset.src = videoThumbnailURL(row);
image.onerror = () => { image.hidden = true; };
picture.append(image);
- if (row.preview) picture.append(el('span', t('First-pass preview', '一采预览'), 'fv-preview-badge'));
+ if (row.preview) picture.append(el('span', t('Preview', '预览'), 'fv-preview-badge'));
// Made by an AI agent: say so, with the name the agent gave the shot.
if (row.agent) {
const badge = el('span', 'Agent', 'fv-agent-badge');
diff --git a/web/result_actions.js b/web/result_actions.js
index e056248..68d5690 100644
--- a/web/result_actions.js
+++ b/web/result_actions.js
@@ -29,8 +29,8 @@ export function icon(name) {
export function previewBadge(record, t) {
const badge = document.createElement('span'); badge.className = 'fv-preview-badge';
const g = record.preview_geometry;
- badge.textContent = g?.width ? t(`First-pass preview · ${g.width} × ${g.height}`, `一采预览 · ${g.width} × ${g.height}`)
- : t('First-pass preview', '一采预览');
+ badge.textContent = g?.width ? t(`Preview · ${g.width} × ${g.height}`, `预览 · ${g.width} × ${g.height}`)
+ : t('Preview', '预览');
return badge;
}
@@ -59,10 +59,10 @@ function popover(menu, summary, onClose = () => {}) {
// The next step of a first-pass preview. `run` reports its own errors and throws.
export function secondPassAction(t, run) {
- const button = action('button', t('Run second pass', '继续二采'), 'expand', 'fv-action-primary fv-action-second-pass');
+ const button = action('button', t('Continue', '继续生成'), 'expand', 'fv-action-primary fv-action-second-pass');
const label = button.lastElementChild;
- button.title = t('Continue from this preview: latent upscale, the second pass and a full-resolution decode.',
- '从这个预览接着跑:潜空间放大、二采,再以全分辨率解码。');
+ button.title = t('Continue from this preview to the full-resolution video.',
+ '从这个预览继续生成全分辨率视频。');
button.onclick = async () => {
if (button.disabled) return;
button.disabled = true; button.setAttribute('aria-busy', 'true');
@@ -70,7 +70,7 @@ export function secondPassAction(t, run) {
try { await run(); label.textContent = button.title = t('Queued', '已加入队列'); }
catch {
button.disabled = false;
- label.textContent = button.title = t('Second pass did not start · Retry', '二采没有开始 · 重试');
+ label.textContent = button.title = t('Could not continue · Retry', '未能继续生成 · 重试');
} finally { button.removeAttribute('aria-busy'); }
};
return button;
@@ -86,7 +86,7 @@ function deleteAction(t, remove) {
const title = document.createElement('strong'); title.textContent = t('Delete this creation?', '删除这条作品?');
const hint = document.createElement('small');
hint.textContent = t('The video, its generation records and preview data are removed. This cannot be undone.',
- '视频、生成记录和一采中间结果都会删除,无法恢复。');
+ '视频、生成记录和预览数据都会删除,无法恢复。');
const problem = document.createElement('small'); problem.className = 'fv-confirm-problem'; problem.hidden = true;
const row = document.createElement('div'); row.className = 'fv-confirm-actions';
const cancel = action('button', t('Cancel', '取消'), null, 'fv-action-secondary');
diff --git a/web/sampling_effort.js b/web/sampling_effort.js
index d736028..40ffcd9 100644
--- a/web/sampling_effort.js
+++ b/web/sampling_effort.js
@@ -111,5 +111,5 @@ export function createSamplingEffort(t, {onChange, onPreview = () => {}}) {
: t('Same model. Higher effort uses more sampling steps; results vary by scene.', '使用同一模型,提高档位会增加采样步数;效果因场景而异。');
for (const name of nameButtons) { name.disabled = disabled; name.title = ''; }
}
- return {element, update, setEstimate(text, title = '') { estimate.textContent = text; estimate.title = title; }, dispose: cancel};
+ return {element, update, setEstimate(text, title = '') { estimate.textContent = text; if (title) estimate.title = title; else estimate.removeAttribute('title'); }, dispose: cancel};
}
diff --git a/web/studio.js b/web/studio.js
index b7d91ad..732da5e 100644
--- a/web/studio.js
+++ b/web/studio.js
@@ -83,8 +83,8 @@ function createChainPartList(t, save, {onShow = () => {}, onHide = () => {}} = {
row.saving = null;
if (rows.get(row.part.id) !== row) return;
row.part = {...row.part, text: before}; draw(row);
- flash(row, error.status === 409 ? t('This part has started. Your edit was not saved.', '这一段已开始,修改未保存')
- : t('Your edit was not saved.', '修改未保存'), 'error');
+ flash(row, error.status === 409 ? t('This part is already generating. Your edit was not saved.', '这一段已在生成,改动没有保存')
+ : t('Your edit was not saved.', '改动没有保存'), 'error');
}
}
function open(row) {
@@ -128,7 +128,7 @@ function createChainPartList(t, save, {onShow = () => {}, onHide = () => {}} = {
// The part began while it was open: the words typed so far cannot reach it.
const changed = row.editor.value !== row.part.text;
editing = null; row.part = part; draw(row);
- if (changed) flash(row, t('This part has started. Your edit was not saved.', '这一段已开始,修改未保存'), 'error');
+ if (changed) flash(row, t('This part is already generating. Your edit was not saved.', '这一段已在生成,改动没有保存'), 'error');
return;
}
if (editing === row) { row.part = {...part, text: row.part.text}; return; }
@@ -356,7 +356,7 @@ export function loraPanel(node, panel, {promptNode = null} = {}) {
}
const add = button(t('Add', '添加'), async () => {
await refresh(); // The folder may have changed since the list was last read.
- try { const rows = read(); if (rows.length >= 32) throw new Error(t('Use at most 32 LoRAs', '最多使用 32 个 LoRA')); if (!names.length) throw new Error(t('Put LoRA files (.safetensors) in the models/loras folder, then choose "Add".', '请把 LoRA 文件(.safetensors)放进 models/loras 文件夹,再点“添加”。')); const next = recentLoras().find(n => names.includes(n) && !rows.some(row => row.name === n)) ?? names[0]; rememberLora(next); rows.push({name: next, strength: 1, enabled: true}); write(rows); } catch (error) { note.textContent = error.message; }
+ try { const rows = read(); if (rows.length >= 32) throw new Error(t('Use at most 32 LoRAs', '最多使用 32 个 LoRA')); if (!names.length) throw new Error(t('Put LoRA files (.safetensors) in the models/loras folder, then choose "Add".', '把 LoRA 文件(.safetensors)放进 models/loras 文件夹,再点“添加”。')); const next = recentLoras().find(n => names.includes(n) && !rows.some(row => row.name === n)) ?? names[0]; rememberLora(next); rows.push({name: next, strength: 1, enabled: true}); write(rows); } catch (error) { note.textContent = error.message; }
});
async function refresh() {
try { const response = await api.fetchApi('/models/loras', {cache: 'no-store'}); if (!response.ok) throw new Error(response.statusText); const listed = await response.json(); names = (Array.isArray(listed) ? listed : []).filter(n => typeof n === 'string' && n.toLowerCase().endsWith('.safetensors')); render(); }
@@ -445,7 +445,7 @@ export async function openExtendEditor(record, node = current?.node || app.graph
node = app.graph?._nodes?.find(row => row.type === 'FreeVideoGenerate');
if (!node) {
node = globalThis.LiteGraph?.createNode('FreeVideoGenerate');
- if (!node || !app.graph) throw new Error(t('Could not add the creation node. Try again.', '无法添加创作节点,请重试。'));
+ if (!node || !app.graph) throw new Error(t('Could not open the creative panel. Try again.', '没能打开创作面板,请重试。'));
app.graph.add(node); app.graph.change?.();
}
}
@@ -588,7 +588,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
const promptHelp = el('a', 'Skill ↗', 'fv-prompt-help');
promptHelp.href = 'https://github.com/MiniMax-AI/MiniMax-H3/blob/main/skills/h3-prompt-writing/SKILL.md';
promptHelp.target = '_blank'; promptHelp.rel = 'noopener noreferrer';
- promptHelp.title = t('MiniMax H3 prompt guide', 'MiniMax H3 提示词指南');
+ promptHelp.title = t('Prompt guide', '提示词指南');
promptSection.querySelector('.fv-label').append(promptHelp);
promptSection.append(enhancer.element);
const canvas = section(t('Frame & duration', '画幅与时长'));
@@ -607,16 +607,16 @@ export function openStudio(node, {extendFrom = null} = {}) {
let pixels = selected !== 'custom' && Number.isFinite(node.properties?.freevideo_pixels)
? node.properties.freevideo_pixels : (initialWidth * initialHeight) / 1024 ** 2;
let disposed = false;
- const mp = el('select'); mp.setAttribute('aria-label', t('Total pixels', '总像素'));
+ const mp = el('select'); mp.setAttribute('aria-label', t('Resolution', '清晰度'));
const presetRatio = {'16:9': 16 / 9, '9:16': 9 / 16, '1:1': 1}[selected] || ratio;
const sizeSelection = imageSizeSelection(pixels, selected === 'custom' ? null : presetRatio, Number(initialWidth), Number(initialHeight));
if (pixels === 1 && sizeSelection.value === .98) pixels = .98;
- for (const n of sizeSelection.options) { const option = el('option', n === .98 ? t('0.98 MP · Native', '0.98 MP · 原生') : `${n.toFixed(2)} MP`); option.value = n; mp.append(option); }
+ for (const n of sizeSelection.options) { const option = el('option', n === .98 ? t('0.98 MP · Recommended', '0.98 MP · 推荐') : `${n.toFixed(2)} MP`); option.value = n; mp.append(option); }
mp.value = sizeSelection.value;
const legacyOption = [...mp.options].find(o => Number(o.value) === 1);
- mp.title = t('1 MP = 1024 × 1024, as in ComfyUI.', '1 MP = 1024 × 1024,与 ComfyUI 一致。'); mp.disabled = dimensionsLinked;
+ mp.disabled = dimensionsLinked;
const seconds = el('input'); seconds.type = 'number'; seconds.required = true; seconds.min = '1.625'; seconds.step = 'any'; seconds.value = savedSeconds(node, value(node, 'seconds')); seconds.disabled = linked(node, 'seconds'); seconds.setAttribute('aria-label', t('Duration in seconds', '时长(秒)'));
- const fields = el('div', null, 'fv-fields'); fields.append(field(t('Total pixels', '总像素'), mp), field(t('Duration · seconds', '时长 · 秒'), seconds)); canvas.append(fields);
+ const fields = el('div', null, 'fv-fields'); fields.append(field(t('Resolution', '清晰度'), mp), field(t('Duration · seconds', '时长 · 秒'), seconds)); canvas.append(fields);
const canvasNote = el('div', null, 'fv-canvas-note'), dimensions = el('span'), duration = el('span'); canvasNote.append(dimensions, duration); canvas.append(canvasNote);
const rangeMount = el('div'); canvas.append(rangeMount);
let capabilityView;
@@ -626,18 +626,18 @@ export function openStudio(node, {extendFrom = null} = {}) {
// Two-pass switched off only because first-pass steps left 8; returning to 8 restores it.
let autoSinglePass = false;
const twoPassLabel = el('div', null, 'fv-two-pass fv-pass-row');
- twoPassLabel.title = t('Generate at a lower resolution, then upscale and finish sampling at the target size to save time.', '先以低分辨率生成,再放大到目标分辨率完成采样,缩短生成时间。');
+ twoPassLabel.title = t('Generates at a lower resolution, then upscales. Faster.', '先用低分辨率生成,再放大成片,更快。');
const twoPassStatus = el('small', '', 'fv-two-pass-status');
// Off, on, or on and paused after the first pass: a preview is one way to run two-pass.
const passMode = el('div', null, 'fv-pass-mode'); passMode.setAttribute('role', 'radiogroup');
- passMode.setAttribute('aria-label', t('Two-pass sampling', '二次采样'));
+ passMode.setAttribute('aria-label', t('Two-step', '两步生成'));
const passOptions = [['off', t('Off', '关闭')], ['on', t('On', '开启')], ['preview', t('Preview first', '先出预览')]].map(([mode, label]) => {
const option = el('button', label); option.type = 'button'; option.dataset.mode = mode; option.setAttribute('role', 'radio');
option.onclick = () => choosePassMode(mode);
return option;
});
- passOptions[2].title = t('Two-pass, paused after the half-resolution first pass so you can look at it. Run the second pass from the result when it looks right: the video matches generating it directly.',
- '二次采样跑完半分辨率的一采先停下,给你看预览;满意后在结果里点「继续二采」,成片与直接生成一致。');
+ passOptions[2].title = t('Stops at a half-resolution preview. Choose "Continue" in the result when it looks right; the video matches a direct run.',
+ '先出半分辨率预览,满意后在结果里点“继续生成”,成片与直接生成一致。');
const previewPassHint = passOptions[2].title;
passMode.append(...passOptions);
passMode.addEventListener('keydown', event => {
@@ -649,7 +649,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
const next = enabled[(current + step + enabled.length) % enabled.length];
if (next) { next.click(); next.focus(); }
});
- twoPassLabel.append(el('span', t('Two-pass', '二次采样')), twoPassStatus, passMode);
+ twoPassLabel.append(el('span', t('Two-step', '两步生成')), twoPassStatus, passMode);
let effortEstimate = {}, effortEstimateKey = '', effortEstimateTimer = null, effortEstimateRequest = null, lengthControl = null, chainController = null;
const effort = createSamplingEffort(t, {onChange: tier => {
baseSteps.value = tier.steps;
@@ -740,12 +740,12 @@ export function openStudio(node, {extendFrom = null} = {}) {
}
const samplingFields = el('div', null, 'fv-fields'); samplingFields.style.marginTop = '14px';
const baseSteps = el('input'), refineSteps = el('input');
- const samplingWarning = el('p', t('Changing sampling steps may reduce generation quality. Defaults: 8 + 3 steps.', '修改采样步数可能降低生成质量。默认一采 8 步、二采 3 步。'), 'fv-muted');
+ const samplingWarning = el('p', t('Changing steps may lower quality. Default: 8 + 3 steps.', '改步数可能降低质量。默认 8 + 3 步。'), 'fv-muted');
samplingWarning.id = `fv-sampling-warning-${node.id}`;
samplingWarning.style.color = 'var(--fv-warning)';
for (const [input, name, label, fallback, maximum] of [
- [baseSteps, 'base_steps', t('First-pass steps', '一采步数'), 8, 32],
- [refineSteps, 'refine_steps', t('Second-pass steps', '二采步数'), 3, 31],
+ [baseSteps, 'base_steps', t('First-pass steps', '首轮步数'), 8, 32],
+ [refineSteps, 'refine_steps', t('Refine steps', '细化步数'), 3, 31],
]) {
input.type = 'number'; input.min = '1'; input.max = String(maximum); input.step = '1'; input.required = true;
input.value = value(node, name) ?? fallback;
@@ -789,9 +789,9 @@ export function openStudio(node, {extendFrom = null} = {}) {
baseSteps.min = twoPass.checked ? '2' : '1';
refineSteps.max = baseLinked ? '31' : String(Math.max(3, Math.min(31, Number(baseSteps.value || 8) - 1)));
refineSteps.setCustomValidity(twoPass.checked && !baseLinked && !refineSteps.disabled && Number(refineSteps.value) !== 3 && Number(refineSteps.value) >= Number(baseSteps.value)
- ? t('Other second-pass counts must be fewer than first-pass steps.', '其他二采步数需小于一采步数。') : '');
- refineSteps.title = twoPass.checked ? t('Three steps use the independent refinement schedule.', '3 步使用独立二采时间表。')
- : t('Turn on two-pass acceleration to use this setting.', '开启二次采样加速后生效。');
+ ? t('Use 3 refine steps, or fewer steps than in the first pass.', '细化步数须为 3,或少于首轮步数。') : '');
+ if (twoPass.checked) refineSteps.removeAttribute('title');
+ else refineSteps.title = t('Available when two-step is on.', '开启两步生成后可用。');
for (const [input, name] of [[baseSteps, 'base_steps'], [refineSteps, 'refine_steps']]) {
if (!input.disabled && input.checkValidity() && Number(input.value) !== value(node, name)) {
set(node, name, Number(input.value));
@@ -829,7 +829,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
const estimate = effortEstimate[mode]?.[steps];
// A previewed level always refines three steps; the current plan may not.
if (estimate?.status !== 'estimated' || (mode === 'two_pass' && !arguments.length && Number(refineSteps.value) !== 3)) {
- effort.setEstimate('', t('Estimates appear after a matching generation on this computer.', '本机有相近生成记录后显示预计耗时。'));
+ effort.setEstimate('', t('No estimate is available for these settings.', '当前设置暂无预计用时。'));
return;
}
const minutes = estimate.high_seconds >= 90, scale = minutes ? 60 : 1;
@@ -837,9 +837,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
const high = Math.max(low + 1, Math.ceil(estimate.high_seconds / scale));
const unit = minutes ? t('min', '分钟') : t('s', '秒');
const extra = estimate.includes_text_encoding ? '' : t(' + prompt', ' + 提示词准备');
- effort.setEstimate(`${t('~', '约 ')}${low}–${high} ${unit}${extra}`,
- t('Based on complete local runs. Includes loading and decoding; first use or other applications may take longer.',
- '根据本机完整生成记录估算,包含加载与解码;首次准备或其他程序占用可能延长时间。'));
+ effort.setEstimate(`${t('~', '约 ')}${low}–${high} ${unit}${extra}`);
}
function refreshEffortEstimate(force = false) {
capabilityView?.update();
@@ -983,7 +981,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
const stats = el('div', null, 'fv-stats'), budget = el('div', '', 'fv-budget'), links = el('div', null, 'fv-result-links');
stats.hidden = true;
const metrics = [], metricLabels = [];
- for (const label of [t('Sampling', '采样耗时'), t('Request total', '请求总计'), t('VRAM peak', '显存峰值'), t('RAM peak', '内存峰值')]) { const box = el('div', null, 'fv-stat'), n = el('strong', '—'), caption = el('span', label); box.append(n, caption); stats.append(box); metrics.push(n); metricLabels.push(caption); }
+ for (const label of [t('Generation', '生成用时'), t('Total time', '总用时'), t('Peak VRAM', '最高显存'), t('Peak RAM', '最高内存')]) { const box = el('div', null, 'fv-stat'), n = el('strong', '—'), caption = el('span', label); box.append(n, caption); stats.append(box); metrics.push(n); metricLabels.push(caption); }
const prewarm = el('div', node.freevideoPrewarm || '', 'fv-prewarm');
const reuseRow = el('div', null, 'fv-reuse-result'); reuseRow.hidden = true;
const reuseNotice = el('span', t('Reused previous result', '已复用上次结果'));
@@ -1008,7 +1006,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
try { await node.freevideoUpscaleResult(saved); await syncQueue(); }
catch (error) { resultActionFailed(error); throw error; }
};
- const memoryNote = el('div', t('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'); memoryNote.hidden = true;
+ const memoryNote = el('div', t('This run used the low-memory mode, so it was slower. A lower resolution or a shorter video is faster.', '这次用了省显存方式,所以较慢。降低分辨率或缩短时长会更快。'), 'fv-note'); memoryNote.hidden = true;
const thermalNote = el('div', '', 'fv-note'); thermalNote.hidden = true;
const sharedGpuNote = el('div', '', 'fv-note'); sharedGpuNote.hidden = true;
const encoderNote = el('div', '', 'fv-note'); encoderNote.hidden = true;
@@ -1053,8 +1051,8 @@ export function openStudio(node, {extendFrom = null} = {}) {
if (encoderPath) encoderNote.append(el('pre', encoderPath, 'fv-encoder-path'));
regenerate.disabled = false; regenerate.textContent = t('Regenerate', '重新生成');
const unified = r.memory_model === 'unified';
- metricLabels[2].textContent = unified ? t('Unified memory', '统一内存总量') : t('VRAM peak', '显存峰值');
- metricLabels[3].textContent = unified ? t('Process RAM peak', '进程内存峰值') : t('RAM peak', '内存峰值');
+ metricLabels[2].textContent = unified ? t('Unified memory', '统一内存总量') : t('Peak VRAM', '最高显存');
+ metricLabels[3].textContent = unified ? t('Process peak RAM', '进程最高内存') : t('Peak RAM', '最高内存');
const shown = [number(r.sample_seconds), number(r.request_seconds), number(unified ? r.unified_total_bytes : r.vram_peak_bytes, 2 ** 30, 'GiB'), number(r.ram_peak_bytes, 2 ** 30, 'GiB')]; metrics.forEach((e, i) => e.textContent = shown[i]);
budget.textContent = r.result_cache_hit || r.preview ? '' : unified
? (Number.isFinite(r.unified_reserve_bytes) ? `${t('Reserved unified memory', '预留统一内存')} ${number(r.unified_reserve_bytes, 2 ** 30, 'GiB')}` : '')
@@ -1156,7 +1154,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
const optionsPanel = el('div', null, 'fv-run-menu');
optionsPanel.append(el('strong', t('Generation mode', '生成方式')));
const modeButtons = [];
- for (const [id, label] of [['single', t('One video', '单次生成')], ['batch', t('Batch', '批量生成')], ['loop', t('Loop', '循环生成')]]) {
+ for (const [id, label] of [['single', t('Single', '单次')], ['batch', t('Batch', '批量')], ['loop', t('Loop', '循环')]]) {
const b = button(label, () => {
runMode = id; node.properties.freevideo_run_mode = id;
rememberPromptDraft(api, node); updateRunButton();
@@ -1198,13 +1196,13 @@ export function openStudio(node, {extendFrom = null} = {}) {
queueActions.append(queueDetails, cancelCurrent, stopLoop, resumeChain);
runbar.append(requestAssets.element, runrow, queueActions); controls.append(runbar);
const queueError = error => ({
- queue_unavailable: t('Could not read the queue. Any loop has been stopped; already submitted videos stay queued.', '暂时无法读取队列。循环已停止追加,已提交的任务仍在队列中。'),
- cancel_failed: t('Could not cancel. Try again.', '暂时未能取消,请重试。'),
- move_failed: t('Could not move it. Try again.', '暂时未能移动,请重试。'),
- submit_failed: t('The workflow was not queued. Check the node settings.', '工作流未能提交,请检查节点设置。'),
+ queue_unavailable: t('Could not read the queue. The loop has stopped; videos already added stay queued.', '暂时读不到队列,循环已停止;已加入的视频还在队列中。'),
+ cancel_failed: t('Could not cancel. Try again.', '没有取消成功,请重试。'),
+ move_failed: t('Could not move it. Try again.', '没有移动成功,请重试。'),
+ submit_failed: t('Could not add to the queue. Check the settings in node view.', '没能加入队列,请在节点视图检查设置。'),
loop_active: t('Stop the current loop before starting another.', '请先停止当前循环。'),
- loop_stopped: t('The last request did not complete. The loop has stopped.', '上一条任务未完成,循环已停止。'),
- linked_seed: t('Use the seed in this panel for batch or loop generation.', '批量和循环生成需使用面板内的种子,请先断开种子输入的连接。'),
+ loop_stopped: t('The last video did not finish. The loop has stopped.', '上一个视频没有生成完,循环已停止。'),
+ linked_seed: t('Batch and loop use the seed in this panel. Disconnect the seed link in node view.', '批量和循环要用面板里的种子,请在节点视图断开种子的连线。'),
missing_node: t('This node is disabled or no longer in the workflow.', '该节点已禁用或已从工作流移除。'),
chain_cancel_failed: t('Could not cancel. Refresh the page and try again.', '没有取消成功,请刷新页面后再试。'),
chain_resume_failed: t('Could not continue. Refresh the page and try again.', '没有继续生成,请刷新页面后再试。'),
@@ -1218,7 +1216,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
if (['loop_stopped', 'queue_unavailable'].includes(error?.message)
&& node.freevideoFailureReport && node.freevideoFailureReport.stage !== 'queue') return;
status.textContent = error?.schema === 'freevideo.error-report'
- ? t('Submission failed. See the details below.', '提交失败,具体原因见下方。')
+ ? t('Could not start. See the details below.', '没能开始生成,原因见下方。')
: extensionCause(error) ? t('A browser extension is interfering with FreeVideo. See details below.', '浏览器扩展干扰了 FreeVideo,详见下方。')
: queueError(error);
// Recoverable chain actions need one visible sentence, not a second error card.
@@ -1244,7 +1242,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
: t(`Generating part ${position.index + 1}…`, `正在生成第 ${position.index + 1} 段…`);
generate.disabled = submitting || chainController?.active || lengthControl.blocked || (runMode === 'loop' && queueState?.looping);
generate.textContent = submitting ? t('Adding…', '正在添加…')
- : chainReason || (runMode === 'batch' ? t(`Add ${count.value || '…'} videos`, `添加 ${count.value || '…'} 条任务`)
+ : chainReason || (runMode === 'batch' ? t(`Add ${count.value || '…'} videos`, `添加 ${count.value || '…'} 个视频`)
: runMode === 'loop' ? (queueState?.looping ? t('Looping', '循环中') : t('Start loop', '开始循环'))
: busy ? t('Add to queue', '添加到队列')
: previewFirst.checked && !previewFirst.disabled ? t('Generate preview', '生成预览') : t('Generate video', '生成视频'));
@@ -1253,9 +1251,9 @@ export function openStudio(node, {extendFrom = null} = {}) {
for (const b of modeButtons) if (b.dataset.mode !== 'single') b.disabled = multiple;
countField.hidden = runMode !== 'batch'; count.disabled = runMode !== 'batch';
modeHelp.hidden = runMode === 'single' && !multiple;
- modeHelp.textContent = multiple ? t('Batch and loop are unavailable for videos made in parts.', '分段视频暂不支持批量和循环生成。') : runMode === 'loop'
- ? t('Use these settings with a new seed each time. Closing this page stops adding videos.', '固定当前设置,每条使用不同种子。关闭网页后不再追加。')
- : t('Use these settings with a different seed for each video.', '固定当前设置,每条使用不同种子。');
+ modeHelp.textContent = multiple ? t('Videos made in parts cannot use batch or loop.', '分段视频不能批量或循环生成。') : runMode === 'loop'
+ ? t('Same settings, a new seed each time. Stops when this page closes.', '用当前设置,每次换一个种子;关闭网页后停止。')
+ : t('Same settings, a new seed for each video.', '用当前设置,每个视频换一个种子。');
cancelCurrent.hidden = !queueState?.running && !chainController?.active;
cancelCurrent.disabled = cancelling;
cancelCurrent.textContent = cancelling ? t('Cancelling…', '正在取消…') : t('Cancel current', '取消当前');
@@ -1280,7 +1278,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
// The right-hand frame belongs to the submitted video. Draft edits on
// the left must never reshape a video currently being generated.
if (Number.isFinite(g?.width) && Number.isFinite(g?.height)) previewSize(g.width, g.height);
- queueToggle.textContent = t(`Queue · ${state.pending.length}`, `等待 ${state.pending.length} 条`);
+ queueToggle.textContent = t(`Queued · ${state.pending.length}`, `排队 ${state.pending.length} 个`);
queueDetails.hidden = state.pending.length === 0;
queueActions.hidden = !busy && !state.looping && resumeChain.hidden;
const signature = JSON.stringify(state.pending.map(row => [row.id, row.inputs.width, row.inputs.height]));
@@ -1294,7 +1292,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
try { await queueController.cancel(row.id); }
catch (error) { showQueueError(error); remove.disabled = false; }
}, 'fv-quiet');
- remove.setAttribute('aria-label', t(`Remove queued video ${index + 1}`, `移除第 ${index + 1} 条排队任务`));
+ remove.setAttribute('aria-label', t(`Remove queued video ${index + 1}`, `移除排队的第 ${index + 1} 个`));
item.append(description);
if (index > 0) {
const first = button(t('Move to front', '排到最前'), async () => {
@@ -1302,7 +1300,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
try { await queueController.moveFirst(row.id); }
catch (error) { showQueueError(error); first.disabled = remove.disabled = false; }
}, 'fv-quiet');
- first.setAttribute('aria-label', t(`Move queued video ${index + 1} to front`, `把第 ${index + 1} 条排队任务排到最前`));
+ first.setAttribute('aria-label', t(`Move queued video ${index + 1} to front`, `把排队的第 ${index + 1} 个排到最前`));
item.append(first);
}
item.append(remove); queueList.append(item);
@@ -1339,8 +1337,8 @@ export function openStudio(node, {extendFrom = null} = {}) {
const message = new Map([[seconds, t('Fill in the duration.', '请填写时长。')],
[width, t('Fill in the width.', '请填写宽度。')], [height, t('Fill in the height.', '请填写高度。')],
[seed, t('Fill in the seed.', '请填写种子。')],
- [baseSteps, t('Fill in the first-pass steps.', '请填写一采步数。')],
- [refineSteps, t('Fill in the second-pass steps.', '请填写二采步数。')]]).get(invalid);
+ [baseSteps, t('Fill in the first-pass steps.', '请填写首轮步数。')],
+ [refineSteps, t('Fill in the refine steps.', '请填写细化步数。')]]).get(invalid);
if (message) { status.dataset.error = 'true'; status.textContent = message; }
}
invalid.focus(); invalid.reportValidity(); return;
@@ -1358,7 +1356,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
const lengthPlan = await lengthControl.ready();
if (disposed || lengthControl.blocked) return;
if (lengthControl.absent && !seconds.reportValidity()) return;
- if (lengthPlan?.count > 1 && chosenMode !== 'single') { status.textContent = t('Batch and loop are unavailable for videos made in parts.', '分段视频暂不支持批量和循环生成。'); return; }
+ if (lengthPlan?.count > 1 && chosenMode !== 'single') { status.textContent = t('Videos made in parts cannot use batch or loop.', '分段视频不能批量或循环生成。'); return; }
const lengthOptions = lengthControl.options();
const source = extension.source;
if (source && !await extendSourceExists(api, source)) throw new Error(extendText(t, 'unavailable'));
@@ -1368,7 +1366,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
for (const section of controls.querySelectorAll('.fv-section')) section.inert = true;
const snapshot = singleRunSnapshot(extendSnapshot(cleanOptionalPrompt(structuredClone(await app.graphToPrompt())), node.id, source,
{multiple: lengthPlan?.count > 1}), node.id, lengthPlan);
- if (!snapshot) { status.textContent = t('Could not plan this single run. Try again.', '暂时无法计算这次单次生成,请重试。'); return; }
+ if (!snapshot) { status.textContent = t('Could not prepare this run. Try again.', '没能准备这次生成,请重试。'); return; }
const seedIndex = node.widgets.findIndex(w => w.name === 'seed');
capturing = false;
for (const section of controls.querySelectorAll('.fv-section')) section.inert = false;
@@ -1430,7 +1428,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
function applySize() {
if (dimensionsLinked || extension.source) return;
const [w, h] = canvasDimensions(pixels, ratio);
- if (w < 256 || h < 256 || w > 4096 || h > 4096) throw new Error(t('This aspect ratio and pixel count exceed the supported dimensions. Use custom dimensions.', '该比例与像素数超出尺寸范围,请使用自定义宽高。'));
+ if (w < 256 || h < 256 || w > 4096 || h > 4096) throw new Error(t('This aspect ratio and resolution are out of range. Use a custom width and height.', '这个比例和清晰度超出范围,请改用自定义宽高。'));
set(node, 'width', w); set(node, 'height', h); node.properties.freevideo_aspect = selected; node.properties.freevideo_pixels = pixels; syncCanvasSize();
}
async function inputRatio(required = false) {
@@ -1577,7 +1575,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
// Do not change any saved width/height simply by opening a workflow.
syncQueue().then(async () => {
if (disposed) return;
- if (busy) { showProgress(node.freevideoProgress || {label: queued ? t('Waiting in queue', '正在排队') : t('Syncing generation progress', '正在同步生成进度')}); }
+ if (busy) { showProgress(node.freevideoProgress || {label: queued ? t('Waiting in queue', '正在排队') : t('Loading progress', '正在读取进度')}); }
else if (!result) {
const saved = (await recentLoad)[0];
if (!disposed && !busy && !result && saved) showResult(saved);