From 51a3c3236b84f5b9a19854092d2a764b923d6e2c Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 06:02:40 +0000
Subject: [PATCH 01/20] Setup clones the model source on drives where Git
cannot see who owns the new folder (it...
Setup clones the model source on drives where Git cannot see who owns the new folder (it answered 'not in a git directory' although the files were there), and records whether the repository's files were still present when it started again
---
.github/ISSUE_TEMPLATE/bug_launcher.yml | 6 ++++++
README.md | 8 ++++++--
README.zh-CN.md | 8 ++++++--
freevideo_engine/network.py | 7 ++++++-
scripts/publish_release.py | 8 ++++----
5 files changed, 28 insertions(+), 9 deletions(-)
diff --git a/.github/ISSUE_TEMPLATE/bug_launcher.yml b/.github/ISSUE_TEMPLATE/bug_launcher.yml
index ccb485c9..d699c990 100644
--- a/.github/ISSUE_TEMPLATE/bug_launcher.yml
+++ b/.github/ISSUE_TEMPLATE/bug_launcher.yml
@@ -1,6 +1,12 @@
name: Installation or launcher / 安装或启动器
description: Help with installation, updates or startup / 安装、更新或启动问题
body:
+ - type: markdown
+ attributes:
+ value: |
+ If the launcher shows "No NVIDIA graphics card was found" or "This graphics card is not supported", this computer cannot run FreeVideo, and a report cannot change this. FreeVideo requires an NVIDIA RTX 30 series or newer graphics card, or a Mac with Apple silicon.
+
+ 如果启动器显示“未找到 NVIDIA 显卡”或“这张显卡不受支持”,说明这台电脑无法运行 FreeVideo,提交问题也无法改变这一点。FreeVideo 需要 NVIDIA RTX 30 系列或更新的显卡,或 Apple 芯片的 Mac。
- type: input
id: version
attributes:
diff --git a/README.md b/README.md
index 48bab0be..9d01c147 100644
--- a/README.md
+++ b/README.md
@@ -9,9 +9,11 @@
| Windows | macOS | Linux | Community Results | Gallery | Discord | QQ Group | WeChat Group |
+Requirements: an NVIDIA RTX 30 series or newer graphics card (professional cards of the same generation included; 8 GB of graphics memory or more recommended) and 16 GB of memory, or a Mac with Apple silicon (preview). GTX 10, GTX 16 and RTX 20 series cards and AMD or Intel graphics cannot run FreeVideo.
+
English · 中文
-Make videos on the computer you already own. Powered by [Video DeltaNet (VDN)](https://openvdn.github.io/), FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM on NVIDIA graphics cards with compute capability 8.0 or higher (such as the RTX 30 series or newer, professional cards included), with acceleration adapted to your hardware. Apple silicon Macs run a preview.
+Make videos on the computer you already own. Powered by [Video DeltaNet (VDN)](https://openvdn.github.io/), FreeVideo runs MiniMax H3 on NVIDIA graphics cards with compute capability 8.0 or higher (such as the RTX 30 series or newer, professional cards of the same generation included), with 8 GB of VRAM or more recommended and 16 GB of RAM, and with acceleration adapted to your hardware. Apple silicon Macs run a preview.
https://github.com/user-attachments/assets/ecda7d0d-7fbe-4e0c-8c29-8f3315bafc15
@@ -37,7 +39,7 @@ FreeVideo is a local inference engine for MiniMax H3 on consumer GPUs, built on
It coordinates VRAM, system memory and disk, adapting weight placement, compute precision and attention kernels to the available hardware. FreeVideo runs as a ComfyUI plugin, with launchers for Windows, macOS and Linux. Its core features include:
- **Hardware-adaptive execution**: Chooses the weight format for each GPU, int8 on GeForce RTX 30, 40 and 50 series cards and other Ampere cards, and FP8 on workstation and datacenter cards of newer architectures, and automatically probes the available attention kernels.
-- **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.
+- **Low-memory inference**: Weight streaming, asynchronous prefetching and chunked computation keep peak memory low; 8 GB of VRAM or more and 16 GB of RAM are recommended.
- **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.
@@ -45,6 +47,8 @@ It coordinates VRAM, system memory and disk, adapting weight placement, compute
## Getting Started
+Requirements: an NVIDIA RTX 30 series or newer graphics card (professional cards of the same generation included; 8 GB of graphics memory or more recommended) and 16 GB of memory, or a Mac with Apple silicon (preview). GTX 10, GTX 16 and RTX 20 series cards and AMD or Intel graphics cannot run FreeVideo.
+
### Windows
1. [Download FreeVideo.exe](https://github.com/FlashML-org/FreeVideo/releases/latest/download/FreeVideo.exe) and run it.
diff --git a/README.zh-CN.md b/README.zh-CN.md
index c003ce39..c5bba336 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -9,9 +9,11 @@
| Windows | macOS | Linux | 社区实测 | 作品展示 | Discord | QQ 群 | 微信群 |
+系统要求:NVIDIA RTX 30 系列或更新的显卡(含同代专业卡,建议显存 8 GB 以上)和 16 GB 内存,或 Apple 芯片的 Mac(预览版)。GTX 10、GTX 16、RTX 20 系列以及 AMD、Intel 显卡无法运行 FreeVideo。
+
English · 中文
-FreeVideo 由 [Video DeltaNet(VDN)](https://openvdn.github.io/) 驱动,让 MiniMax H3 能够在计算能力 8.0 及以上的 NVIDIA 显卡(如 RTX 30 系列及更新,包括专业卡)上本地运行,最低只需 8GB 显存和 16GB 内存,并会根据硬件配置自动选择合适的加速路径。Apple 芯片 Mac 为预览版。
+FreeVideo 由 [Video DeltaNet(VDN)](https://openvdn.github.io/) 驱动,让 MiniMax H3 能够在计算能力 8.0 及以上的 NVIDIA 显卡(如 RTX 30 系列及更新,含同代专业卡)上本地运行,建议显存 8 GB 以上、内存 16 GB,并会根据硬件配置自动选择合适的加速路径。Apple 芯片 Mac 为预览版。
https://github.com/user-attachments/assets/ecda7d0d-7fbe-4e0c-8c29-8f3315bafc15
@@ -37,7 +39,7 @@ FreeVideo 是面向消费级显卡的 MiniMax H3 本地推理引擎,基于 [Op
它统一调度显存、内存与磁盘,并根据硬件条件调整权重放置、计算精度和注意力内核。FreeVideo 以 ComfyUI 插件形式提供,配备 Windows、macOS 和 Linux 启动器。主要特性包括:
- **硬件自适应**:针对不同显卡选择权重格式(GeForce RTX 30、40、50 系列和其他 Ampere 架构的显卡用 int8,更新架构的专业卡和数据中心卡用 FP8),并自动探测可用的注意力内核,无需手动配置。
-- **低显存推理**:通过权重流式加载、异步预取与分块计算降低峰值显存,最低只需 8GB 显存和 16GB 内存。
+- **低显存推理**:通过权重流式加载、异步预取与分块计算降低峰值显存,建议显存 8 GB 以上、内存 16 GB。
- **多模态输入**:支持文本、首帧、尾帧,以及图像、视频、音频参考输入。
- **社区 LoRA**:支持在工作流中使用 MiniMax H3 社区 LoRA。[查看效果对比](docs/LoRA.zh-CN.md)。
- **ComfyUI 集成**:在 ComfyUI 中提供专门的创作面板,支持二次采样和批量生成,并可浏览历史作品;需要更精细的控制时,可切换到节点视图,接入 LoRA 或自定义工作流。
@@ -45,6 +47,8 @@ FreeVideo 是面向消费级显卡的 MiniMax H3 本地推理引擎,基于 [Op
## 开始使用
+系统要求:NVIDIA RTX 30 系列或更新的显卡(含同代专业卡,建议显存 8 GB 以上)和 16 GB 内存,或 Apple 芯片的 Mac(预览版)。GTX 10、GTX 16、RTX 20 系列以及 AMD、Intel 显卡无法运行 FreeVideo。
+
### Windows
1. [下载 FreeVideo.exe](https://github.com/FlashML-org/FreeVideo/releases/latest/download/FreeVideo.exe) 并运行。
diff --git a/freevideo_engine/network.py b/freevideo_engine/network.py
index 97ccb731..dbaf2def 100644
--- a/freevideo_engine/network.py
+++ b/freevideo_engine/network.py
@@ -2325,6 +2325,11 @@ def clone(target, url, commit, *, sparse=None, partial=False, run=None, network=
network = installed_plan(env) if network is None else network
env = proxy_environment(env)
env.update(GIT_TERMINAL_PROMPT='0', GIT_HTTP_LOW_SPEED_LIMIT='1024', GIT_HTTP_LOW_SPEED_TIME='20')
+ # Git refuses a repository whose folder it cannot show to belong to the current user (a drive without owners, such as
+ # exFAT, a network or removable drive, or a folder made by another account) and then answers `git config` in it with
+ # "not in a git directory". The repositories handled here are FreeVideo's own; the setting reaches only these Git
+ # processes and is never written to a file.
+ env['GIT_CONFIG_PARAMETERS'] = ' '.join(filter(None, (env.get('GIT_CONFIG_PARAMETERS', '').strip(), git_parameter('safe.directory=*'))))
git = env.get('FREEVIDEO_GIT') or 'git'
replacing = False
if io_path(target).exists():
@@ -2401,7 +2406,7 @@ def execute(label, command):
# repository again a few times before giving up with a plain explanation.
for pause in REPOSITORY_RETRY_SECONDS:
event(network, category='git', source=name, route=route, file=target.name, action='repository-missing',
- commit=commit, wait_seconds=pause)
+ commit=commit, wait_seconds=pause, head_present=io_path(work / '.git' / 'HEAD').is_file())
try:
remove_tree(work)
except OSError:
diff --git a/scripts/publish_release.py b/scripts/publish_release.py
index 1e2d5a82..8fef2370 100644
--- a/scripts/publish_release.py
+++ b/scripts/publish_release.py
@@ -119,9 +119,9 @@ def whats_new(raw):
def downloads(base, builds=None):
rows = ['| | |', '|---|---|',
- '| **Windows** 10/11 · NVIDIA GPU | [FreeVideo.exe](%sFreeVideo.exe) |' % base,
+ '| **Windows** 10/11 · NVIDIA RTX 30 series or newer | [FreeVideo.exe](%sFreeVideo.exe) |' % base,
'| **macOS** 14+ · Apple silicon | [FreeVideo-Mac-arm64.dmg](%sFreeVideo-Mac-arm64.dmg) |' % base,
- '| **Linux** x86_64 · NVIDIA GPU | [FreeVideo-Linux-x86_64.AppImage](%sFreeVideo-Linux-x86_64.AppImage) |' % base]
+ '| **Linux** x86_64 · NVIDIA RTX 30 series or newer | [FreeVideo-Linux-x86_64.AppImage](%sFreeVideo-Linux-x86_64.AppImage) |' % base]
if builds and WINDOWS_ARM64_CHANNEL in builds:
name = RELEASE_ASSETS[WINDOWS_ARM64_CHANNEL][0]
rows.append('| **Windows** ARM64 · NVIDIA GPU (experimental) | [%s](%s%s) |' % (name, base, name))
@@ -149,13 +149,13 @@ def stable_body(builds, tag):
'**Linux:** make the AppImage executable (`chmod +x FreeVideo-Linux-x86_64.AppImage`) and open it, as on '
'Windows. On a server or from a terminal, see [Linux](%s/blob/main/docs/Linux.md).' % PAGE,
'',
- '**Windows:** 运行 FreeVideo.exe,选择已有的 ComfyUI 或安装新的 ComfyUI,点击 **安装并启动**。'
+ '**Windows:** 需要 NVIDIA RTX 30 系列或更新的显卡。运行 FreeVideo.exe,选择已有的 ComfyUI 或安装新的 ComfyUI,点击 **安装并启动**。'
'离线包见[夸克网盘](https://pan.quark.cn/s/c51235b84618)或[魔搭](%s)。' % OFFLINE_MODELSCOPE,
'',
'**macOS:** 打开 DMG,将 FreeVideo.app 拖入「应用程序」。首次打开如需确认,请参考'
'[首次打开步骤](%s/blob/main/docs/Mac.zh-CN.md#首次打开)。' % PAGE,
'',
- '**Linux:** 给 AppImage 加上可执行权限(`chmod +x FreeVideo-Linux-x86_64.AppImage`)后打开,用法与 Windows 相同。'
+ '**Linux:** 需要 NVIDIA RTX 30 系列或更新的显卡。给 AppImage 加上可执行权限(`chmod +x FreeVideo-Linux-x86_64.AppImage`)后打开,用法与 Windows 相同。'
'在服务器或终端中使用请参考 [Linux 说明](%s/blob/main/docs/Linux.zh-CN.md)。' % PAGE,
'']
rows += whats_new(builds[CHANNEL]['raw'])
From 0adcf9f08ce859039d509355afc1886d0a1b7877 Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 06:02:40 +0000
Subject: [PATCH 02/20] Prompt enhancement: the prompt model runs on CUDA's
native allocator where ComfyUI had chosen...
Prompt enhancement: the prompt model runs on CUDA's native allocator where ComfyUI had chosen the asynchronous one, so a card with little graphics memory no longer runs out of it while the model's later layers are read in
- Prompt enhancement: the prompt model runs on CUDA's native allocator where ComfyUI had chosen the asynchronous one, so a card with little graphics memory no longer runs out of it while the model's later layers are read in
- Tests: the prompt worker's inherited allocator setting is added to the fixture on a line of its own
---
freevideo_engine/comfy_environment.py | 18 ++++++++++++++++++
freevideo_engine/image_gen/service.py | 20 +-------------------
freevideo_engine/prompt_vlm/service.py | 6 ++++--
3 files changed, 23 insertions(+), 21 deletions(-)
diff --git a/freevideo_engine/comfy_environment.py b/freevideo_engine/comfy_environment.py
index b00068cc..76c73720 100644
--- a/freevideo_engine/comfy_environment.py
+++ b/freevideo_engine/comfy_environment.py
@@ -39,6 +39,24 @@ def configure_control(command, environment):
return [*command, '--cpu'], env
+def native_allocator(env):
+ """``env`` with CUDA's native caching allocator where ComfyUI had chosen the asynchronous one.
+
+ ComfyUI turns ``backend:cudaMallocAsync`` on in its own process and every child inherits it. The video worker
+ names its allocator itself; the picture and prompt workers take this one, so their card memory is counted by the
+ allocator their placement plans were measured with."""
+ selected = env.get('PYTORCH_ALLOC_CONF', env.get('PYTORCH_CUDA_ALLOC_CONF'))
+ if not selected or 'cudaMallocAsync' not in selected:
+ return env
+ options = ['backend:native' if option.strip() == 'backend:cudaMallocAsync' else option
+ for option in selected.split(',')]
+ if 'backend:native' not in options:
+ options.insert(0, 'backend:native')
+ value = ','.join(option for option in options if 'cudaMallocAsync' not in option)
+ env.update(PYTORCH_ALLOC_CONF=value, PYTORCH_CUDA_ALLOC_CONF=value)
+ return env
+
+
def isolated_environment(root, source, environ=None):
"""Remove inherited Python/package targets only in the engine's child."""
from .proxy import inherited
diff --git a/freevideo_engine/image_gen/service.py b/freevideo_engine/image_gen/service.py
index 44efe25c..90061db5 100644
--- a/freevideo_engine/image_gen/service.py
+++ b/freevideo_engine/image_gen/service.py
@@ -114,24 +114,6 @@ def write_refused(error):
'invalid_layout', 'too_many_boxes', 'layout_too_long')) | LORA_ERRORS
-def native_allocator(env):
- """``env`` with CUDA's native caching allocator where ComfyUI had chosen the asynchronous one.
-
- ComfyUI turns ``backend:cudaMallocAsync`` on in its own process and every child inherits it. The video worker
- names its allocator itself; the picture worker did not, so its card memory was counted by an allocator the
- placement plan was never measured with."""
- selected = env.get('PYTORCH_ALLOC_CONF', env.get('PYTORCH_CUDA_ALLOC_CONF'))
- if not selected or 'cudaMallocAsync' not in selected:
- return env
- options = ['backend:native' if option.strip() == 'backend:cudaMallocAsync' else option
- for option in selected.split(',')]
- if 'backend:native' not in options:
- options.insert(0, 'backend:native')
- value = ','.join(option for option in options if 'cudaMallocAsync' not in option)
- env.update(PYTORCH_ALLOC_CONF=value, PYTORCH_CUDA_ALLOC_CONF=value)
- return env
-
-
def comfy_server():
"""ComfyUI's server in this process, or None (tests, the engine's own command line)."""
try:
@@ -2521,7 +2503,7 @@ def resident_endpoint(self):
def environment(self, root):
from ..comfy_bridge import source_root
- from ..comfy_environment import isolated_environment
+ from ..comfy_environment import isolated_environment, native_allocator
from .. import processes, resident_process
env = isolated_environment(root, source_root())
for name in ('FREEVIDEO_RUNTIME_LOCK_FD', processes.HANDLE_ENV, resident_process.ENV,
diff --git a/freevideo_engine/prompt_vlm/service.py b/freevideo_engine/prompt_vlm/service.py
index a2c1932e..75840d69 100644
--- a/freevideo_engine/prompt_vlm/service.py
+++ b/freevideo_engine/prompt_vlm/service.py
@@ -238,7 +238,7 @@ def _cleanup_prestart(self, session):
self.prestart_cleanup_threads.discard(threading.current_thread())
def environment(self, root):
- from ..comfy_environment import isolated_environment
+ from ..comfy_environment import isolated_environment, native_allocator
from ..comfy_bridge import source_root
from .worker import PRESTART_ENV
from .. import processes, resident_process
@@ -246,7 +246,9 @@ def environment(self, root):
# No inherited lease, handle, session or prestart mode in an idle worker.
for name in ('FREEVIDEO_RUNTIME_LOCK_FD', processes.HANDLE_ENV, resident_process.ENV, PRESTART_ENV):
env.pop(name, None)
- return env
+ # The placement is planned for the native allocator under the Windows limit. Under ComfyUI's asynchronous one
+ # that limit counts only live tensors: its pool keeps the streamed layers' freed copies until the card is full.
+ return native_allocator(env)
@staticmethod
def spawn(root, machine, env, descriptor=None):
From 320cf3df2dffed0f94c26067499ec0a955c81be2 Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 06:02:40 +0000
Subject: [PATCH 03/20] Launcher: an engine update that waits for a video goes
back to how things were before it, and...
Launcher: an engine update that waits for a video goes back to how things were before it, and the page check skips an open state without an address
---
freevideo_engine/launcher_session.py | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/freevideo_engine/launcher_session.py b/freevideo_engine/launcher_session.py
index 7593753f..00d2e2a6 100644
--- a/freevideo_engine/launcher_session.py
+++ b/freevideo_engine/launcher_session.py
@@ -156,6 +156,9 @@ class Session:
# Windows refused to start the downloaded launcher: how many times so far, when to try again, and the file.
update_start_failures, update_start_retry_at, update_blocked_path = 0, 0., ''
engine_updating = engine_autoinstall = reload_expected = resume_pages = False
+ # The controller's status and address when an engine update began (its inspection replaces the state): what a
+ # wait for a running video goes back to.
+ engine_update_from = None
browser_wait = queue_state = queue_thread = bridge = None
# Setup that stopped for a running job and continues by itself once the queue is empty.
setup_job_wait, setup_job_tries = False, 0
@@ -2070,6 +2073,7 @@ def _update_engine_when_idle(self):
if not self.engine_still_outdated():
return
self.engine_updating = self.engine_autoinstall = True
+ self.engine_update_from = dict(status=self.controller.state.get('status'), url=self.controller.state.get('url'))
# Open pages reload themselves after the restart; without any, open
# the browser as soon as ComfyUI is ready.
self.reload_expected = (self.update_source == 'browser' or self.resume_pages
@@ -2524,8 +2528,12 @@ def tick(self):
row, busy = self.controller.state, self.controller.busy
if (self.engine_updating and not busy and row.get('status') == 'failed'
and str(row.get('error') or '').startswith(ENGINE_UPDATE_WAITS)):
- # A video started after the check: keep waiting for it instead of showing a failure.
- self.controller.state = row = dict(row, status='open', error=None, exception=None)
+ # A video started after the check: keep waiting for it instead of showing a failure, as things were before
+ # the update looked at the installation: open at its address, or ready (a ComfyUI started some other way).
+ before = self.engine_update_from
+ url = (before.get('url') if before.get('status') == 'open' else None) if before else row.get('url')
+ back = dict(status='open', url=url) if url else dict(status='ready')
+ self.controller.state = row = dict(row, **back, error=None, exception=None)
self.engine_updating = self.engine_autoinstall = False
self.update_intent = 'engine'
self.queue_state = None
@@ -2599,7 +2607,8 @@ def tick(self):
def _tick_page_check(self, row):
"""Show a page that failed to load FreeVideo, or never reported, in the failure card."""
- if row.get('status') != 'open' or self.closing or self.smoke:
+ # An open row without an address has no page of this launcher's to check (nothing it opened itself).
+ if row.get('status') != 'open' or not row.get('url') or self.closing or self.smoke:
self.page_check.reset()
self.browser_opened, self.page_error = None, ''
return
From 688786feafd188ec3119cea8e9ba95dacd8f8df2 Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 06:14:20 +0000
Subject: [PATCH 04/20] Fast level on a Mac: choosing it after the Studio
opened no longer stops Generate and the queue...
Fast level on a Mac: choosing it after the Studio opened no longer stops Generate and the queue with an error
---
web/capability_view.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/capability_view.js b/web/capability_view.js
index 1ae09754..a3931491 100644
--- a/web/capability_view.js
+++ b/web/capability_view.js
@@ -431,7 +431,8 @@ export function createCapabilityView({node, api, t, getState, onPick, onEstimate
// does not, why (the limit past this size's longest length) and the planner's ways out.
const fast = grid?.fast_mode;
// Read from the grid alone: the chart's surface follows the steps of a plain level, which the Fast level has not.
- if (!fast?.listed) return null;
+ // A Mac's answer is the listing alone (fast_only, no sizes or lengths): nothing to read for this size there.
+ if (!fast?.listed || !Array.isArray(grid.sizes) || !Array.isArray(grid.lengths)) return null;
const i = grid.sizes.findIndex(s => s.width === Number(value(node, 'width')) && s.height === Number(value(node, 'height')));
if (i < 0) return null;
// A listed length is read from its cell; any other from the longest request that fits this size (the frames a
From f28879bc02f4150bb0973e902312645cfe0bd23e Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 06:14:20 +0000
Subject: [PATCH 05/20] Feedback: the diagnostic info carries why the engine
stopped earlier in this launcher run, in...
Feedback: the diagnostic info carries why the engine stopped earlier in this launcher run, in numbers and fixed words
---
freevideo_engine/feedback.py | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/freevideo_engine/feedback.py b/freevideo_engine/feedback.py
index 0aaf1003..ad1094a5 100644
--- a/freevideo_engine/feedback.py
+++ b/freevideo_engine/feedback.py
@@ -51,13 +51,16 @@ def scrub(value):
return TOKEN.sub('', EMAIL.sub('', value))
-def summary(report, machine=None):
+def summary(report, machine=None, engine_exit=None):
"""The diagnostic summary: the same redacted fields the report form uses, no prompt or picture.
report is the parsed diagnostic report of the latest generation (or None);
- machine is the installation's machine record (or None).
+ machine is the installation's machine record (or None);
+ engine_exit is why the ComfyUI before this one stopped (engine_exit.public: numbers and fixed words), or None.
"""
out = {}
+ if isinstance(engine_exit, dict) and engine_exit:
+ out['engine_exit'] = engine_exit
hardware = {}
if isinstance(machine, dict) and isinstance(machine.get('hardware'), dict):
hardware.update({k: v for k, v in machine['hardware'].items() if k in HARDWARE_KEYS})
@@ -126,4 +129,13 @@ def collect(report_id=None):
machine = dict(machine, hardware=setup_hardware(machine))
except Exception: # Setup problems must not stop a suggestion from being sent.
machine = None
- return summary(report, machine)
+ stopped = None
+ try:
+ # A failure card's message cannot say why the engine stopped while it is gone; once it answers again, a
+ # suggestion carries the stop of this launcher run, as a diagnostic report does. An earlier run's is left out.
+ from .comfy_bridge import installation_root
+ from .engine_exit import current, public
+ stopped = public(current(installation_root()))
+ except Exception:
+ stopped = None
+ return summary(report, machine, stopped)
From cdbb594793c56679eebbcf7d968ab31cf01c2c18 Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 06:51:56 +0000
Subject: [PATCH 06/20] Autopilot entry: an assistant interface that could not
start this time (no private token on...
Autopilot entry: an assistant interface that could not start this time (no private token on Windows) keeps the Autopilot tab and says to restart; only an interface switched off hides it
- Autopilot entry: an assistant interface that could not start this time (no private token on Windows) keeps the Autopilot tab and says to restart; only an interface switched off hides it
- Autopilot view: an assistant interface that is not ready this startup shows its connection card, which says to restart, instead of an empty page; the tab stops asking again
- Assistant not ready this startup: the connection card offers no retry, only Report a problem beside its restart sentence, and the character library says to restart instead of saying the assistant was turned off
---
freevideo_engine/agent/routes.py | 5 +++--
web/agent_connect.js | 20 ++++++++++++++------
web/autopilot.js | 3 ++-
web/cast_room.js | 14 +++++++++-----
web/view_navigation.js | 3 ++-
5 files changed, 30 insertions(+), 15 deletions(-)
diff --git a/freevideo_engine/agent/routes.py b/freevideo_engine/agent/routes.py
index 32852d1f..266bf5c2 100644
--- a/freevideo_engine/agent/routes.py
+++ b/freevideo_engine/agent/routes.py
@@ -854,8 +854,9 @@ async def discover(request):
from .guide import connection_discovery
root = installation_root()
if root in token_failures:
- # No token this startup: the same single answer as when it is off, so the page shows no agent controls.
- return reply({'enabled': False})
+ # No token this startup: not on, but not switched off either. The page keeps its Autopilot entry and says to
+ # restart (reason not_ready), where an interface switched off (FREEVIDEO_AGENT=0) shows no agent controls.
+ return reply({'enabled': False, 'reason': 'not_ready'})
return reply(connection_discovery(root, request.scheme + '://' + request.host, request[query_key].get('lang')))
@routes.get('/freevideo/agent/session')
diff --git a/web/agent_connect.js b/web/agent_connect.js
index 2b6036cc..058803b0 100644
--- a/web/agent_connect.js
+++ b/web/agent_connect.js
@@ -22,14 +22,17 @@ export function connectionSentence(address, t) {
return t('Connect to FreeVideo: open {url} and follow the instructions.', '请连接 FreeVideo:打开 {url} 并按说明操作。', { url });
}
-// Whether this FreeVideo has the Agent interface on: 'on', 'off' or 'unknown'. Only an explicit `enabled: false`
-// is off; a check that failed (no answer, an error status, an unreadable reply) is not an answer.
+// Whether this FreeVideo has the Agent interface on: 'on', 'off', 'not_ready' or 'unknown'. Only an explicit
+// `enabled: false` is off; with `reason: 'not_ready'` it is on but could not start this time (no private token: a
+// restart retries), so its entries stay and say so. A check that failed (no answer, an error status, an unreadable
+// reply) is not an answer.
export async function agentInterfaceState(api) {
try {
const response = await api.fetchApi('/freevideo/agent', {cache: 'no-store'});
if (!response.ok) return 'unknown';
- const enabled = (await response.json())?.enabled;
- return enabled === true ? 'on' : enabled === false ? 'off' : 'unknown';
+ const value = await response.json();
+ const enabled = value?.enabled;
+ return enabled === true ? 'on' : enabled === false ? (value?.reason === 'not_ready' ? 'not_ready' : 'off') : 'unknown';
} catch { return 'unknown'; }
}
@@ -268,11 +271,13 @@ export function agentConnectCard(t, api, shown = () => true, changed = () => {})
if (!issue) { issue = issueButton(t, () => ({where: ['Assistant connection', '助手连接'], message: refusal ? `${label.textContent} (HTTP ${refusal.status}${refusal.code ? ' ' + refusal.code : ''}${refusal.reason ? ' ' + refusal.reason : ''}${opened ? ', opened by ' + opened : ''})` : label.textContent, kind: refusal?.code || noAnswer})); button.after(issue); }
} else if (issue) { issue.remove(); issue = null; }
next.hidden = !!issue;
+ // Not ready does not mend by retrying: only the sentence (restart) and Report a problem stay.
+ button.hidden = !text && refusal?.code === 'not_ready';
button.disabled = !text && failures < 3;
button.title = !text && failures < 3 ? t('Getting the connection address…', '正在获取连接地址…') : '';
tip(button, !text && failures >= 3 ? 'retryAddress' : 'copyConnect', t, {why: button.disabled ? t('Getting the connection address…', '正在获取连接地址…') : ''});
// Asked for focus (Reconnect from the light) while the address was still loading: it goes there once usable.
- if (wantFocus && !button.disabled && active()) { wantFocus = false; button.focus?.({preventScroll: true}); }
+ if (wantFocus && !button.disabled && !button.hidden && active()) { wantFocus = false; button.focus?.({preventScroll: true}); }
status.hidden = !!text; status.textContent = !text && failures < 3 ? t('Getting the connection address…', '正在获取连接地址…') : !text ? refusalHint(refusal?.code, t, undefined, undefined, refusal || {}) || noAnswerHint(noAnswer, t) : '';
};
render();
@@ -319,7 +324,10 @@ export function agentConnectCard(t, api, shown = () => true, changed = () => {})
note.hidden = noteSeen() || !(Array.isArray(connect.agents) && connect.agents.length > 0);
failures = 0; refusal = null; noAnswer = null; render();
if (await state === 'unknown') { state = agentInterfaceState(api); changed(await state); }
- } catch { if (current === generation) { noAnswer = refusal ? null : lacked; failures++; render(); } }
+ } catch {
+ // Not ready (no private token this startup) does not mend by asking again: its sentence (restart) shows at once.
+ if (current === generation) { noAnswer = refusal ? null : lacked; failures = refusal?.code === 'not_ready' ? 3 : failures + 1; render(); }
+ }
finally {
if (current === generation) {
controller = null;
diff --git a/web/autopilot.js b/web/autopilot.js
index c328814b..1949966f 100644
--- a/web/autopilot.js
+++ b/web/autopilot.js
@@ -100,7 +100,8 @@ export function openAutopilotView(node, {studio = null, initialPrompt = '', init
// The card gives way to the conversation: typing can start at once.
const arrived = talking && chat.element.hidden && (card.element.contains(document.activeElement) || document.activeElement === lamp);
// A check that failed keeps the card up: its retry is the way back.
- card.element.hidden = !(ready || on === 'unknown') || talking; chat.element.hidden = !talking;
+ // Not ready (no private token this startup): the card says to restart.
+ card.element.hidden = !(ready || on === 'unknown' || on === 'not_ready') || talking; chat.element.hidden = !talking;
body.dataset.view = talking ? 'chat' : 'connect';
if (talking) chat.sync();
if (arrived) chat.input.focus();
diff --git a/web/cast_room.js b/web/cast_room.js
index ac0f46b1..8d674d1a 100644
--- a/web/cast_room.js
+++ b/web/cast_room.js
@@ -3,7 +3,7 @@
// the cast library's (cast_library.js); this file only lays them out in the room.
import { createCastLibrary } from './cast_library.js';
import { pageLanguage } from './i18n.js';
-import { agentInterfaceState } from './agent_connect.js';
+import { agentInterfaceState, refusalHint } from './agent_connect.js';
import { agentSend } from './agent_session.js';
import { uploadMedia } from './media_upload.js';
import { issueButton } from './issue_button.js';
@@ -140,12 +140,14 @@ export function createCastRoom({api, t, viewURL: outputURL}) {
}
message.replaceChildren();
collection.dataset.empty = String(!ordered.length);
- if (state === 'off') message.textContent = t('The assistant features are turned off on this computer, so the character library is unavailable. Turn that setting back on and restart FreeVideo to use it.', '这台电脑关闭了助手功能,角色库因此不可用。重新打开该设置并重启 FreeVideo 后可以使用。');
+ // Not ready (no private token this startup): the connection card's sentence, to restart; nothing was turned off.
+ if (state === 'not_ready') message.textContent = refusalHint('not_ready', t);
+ else if (state === 'off') message.textContent = t('The assistant features are turned off on this computer, so the character library is unavailable. Turn that setting back on and restart FreeVideo to use it.', '这台电脑关闭了助手功能,角色库因此不可用。重新打开该设置并重启 FreeVideo 后可以使用。');
else if (state === 'error') { message.textContent = t('The character library could not be read. Try Refresh.', '角色库暂时无法读取,请点击刷新。'); message.append(issueButton(t, () => ({where: ['Character library', '角色库'], message: message.firstChild?.textContent || ''}))); }
else if (state === 'loading' && !rows.length) message.textContent = t('Loading…', '正在读取…');
else if (!ordered.length) message.textContent = query ? t('No name matches this search.', '没有符合搜索的名称。')
: t('Saved characters, scenes and props appear here. Press New to add one from images.', '保存的角色、场景和道具会出现在这里。点“新建”用图片添加。');
- create.disabled = state === 'off';
+ create.disabled = state === 'off' || state === 'not_ready';
const chosen = selected ? rows.find(row => row.id === selected) : null;
if (selected && !chosen) clearDetail();
// Saved from the Edit dialog: the details read the card again (its pictures, name and voice).
@@ -239,8 +241,10 @@ export function createCastRoom({api, t, viewURL: outputURL}) {
}
const offs = KINDS.map(kind => libraries[kind].subscribe(() => render()));
async function refresh() {
- state = (await agentInterfaceState(api)) === 'off' ? 'off' : 'loading'; render();
- if (state === 'off') return;
+ // Not ready (no private token this startup) has no library to read either; it says to restart.
+ const interfaceState = await agentInterfaceState(api);
+ state = ['off', 'not_ready'].includes(interfaceState) ? interfaceState : 'loading'; render();
+ if (state !== 'loading') return;
try { await Promise.all(KINDS.map(kind => libraries[kind].refresh())); state = 'ready'; }
catch { state = 'error'; }
render();
diff --git a/web/view_navigation.js b/web/view_navigation.js
index 2b95d174..dd028a57 100644
--- a/web/view_navigation.js
+++ b/web/view_navigation.js
@@ -49,7 +49,8 @@ export function viewChanged(view, node, {remember = true} = {}) {
// interface is off; a check that failed leaves it in place and asks again, waiting longer each time.
let agentState = null, agentRun = null;
const agentTabs = new Set();
-const asState = on => on === true || on === 'on' ? 'on' : on === false || on === 'off' ? 'off' : 'unknown';
+// not_ready (no private token this startup) is an answer too: the tab shows and is not asked again until a restart.
+const asState = on => on === true || on === 'on' ? 'on' : on === false || on === 'off' ? 'off' : on === 'not_ready' ? 'not_ready' : 'unknown';
// On the Autopilot page itself the tab always shows.
function showAgentTab(button, state = agentState) {
if (!button.dataset.here) button.hidden = state === 'off';
From a7511b8ddb096ff167cc4b9365f2a417d7d00c37 Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 07:01:04 +0000
Subject: [PATCH 07/20] Settings, Version and updates: release notes fold by
change, each showing its label and first...
Settings, Version and updates: release notes fold by change, each showing its label and first sentence and opening to the rest, and a version the update skips opens its changes from its number
---
web/updates.css | 16 ++++++++++++++++
web/updates.js | 49 +++++++++++++++++++++++++++++++++++++++++--------
2 files changed, 57 insertions(+), 8 deletions(-)
diff --git a/web/updates.css b/web/updates.css
index a89f3036..83b41f23 100644
--- a/web/updates.css
+++ b/web/updates.css
@@ -119,6 +119,22 @@ dialog.fv-set .st-notes ul.fv-release-list li{grid-column:1/-1;display:grid;grid
dialog.fv-set .st-notes ul.fv-release-list li:not([data-hx-tag])>.fv-release-text{grid-column:1/-1}
dialog.fv-set .st-notes .fv-release-tag{justify-self:start;max-width:11em;padding:1px var(--fv-sp-8,8px);border-radius:var(--fv-rad-xs,4px);background:var(--fv-ctl-bg);color:var(--fv-accent-ink);font-size:var(--fv-fs-1,12px);line-height:18px;text-wrap:balance;overflow-wrap:anywhere}
dialog.fv-set .st-notes .fv-release-text{min-width:0;text-wrap:pretty}
+/* A change of more than one sentence: its first sentence is the button that opens the rest under it; a version it
+ skips opens its changes from its number. A chevron at the end turns when open. */
+dialog.fv-set .st-notes .fv-release-fold{display:inline;min-height:0;margin:0;padding:0;border:0;border-radius:var(--fv-rad-xs,4px);background:none;color:inherit;font:inherit;text-align:start;cursor:pointer}
+dialog.fv-set .st-notes .fv-release-fold:hover .fv-release-fold-words{text-decoration:underline;text-decoration-color:var(--fv-line2,#ffffff40);text-underline-offset:3px}
+dialog.fv-set .st-notes .fv-release-fold:focus-visible{outline:2px solid var(--fv-accent-line,#6db8fa);outline-offset:2px}
+dialog.fv-set .st-notes .fv-release-fold-mark{display:inline-block;width:6px;height:6px;margin:0 2px 2px 8px;border-right:1.5px solid var(--fv-fg3,#9aa3b2);border-bottom:1.5px solid var(--fv-fg3,#9aa3b2);transform:rotate(45deg);vertical-align:middle;transition:transform var(--fv-dur-1,160ms) var(--fv-ease-out,ease-out)}
+dialog.fv-set .st-notes .fv-release-fold[aria-expanded=true] .fv-release-fold-mark{transform:translateY(2px) rotate(-135deg)}
+dialog.fv-set .st-notes .fv-release-more{display:block;margin-top:var(--fv-sp-4,4px);color:var(--fv-fg2,#c9d0db)}
+dialog.fv-set .st-notes .fv-release-more[hidden],dialog.fv-set .st-notes .fv-release-list[hidden]{display:none}
+/* A sentence's button is a block (a button never flows inline: as an inline block its baseline would be its last line,
+ and the label beside it would sit there); a version's sits on its heading's line. */
+dialog.fv-set .st-notes .fv-release-text>.fv-release-fold{display:block;width:100%}
+dialog.fv-set .st-notes h4 .fv-release-fold{display:inline-flex;align-items:center;font-weight:inherit}
+@media(prefers-reduced-motion:reduce){dialog.fv-set .st-notes .fv-release-fold-mark{transition:none}}
+/* Narrow: every label on its own line above its words, folded or not (a sentence's button is a block). */
+@container (max-width:420px){dialog.fv-set .st-notes ul.fv-release-list li>.fv-release-tag{display:table;margin:0 0 var(--fv-sp-4,4px)}}
@container (max-width:420px){
dialog.fv-set .st-notes ul.fv-release-list{grid-template-columns:minmax(0,1fr)}
dialog.fv-set .st-notes ul.fv-release-list li{display:block}
diff --git a/web/updates.js b/web/updates.js
index d456f3f8..a7f82dd0 100644
--- a/web/updates.js
+++ b/web/updates.js
@@ -388,13 +388,14 @@ function fillNotes(body, cn) {
heading.dataset.fvTipName = displayVersion(release); heading.dataset.fvTipUse = build.textContent;
const notes = localizedNotes(release, cn), summary = document.createElement('p');
summary.textContent = notes?.summary || t('No release notes were included with this version.', '此版本未附带更新说明。'); section.append(summary);
- section.append(changeList(notes?.changes));
+ section.append(changeList(notes?.changes, {fold: t}));
if (release === value?.available) {
for (const row of earlierNotes(release, value?.current_release?.product_version)) {
- const earlier = localizedNotes(row, cn);
- const name = document.createElement('h4'); name.textContent = 'v' + row.product_version;
- const text = document.createElement('p'); text.textContent = earlier?.summary || '';
- section.append(name, text, changeList(earlier?.changes));
+ // A version it skips: its number and summary; its changes open from the number.
+ const earlier = localizedNotes(row, cn), list = changeList(earlier?.changes, {fold: t});
+ const name = document.createElement('h4'), text = document.createElement('p'); text.textContent = earlier?.summary || '';
+ if (list.childElementCount) name.append(foldButton('v' + row.product_version, list, t)); else name.textContent = 'v' + row.product_version;
+ section.append(name, text, list);
}
}
body.append(section);
@@ -438,13 +439,45 @@ function noteRows(release, cn) {
if (notes?.changes?.length) rows.push(changeList(notes.changes));
return rows;
}
-// The changes as "label + sentence" rows (the update window and Settings › Version & updates alike).
-function changeList(changes) {
+// A change's first sentence, and the rest ('' when it has one). A full stop ends a sentence only before a space, so
+// "0.6.18" or "e.g.x" stay whole; the Chinese marks end one where they stand.
+export function firstSentence(text) {
+ const match = /^([\s\S]+?(?:[.!?](?=\s)|[。!?]))\s*([\s\S]+)$/.exec(String(text ?? '').trim());
+ return match ? [match[1], match[2]] : [String(text ?? '').trim(), ''];
+}
+let folds = 0;
+// A button that shows or hides `target` (hidden at first) and says which on its own (aria-expanded; the hover card
+// offers to expand while it is closed).
+function foldButton(label, target, t) {
+ const button = document.createElement('button'); button.type = 'button'; button.className = 'fv-release-fold';
+ const words = document.createElement('span'); words.className = 'fv-release-fold-words'; words.textContent = label;
+ const mark = document.createElement('span'); mark.className = 'fv-release-fold-mark'; mark.setAttribute('aria-hidden', 'true');
+ button.append(words, mark);
+ target.id ||= 'fv-release-fold-' + ++folds; target.hidden = true;
+ button.setAttribute('aria-controls', target.id);
+ const paint = () => {
+ button.setAttribute('aria-expanded', String(!target.hidden));
+ button.dataset.fvTipName = label;
+ if (target.hidden) button.dataset.fvTipUse = t('Expand', '展开'); else delete button.dataset.fvTipUse;
+ };
+ button.onclick = () => { target.hidden = !target.hidden; paint(); };
+ paint();
+ return button;
+}
+// The changes as "label + sentence" rows (the update window and Settings › Version & updates alike). With `fold` (a
+// translator), a change of more than one sentence shows its first and opens to the rest.
+function changeList(changes, {fold = null} = {}) {
const list = document.createElement('ul'); list.className = 'fv-release-list';
for (const item of changes || []) {
const [topic, sentence] = splitChange(item), row = document.createElement('li');
if (topic) { const tag = document.createElement('span'); tag.className = 'fv-release-tag'; tag.textContent = topic; row.append(tag); }
- const text = document.createElement('span'); text.className = 'fv-release-text'; text.textContent = sentence; row.append(text);
+ const text = document.createElement('span'); text.className = 'fv-release-text';
+ const [first, rest] = fold ? firstSentence(sentence) : [sentence, ''];
+ if (rest) {
+ const more = document.createElement('span'); more.className = 'fv-release-more'; more.textContent = rest;
+ text.append(foldButton(first, more, fold), more);
+ } else text.textContent = sentence;
+ row.append(text);
list.append(row);
}
return list;
From 0e4fe09710b2cdbc1e83e530799debe4557e1ab0 Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 07:01:17 +0000
Subject: [PATCH 08/20] Take music out of the pauses of a voice sample
- Take music out of the pauses of a voice sample
- Voice sample cleaning: separation stops after 90 s or when the model is gone
- Voice sample cleaning: keep the sample when the dialogue track lost the speech; separate with the server
---
freevideo_engine/agent/cast.py | 5 +-
freevideo_engine/agent/voice_clean.py | 191 ++++++++++++++++++++++++++
2 files changed, 195 insertions(+), 1 deletion(-)
create mode 100644 freevideo_engine/agent/voice_clean.py
diff --git a/freevideo_engine/agent/cast.py b/freevideo_engine/agent/cast.py
index 2fc1c8b3..9db4d4d4 100644
--- a/freevideo_engine/agent/cast.py
+++ b/freevideo_engine/agent/cast.py
@@ -19,7 +19,7 @@
import threading
import uuid
-from . import assets, errors, operation_receipts, schema, spec
+from . import assets, errors, operation_receipts, schema, spec, voice_clean
from .jobs import ACTIVE, DONE, JobError, iso
CARD = re.compile(r'c[0-9a-f]{12}')
@@ -527,6 +527,9 @@ def _voice(self, identity, value):
'Send voice.media with audio, and voice.start and voice.end 2 to 15 seconds apart.')
if written < end - start - .01:
end = start + written # The audio ended before the requested end: the card shows the clip it has.
+ separate = voice_clean.separator(self.jobs)
+ if separate:
+ voice_clean.clean(port.input_path(clip), separate) # Music under the pauses would be copied into every line.
return dict(media=kept, start=start, end=round(end, 3), clip=dict(file=clip))
# Operations ---------------------------------------------------------------------------------------
diff --git a/freevideo_engine/agent/voice_clean.py b/freevideo_engine/agent/voice_clean.py
new file mode 100644
index 00000000..d47c6236
--- /dev/null
+++ b/freevideo_engine/agent/voice_clean.py
@@ -0,0 +1,191 @@
+"""Music left in the pauses of a voice sample is taken out before the sample is kept.
+
+A generated voice sample sometimes carries a quiet chord under its pauses even when the prompt asks for none. The
+sound is separated; the pauses are found on the dialogue track (the mix has music under the speech too, so its own
+loudness does not tell speech from pause), and the music track is measured there. Where music is heard the clip becomes the
+dialogue track, but only when the pauses of that track are clean and the track still carries the speech (a sung or heavily
+processed voice can land on the music track, and the clip must never become silence); otherwise the clip stays as it was.
+"""
+import logging
+import os
+from pathlib import Path
+import tempfile
+import time
+import wave
+
+import numpy as np
+
+LOGGER = logging.getLogger(__name__)
+FRAME = .02 # seconds per envelope frame
+SPEECH_FROM = .05 # a frame is speech above this share of the track's 95th percentile envelope ...
+SPEECH_GROW = .15 # ... and so is everything within this many seconds of one
+MIN_PAUSE = .4 # seconds a pause must last to be measured
+LIMIT = 90. # seconds the separation of one sample may take before the sample is kept as it was
+MUSIC_LEVEL = -50. # dBFS of the music track in the pauses at or above which music plays under them
+CLEAN_LEVEL = -60. # dBFS of the dialogue track in the pauses (and of the narrow chord band) at or below which it is clean
+CLEAN_CHORD = -80.
+SPEECH_LEVEL = -40. # dBFS the dialogue track must reach where it speaks, and ...
+SPEECH_LOSS = 6. # ... dB below the mix there at most, or the separation lost the speech and the clip is kept
+CHORD = (392., 523., 784.)
+CHORD_WIDTH = 8.
+
+
+def _db(x):
+ return float(20 * np.log10(np.sqrt(np.mean(x.astype(np.float64) ** 2)) + 1e-9)) if len(x) else -99.
+
+
+def _chord_db(x, rate):
+ """Power of the chord bands in x (windows of up to 1 s, half overlapping), dBFS."""
+ n = min(rate, len(x))
+ if n < rate // 4:
+ return -99.
+ windows = [np.abs(np.fft.rfft(x[i:i + n] * np.hanning(n))) ** 2 for i in range(0, len(x) - n + 1, max(1, n // 2))]
+ power = np.mean(windows, 0) / (n * .375) / n * 2
+ bins = np.fft.rfftfreq(n, 1 / rate)
+ return float(10 * np.log10(sum(power[abs(bins - c) < CHORD_WIDTH].sum() for c in CHORD) + 1e-18))
+
+
+def pauses(voice, rate):
+ """Sample ranges [(a, b)] where the voice track is silent for at least MIN_PAUSE seconds, 0.15 s off the speech."""
+ frame = int(rate * FRAME)
+ count = len(voice) // frame
+ if count == 0:
+ return []
+ envelope = np.sqrt((voice[:count * frame].astype(np.float64).reshape(count, frame) ** 2).mean(1))
+ grow = int(round(SPEECH_GROW / FRAME))
+ speech = np.convolve(envelope > np.percentile(envelope, 95) * SPEECH_FROM, np.ones(2 * grow + 1), 'same') > 0
+ found, index = [], 0
+ while index < count:
+ if speech[index]:
+ index += 1
+ continue
+ end = index
+ while end < count and not speech[end]:
+ end += 1
+ if (end - index) * FRAME >= MIN_PAUSE:
+ found.append((index * frame, end * frame))
+ index = end
+ return found
+
+
+def _joined(x, spans):
+ return np.concatenate([x[a:b] for a, b in spans]) if spans else np.zeros(0, np.float32)
+
+
+def judge(music, dialogue, rate):
+ """(the music track is audible in the pauses, the dialogue track is clean there). Both are False when there is no
+ pause to measure."""
+ spans = pauses(dialogue, rate)
+ if not spans:
+ return False, False
+ chord = lambda x: max(_chord_db(x[a:b], rate) for a, b in spans)
+ heard = _db(_joined(music, spans)) >= MUSIC_LEVEL
+ left = _joined(dialogue, spans)
+ return heard, _db(left) <= CLEAN_LEVEL and chord(dialogue) <= CLEAN_CHORD
+
+
+def speech_kept(mix, dialogue, rate):
+ """The dialogue track still carries the speech of the mix: outside its pauses it reaches SPEECH_LEVEL and stays within
+ SPEECH_LOSS dB of the mix. A track that is empty or only holds leakage, the voice having gone to the music track, fails."""
+ edges = [0] + [i for a, b in pauses(dialogue, rate) for i in (a, b)] + [len(dialogue)]
+ speech = [(edges[i], edges[i + 1]) for i in range(0, len(edges), 2) if edges[i + 1] > edges[i]]
+ level = _db(_joined(dialogue, speech))
+ return level >= SPEECH_LEVEL and level >= _db(_joined(mix, speech)) - SPEECH_LOSS
+
+
+def _read(path, rate):
+ """Mono float32 samples of an audio file at `rate`."""
+ import av
+ chunks = []
+ with av.open(str(path)) as container:
+ stream = next(iter(container.streams.audio))
+ resampler = av.AudioResampler(format='flt', layout='mono', rate=rate)
+ for frame in container.decode(stream):
+ chunks.extend(f.to_ndarray().reshape(-1) for f in resampler.resample(frame))
+ chunks.extend(f.to_ndarray().reshape(-1) for f in resampler.resample(None))
+ return np.concatenate(chunks).astype(np.float32) if chunks else np.zeros(0, np.float32)
+
+
+def _read_clip(path):
+ with wave.open(str(path)) as stream:
+ rate = stream.getframerate()
+ samples = np.frombuffer(stream.readframes(stream.getnframes()), ' deadline
+ or not service.ready(machine['model_root']))
+ return separate
+ except Exception: # noqa: BLE001 - no machine information, or no engine here: no cleaning
+ return None
From febeb5b2d7432abb56770832cf2afadb1865bb9b Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 07:01:33 +0000
Subject: [PATCH 09/20] Create panel: the Quality title's line carries the
time, and the column keeps one spacing at...
Create panel: the Quality title's line carries the time, and the column keeps one spacing at every width
---
web/locales/ru.json | 4 ++--
web/panel_shell.css | 20 +++++++++++++++++---
web/sampling_effort.css | 2 ++
web/sampling_effort.js | 18 ++++++++++++++++--
web/studio.js | 13 ++++++++-----
5 files changed, 45 insertions(+), 12 deletions(-)
diff --git a/web/locales/ru.json b/web/locales/ru.json
index 4f4b32bd..1882ddea 100644
--- a/web/locales/ru.json
+++ b/web/locales/ru.json
@@ -2743,7 +2743,7 @@
"Include prompt and workflow": "Включить запрос и рабочий процесс",
"Include the prompt": "Добавить запрос в пресет",
"Include the seed": "Добавить seed в пресет",
- "Includes about {time} to rewrite the prompt": "Включая около {time} на переписывание запроса",
+ "Includes about {time} to rewrite the prompt": "С учетом около {time} на переписывание запроса",
"Includes first-time setup": "Включая первоначальную подготовку",
"Incorrect password.": "Неверный пароль.",
"Increment": "Увеличивать",
@@ -6653,7 +6653,7 @@
"handheld shot": "съемка с рук",
"high angle": "верхний ракурс",
"history": "история",
- "includes about {time} to rewrite the prompt": "включая около {time} на переписывание запроса",
+ "includes about {time} to rewrite the prompt": "с учетом около {time} на переписывание запроса",
"incomplete files may restart": "незавершенные файлы могут скачиваться заново",
"initialize": "инициализация",
"installing packages": "установка пакетов",
diff --git a/web/panel_shell.css b/web/panel_shell.css
index 430c9486..fafe3112 100644
--- a/web/panel_shell.css
+++ b/web/panel_shell.css
@@ -97,9 +97,22 @@
/* quality: the four names as one segmented row, in place of the slider */
.fv-body[data-cols="3"] .fv-effort-heading>span:first-child{display:none}
.fv-body[data-cols="3"] .fv-effort-heading{justify-content:flex-end;margin:0 0 6px}
-/* The heading holds only the time estimate here; with none to show (the Fast level, a length not yet planned) it keeps its own
- line (an empty character at the estimate's size), so the levels do not jump up and down as a level is chosen. */
-.fv-body[data-cols="3"] .fv-effort-estimate:empty::before{content:"\200b"}
+/* The time estimate sits on the Quality title's line, at its right (the time alone; the whole estimate, with first-time setup
+ or the parts, is its hover card, and the reader's text in .fv-effort-estimate): the levels sit right under the title and
+ never move when an estimate comes or goes. While one is on its way a short placeholder of the text's height stands there. */
+.fv-studio.fv-create .fv-body[data-cols="3"] .fv-sc-section[data-section=quality]{position:relative}
+.fv-studio.fv-create .fv-body[data-cols="3"] .fv-sc-section[data-section=quality] .fv-effort{position:static}
+.fv-studio.fv-create .fv-body[data-cols="3"] .fv-sc-section[data-section=quality] .fv-effort-heading{position:absolute;top:0;right:var(--fv-sc-side,16px);height:36px;max-width:60%;margin:0;align-items:center}
+.fv-body[data-cols="3"] .fv-effort-estimate{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
+.fv-body[data-cols="3"] .fv-effort-time{display:inline-block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--fv-fs-1,12px);line-height:16px;color:var(--fv-fg3,var(--fv-muted));font-variant-numeric:tabular-nums}
+.fv-body[data-cols="3"] .fv-effort-time[data-busy]{width:56px;height:12px;border-radius:6px;background:var(--fv-ctl-bg,rgb(var(--fv-tint) / .08));animation:fv-effort-wait 1.2s ease-in-out infinite alternate}
+@keyframes fv-effort-wait{from{opacity:.45}to{opacity:1}}
+/* As tall as the title's row, which is 44 px where controls grow to be touched (a11y.css). */
+@media (max-width:720px){.fv-studio.fv-create .fv-body[data-cols="3"] .fv-sc-section[data-section=quality] .fv-effort-heading{height:44px}}
+@media (prefers-reduced-motion:reduce){.fv-body[data-cols="3"] .fv-effort-time[data-busy]{animation:none}}
+/* The column's rhythm: 8 px from a group's title to its content, 8 px + the rule + 8 px between groups, 16 px at the sides
+ (12 on a phone). Only this column: the image page shares the group rules (image_view.css). */
+.fv-studio.fv-create .fv-body[data-cols="3"] .fv-sc-section{--fv-sc-side:16px;padding-left:var(--fv-sc-side);padding-right:var(--fv-sc-side)}
/* the slider rail is not seen here (sampling_effort.js also takes it out of the tab order and the reader's tree): the four names are the control, a radio group the arrows move through */
.fv-body[data-cols="3"] .fv-effort{position:relative}
.fv-body[data-cols="3"] .fv-effort-rail{position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
@@ -168,6 +181,7 @@
.fv-body[data-cols="3"] .fv-sc-section .fvs-tray::details-content{content-visibility:visible;display:block;height:auto}
/* under 720 px: one column, the preview on top and the settings below it; the works column folds away */
@media(max-width:719px){
+ .fv-studio.fv-create .fv-body[data-cols="3"] .fv-sc-section{--fv-sc-side:12px}
.fv-studio.fv-create .fv-body[data-cols="3"]{display:flex;flex-direction:column;gap:12px;overflow:auto;overscroll-behavior:contain;--ps-gut:8px}
.fv-studio.fv-create .fv-body[data-cols="3"]>.fv-preview-column{order:1;flex:none;width:100%;height:min(480px,62vh);min-height:260px;scrollbar-gutter:auto}
.fv-studio.fv-create .fv-body[data-cols="3"]>.fv-controls{order:2;flex:none;width:100%;overflow:visible}
diff --git a/web/sampling_effort.css b/web/sampling_effort.css
index 8f81aa19..e341f1c3 100644
--- a/web/sampling_effort.css
+++ b/web/sampling_effort.css
@@ -8,6 +8,8 @@
.fv-effort-heading{display:flex;align-items:baseline;gap:8px;margin:0 0 10px;color:var(--fv-muted,#969a9f);font:12px/1.5 var(--fv-font,system-ui)}
/* A held phrase in the estimate (" · includes first-time setup") has no break inside; a column narrower than it breaks
it anywhere rather than spilling over. */
+/* The time alone (sampling_effort.js) shows only where a layout places it (panel_shell.css). */
+.fv-effort-time{display:none}
.fv-effort-estimate{margin-left:auto;font-variant-numeric:tabular-nums;text-align:right;font-size:11px;overflow-wrap:anywhere}
.fv-effort-warning{margin:-4px 0 10px;color:var(--fv-warning);font:11px/1.5 var(--fv-font,system-ui);text-align:left;text-wrap:pretty}
/* The Fast level's download line in the same window: no one-character last line. */
diff --git a/web/sampling_effort.js b/web/sampling_effort.js
index 27ae5e2c..33326a7b 100644
--- a/web/sampling_effort.js
+++ b/web/sampling_effort.js
@@ -152,11 +152,14 @@ export function createSamplingEffort(t, {onChange, onPreview = () => {}, levels
const custom = el('span', 'fv-effort-custom', t('Custom', '自定义')); custom.hidden = true;
const label = el('span', '', t('Quality', '质量'));
const estimate = el('span', 'fv-effort-estimate');
+ // The time alone, where the layout shows it on the Quality title's line (the Create panel's column, panel_shell.css):
+ // the whole estimate (first-time setup, parts) is its hover card and stays in .fv-effort-estimate for readers.
+ const time = el('span', 'fv-effort-time'); time.setAttribute('aria-hidden', 'true');
const warning = el('div', 'fv-effort-warning'); warning.hidden = true; warning.setAttribute('aria-live', 'polite');
// Ways out of what the warning says (the Fast level where a length does not fit): buttons under it.
const ways = el('div', 'fv-effort-ways'); ways.hidden = true;
// The names under the track show the level; the heading does not repeat it.
- header.append(label, custom, estimate);
+ header.append(label, custom, estimate, time);
const rail = el('div', 'fv-effort-rail'); rail.tabIndex = 0;
rail.setAttribute('role', 'slider'); rail.setAttribute('aria-label', label.textContent);
rail.setAttribute('aria-valuemin', '0');
@@ -423,5 +426,16 @@ export function createSamplingEffort(t, {onChange, onPreview = () => {}, levels
setWays(list = []) {
ways.replaceChildren(...list.map(way => { const b = el('button', 'fv-effort-way', way.label); b.type = 'button'; b.dataset.way = way.id; b.onclick = way.run; return b; }));
ways.hidden = !list.length;
- }, setEstimate(text, title = '', parts = 0) { estimate.textContent = text; if (parts > 1) estimate.dataset.parts = String(parts); else delete estimate.dataset.parts; if (title) estimate.title = title; else estimate.removeAttribute('title'); }, dispose};
+ },
+ // `short`: the time alone (the whole text when not given); `busy`: an estimate is on its way (a short placeholder).
+ setEstimate(text, title = '', parts = 0, {short = text, busy = false} = {}) {
+ // `title` (what the estimate leaves out, such as a prompt rewrite) is the page's hover card, never a native one.
+ estimate.textContent = text; if (parts > 1) estimate.dataset.parts = String(parts); else delete estimate.dataset.parts;
+ const tip = (node, use) => { if (use) { node.dataset.fvTipName = t('Generation time', '生成耗时'); node.dataset.fvTipUse = use; } else { delete node.dataset.fvTipName; delete node.dataset.fvTipUse; } };
+ tip(estimate, title ? [text, title].filter(Boolean).join(' · ') : '');
+ time.textContent = busy ? '' : short;
+ if (busy) time.dataset.busy = 'true'; else delete time.dataset.busy;
+ const whole = busy ? t('Estimating time…', '正在估算用时…') : [text, title].filter(Boolean).join(' · ');
+ tip(time, whole && (busy || whole !== short) ? whole : '');
+ }, dispose};
}
diff --git a/web/studio.js b/web/studio.js
index b2c6c740..d58f10bd 100644
--- a/web/studio.js
+++ b/web/studio.js
@@ -1681,6 +1681,8 @@ export function openStudio(node, {extendFrom = null} = {}) {
}[kind]();
}
function refreshFast() { showEffortEstimate(); if (qualityChip.element.isConnected) qualityChip.place(); }
+ // An estimate without its first-time setup phrase: the time alone, for the Quality title's line (the phrase is its hover card).
+ function timeAlone(text) { const note = setupNote(t); return text && text.endsWith(note) ? text.slice(0, -note.length) : text; } // a declaration: the Fast level path uses it while the panel opens
function showEffortEstimate(steps = Number(baseSteps.value), twoPassPlan = twoPass.checked, cache = stepCacheNow(), factor = upscaleNow()) {
effort.setWarning(''); effort.setWays();
// The time shown for the current plan goes with its request (a previewed level is not the plan).
@@ -1689,7 +1691,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
if (!arguments.length && fastOn()) {
// Its time where the planner has one; a video made in parts is sampled at Light.
const cell = fastCell();
- effort.setEstimate(cell?.fits ? cell.estimate : '', cell?.fits && cell.estimate ? rewriteTip(rewriteExtra()) : '');
+ effort.setEstimate(cell?.fits ? cell.estimate : '', cell?.fits && cell.estimate ? rewriteTip(rewriteExtra(), true) : '', 0, {short: timeAlone(cell?.fits ? cell.estimate : '')});
if (cell?.fits && cell.estimate && cell.seconds > 0) show({estimate_seconds: cell.seconds});
// In the three-column Quality section this sentence is the level's own line, under the levels (sayLevel), so the
// levels do not move; the Quality window keeps it above them.
@@ -1707,7 +1709,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
if ((lengthControl.capabilityState === 'pending' || lengthControl.capabilityState === 'unavailable')
&& (lengthControl.needsPlan || lengthControl.plan?.count > 1)) {
const waiting = lengthControl.estimating ? t('Estimating time…', '正在估算用时…') : '';
- effort.setEstimate([parts, waiting].filter(Boolean).join(' · '), '', lengthControl.plan?.count > 1 ? lengthControl.plan.count : 0);
+ effort.setEstimate([parts, waiting].filter(Boolean).join(' · '), '', lengthControl.plan?.count > 1 ? lengthControl.plan.count : 0, {short: '', busy: Boolean(waiting)});
return;
}
if (lengthControl.plan?.single && Number(seconds.value) > 60) { effort.setEstimate(''); return; }
@@ -1717,14 +1719,15 @@ export function openStudio(node, {extendFrom = null} = {}) {
const seconds = steps === Number(baseSteps.value) && twoPassPlan === twoPass.checked && cache === stepCacheNow() && factor === upscaleNow()
? sumPartEstimates(plan, lengthControl.estimate) : null;
effort.setEstimate(seconds > 0 ? t('{count} parts · about {minutes} min', '分 {count} 段 · 约 {minutes} 分钟', { count: plan.count, minutes: Math.ceil(seconds / 60) })
- : t('{count} parts', '分 {count} 段', { count: plan.count }), '', plan.count);
+ : t('{count} parts', '分 {count} 段', { count: plan.count }), '', plan.count,
+ {short: seconds > 0 ? t('About {minutes} min', '约 {minutes} 分钟', { minutes: Math.ceil(seconds / 60) }) : ''});
show(partsShown(seconds, plan));
return;
}
const rewriting = rewriteExtra();
const rangeEstimate = capabilityView?.estimate(steps, twoPassPlan, arguments.length ? 3 : Number(refineSteps.value), cache, factor, rewriting);
if (rangeEstimate) {
- effort.setEstimate(rangeEstimate, rewriteTip(rewriting));
+ effort.setEstimate(rangeEstimate, rewriteTip(rewriting, true), 0, {short: timeAlone(rangeEstimate)});
show({estimate_seconds: capabilityView.estimateSeconds(steps, twoPassPlan, arguments.length ? 3 : Number(refineSteps.value), cache, factor, rewriting)});
effort.setWarning(capabilityView.warning(steps, twoPassPlan, arguments.length ? 3 : Number(refineSteps.value), cache, factor));
return;
@@ -1742,7 +1745,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
const high = Math.max(low + 1, Math.ceil((estimate.high_seconds + rewriting) / scale));
const unit = minutes ? t('min', '分钟') : t('s', '秒');
const extra = estimate.includes_text_encoding ? '' : t(' + prompt', ' + 提示词准备');
- effort.setEstimate(`${t('~', '约 ')}${low}–${high} ${unit}${extra}`, rewriteTip(rewriting));
+ effort.setEstimate(`${t('~', '约 ')}${low}–${high} ${unit}${extra}`, rewriteTip(rewriting, true));
show({estimate_range: [estimate.low_seconds + rewriting, estimate.high_seconds + rewriting]});
}
function refreshEffortEstimate(force = false) {
From a8b0f30a9138e0b8405b077d2f37e0b894df4e48 Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 07:26:48 +0000
Subject: [PATCH 10/20] Update README and release page wording
---
.github/ISSUE_TEMPLATE/bug_launcher.yml | 6 ------
README.md | 8 ++------
README.zh-CN.md | 8 ++------
scripts/publish_release.py | 8 ++++----
4 files changed, 8 insertions(+), 22 deletions(-)
diff --git a/.github/ISSUE_TEMPLATE/bug_launcher.yml b/.github/ISSUE_TEMPLATE/bug_launcher.yml
index d699c990..ccb485c9 100644
--- a/.github/ISSUE_TEMPLATE/bug_launcher.yml
+++ b/.github/ISSUE_TEMPLATE/bug_launcher.yml
@@ -1,12 +1,6 @@
name: Installation or launcher / 安装或启动器
description: Help with installation, updates or startup / 安装、更新或启动问题
body:
- - type: markdown
- attributes:
- value: |
- If the launcher shows "No NVIDIA graphics card was found" or "This graphics card is not supported", this computer cannot run FreeVideo, and a report cannot change this. FreeVideo requires an NVIDIA RTX 30 series or newer graphics card, or a Mac with Apple silicon.
-
- 如果启动器显示“未找到 NVIDIA 显卡”或“这张显卡不受支持”,说明这台电脑无法运行 FreeVideo,提交问题也无法改变这一点。FreeVideo 需要 NVIDIA RTX 30 系列或更新的显卡,或 Apple 芯片的 Mac。
- type: input
id: version
attributes:
diff --git a/README.md b/README.md
index 9d01c147..48bab0be 100644
--- a/README.md
+++ b/README.md
@@ -9,11 +9,9 @@
| Windows | macOS | Linux | Community Results | Gallery | Discord | QQ Group | WeChat Group |
-Requirements: an NVIDIA RTX 30 series or newer graphics card (professional cards of the same generation included; 8 GB of graphics memory or more recommended) and 16 GB of memory, or a Mac with Apple silicon (preview). GTX 10, GTX 16 and RTX 20 series cards and AMD or Intel graphics cannot run FreeVideo.
-
English · 中文
-Make videos on the computer you already own. Powered by [Video DeltaNet (VDN)](https://openvdn.github.io/), FreeVideo runs MiniMax H3 on NVIDIA graphics cards with compute capability 8.0 or higher (such as the RTX 30 series or newer, professional cards of the same generation included), with 8 GB of VRAM or more recommended and 16 GB of RAM, and with acceleration adapted to your hardware. Apple silicon Macs run a preview.
+Make videos on the computer you already own. Powered by [Video DeltaNet (VDN)](https://openvdn.github.io/), FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM on NVIDIA graphics cards with compute capability 8.0 or higher (such as the RTX 30 series or newer, professional cards included), with acceleration adapted to your hardware. Apple silicon Macs run a preview.
https://github.com/user-attachments/assets/ecda7d0d-7fbe-4e0c-8c29-8f3315bafc15
@@ -39,7 +37,7 @@ FreeVideo is a local inference engine for MiniMax H3 on consumer GPUs, built on
It coordinates VRAM, system memory and disk, adapting weight placement, compute precision and attention kernels to the available hardware. FreeVideo runs as a ComfyUI plugin, with launchers for Windows, macOS and Linux. Its core features include:
- **Hardware-adaptive execution**: Chooses the weight format for each GPU, int8 on GeForce RTX 30, 40 and 50 series cards and other Ampere cards, and FP8 on workstation and datacenter cards of newer architectures, and automatically probes the available attention kernels.
-- **Low-memory inference**: Weight streaming, asynchronous prefetching and chunked computation keep peak memory low; 8 GB of VRAM or more and 16 GB of RAM are recommended.
+- **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.
@@ -47,8 +45,6 @@ It coordinates VRAM, system memory and disk, adapting weight placement, compute
## Getting Started
-Requirements: an NVIDIA RTX 30 series or newer graphics card (professional cards of the same generation included; 8 GB of graphics memory or more recommended) and 16 GB of memory, or a Mac with Apple silicon (preview). GTX 10, GTX 16 and RTX 20 series cards and AMD or Intel graphics cannot run FreeVideo.
-
### Windows
1. [Download FreeVideo.exe](https://github.com/FlashML-org/FreeVideo/releases/latest/download/FreeVideo.exe) and run it.
diff --git a/README.zh-CN.md b/README.zh-CN.md
index c5bba336..c003ce39 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -9,11 +9,9 @@
| Windows | macOS | Linux | 社区实测 | 作品展示 | Discord | QQ 群 | 微信群 |
-系统要求:NVIDIA RTX 30 系列或更新的显卡(含同代专业卡,建议显存 8 GB 以上)和 16 GB 内存,或 Apple 芯片的 Mac(预览版)。GTX 10、GTX 16、RTX 20 系列以及 AMD、Intel 显卡无法运行 FreeVideo。
-
English · 中文
-FreeVideo 由 [Video DeltaNet(VDN)](https://openvdn.github.io/) 驱动,让 MiniMax H3 能够在计算能力 8.0 及以上的 NVIDIA 显卡(如 RTX 30 系列及更新,含同代专业卡)上本地运行,建议显存 8 GB 以上、内存 16 GB,并会根据硬件配置自动选择合适的加速路径。Apple 芯片 Mac 为预览版。
+FreeVideo 由 [Video DeltaNet(VDN)](https://openvdn.github.io/) 驱动,让 MiniMax H3 能够在计算能力 8.0 及以上的 NVIDIA 显卡(如 RTX 30 系列及更新,包括专业卡)上本地运行,最低只需 8GB 显存和 16GB 内存,并会根据硬件配置自动选择合适的加速路径。Apple 芯片 Mac 为预览版。
https://github.com/user-attachments/assets/ecda7d0d-7fbe-4e0c-8c29-8f3315bafc15
@@ -39,7 +37,7 @@ FreeVideo 是面向消费级显卡的 MiniMax H3 本地推理引擎,基于 [Op
它统一调度显存、内存与磁盘,并根据硬件条件调整权重放置、计算精度和注意力内核。FreeVideo 以 ComfyUI 插件形式提供,配备 Windows、macOS 和 Linux 启动器。主要特性包括:
- **硬件自适应**:针对不同显卡选择权重格式(GeForce RTX 30、40、50 系列和其他 Ampere 架构的显卡用 int8,更新架构的专业卡和数据中心卡用 FP8),并自动探测可用的注意力内核,无需手动配置。
-- **低显存推理**:通过权重流式加载、异步预取与分块计算降低峰值显存,建议显存 8 GB 以上、内存 16 GB。
+- **低显存推理**:通过权重流式加载、异步预取与分块计算降低峰值显存,最低只需 8GB 显存和 16GB 内存。
- **多模态输入**:支持文本、首帧、尾帧,以及图像、视频、音频参考输入。
- **社区 LoRA**:支持在工作流中使用 MiniMax H3 社区 LoRA。[查看效果对比](docs/LoRA.zh-CN.md)。
- **ComfyUI 集成**:在 ComfyUI 中提供专门的创作面板,支持二次采样和批量生成,并可浏览历史作品;需要更精细的控制时,可切换到节点视图,接入 LoRA 或自定义工作流。
@@ -47,8 +45,6 @@ FreeVideo 是面向消费级显卡的 MiniMax H3 本地推理引擎,基于 [Op
## 开始使用
-系统要求:NVIDIA RTX 30 系列或更新的显卡(含同代专业卡,建议显存 8 GB 以上)和 16 GB 内存,或 Apple 芯片的 Mac(预览版)。GTX 10、GTX 16、RTX 20 系列以及 AMD、Intel 显卡无法运行 FreeVideo。
-
### Windows
1. [下载 FreeVideo.exe](https://github.com/FlashML-org/FreeVideo/releases/latest/download/FreeVideo.exe) 并运行。
diff --git a/scripts/publish_release.py b/scripts/publish_release.py
index 8fef2370..1e2d5a82 100644
--- a/scripts/publish_release.py
+++ b/scripts/publish_release.py
@@ -119,9 +119,9 @@ def whats_new(raw):
def downloads(base, builds=None):
rows = ['| | |', '|---|---|',
- '| **Windows** 10/11 · NVIDIA RTX 30 series or newer | [FreeVideo.exe](%sFreeVideo.exe) |' % base,
+ '| **Windows** 10/11 · NVIDIA GPU | [FreeVideo.exe](%sFreeVideo.exe) |' % base,
'| **macOS** 14+ · Apple silicon | [FreeVideo-Mac-arm64.dmg](%sFreeVideo-Mac-arm64.dmg) |' % base,
- '| **Linux** x86_64 · NVIDIA RTX 30 series or newer | [FreeVideo-Linux-x86_64.AppImage](%sFreeVideo-Linux-x86_64.AppImage) |' % base]
+ '| **Linux** x86_64 · NVIDIA GPU | [FreeVideo-Linux-x86_64.AppImage](%sFreeVideo-Linux-x86_64.AppImage) |' % base]
if builds and WINDOWS_ARM64_CHANNEL in builds:
name = RELEASE_ASSETS[WINDOWS_ARM64_CHANNEL][0]
rows.append('| **Windows** ARM64 · NVIDIA GPU (experimental) | [%s](%s%s) |' % (name, base, name))
@@ -149,13 +149,13 @@ def stable_body(builds, tag):
'**Linux:** make the AppImage executable (`chmod +x FreeVideo-Linux-x86_64.AppImage`) and open it, as on '
'Windows. On a server or from a terminal, see [Linux](%s/blob/main/docs/Linux.md).' % PAGE,
'',
- '**Windows:** 需要 NVIDIA RTX 30 系列或更新的显卡。运行 FreeVideo.exe,选择已有的 ComfyUI 或安装新的 ComfyUI,点击 **安装并启动**。'
+ '**Windows:** 运行 FreeVideo.exe,选择已有的 ComfyUI 或安装新的 ComfyUI,点击 **安装并启动**。'
'离线包见[夸克网盘](https://pan.quark.cn/s/c51235b84618)或[魔搭](%s)。' % OFFLINE_MODELSCOPE,
'',
'**macOS:** 打开 DMG,将 FreeVideo.app 拖入「应用程序」。首次打开如需确认,请参考'
'[首次打开步骤](%s/blob/main/docs/Mac.zh-CN.md#首次打开)。' % PAGE,
'',
- '**Linux:** 需要 NVIDIA RTX 30 系列或更新的显卡。给 AppImage 加上可执行权限(`chmod +x FreeVideo-Linux-x86_64.AppImage`)后打开,用法与 Windows 相同。'
+ '**Linux:** 给 AppImage 加上可执行权限(`chmod +x FreeVideo-Linux-x86_64.AppImage`)后打开,用法与 Windows 相同。'
'在服务器或终端中使用请参考 [Linux 说明](%s/blob/main/docs/Linux.zh-CN.md)。' % PAGE,
'']
rows += whats_new(builds[CHANNEL]['raw'])
From d74e6a1f54dbf8087b20bb9d7fa49ee79f796143 Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 07:28:25 +0000
Subject: [PATCH 11/20] Prompt enhancement for pictures: a of the
prompt that the rewrite does not write is...
Prompt enhancement for pictures: a of the prompt that the rewrite does not write is added at the end with the note the video rewrite gives, instead of failing as incomplete
- Prompt enhancement for pictures: a of the prompt that the rewrite does not write is added at the end with the note the video rewrite gives, instead of failing as incomplete
- Prompt enhancement note: the media labels the engine added are written as the prompt box writes them, so the picture page names its own mentions
---
freevideo_engine/prompt_vlm/rules.py | 15 ++++++++++++++-
freevideo_engine/prompt_vlm/worker.py | 6 ++++--
web/prompt_enhance.js | 5 +++--
3 files changed, 21 insertions(+), 5 deletions(-)
diff --git a/freevideo_engine/prompt_vlm/rules.py b/freevideo_engine/prompt_vlm/rules.py
index 3020b566..51cbfdb1 100644
--- a/freevideo_engine/prompt_vlm/rules.py
+++ b/freevideo_engine/prompt_vlm/rules.py
@@ -803,6 +803,13 @@ def image_picture_text(value, row, ratio):
def image_caption(text, value):
"""The rewritten prompt from the model's reply: H3's JSON, Qwen's edit JSON or Qwen's plain text."""
+ return image_caption_added(text, value)[0]
+
+
+def image_caption_added(text, value):
+ """(caption, labels): the rewritten prompt, with one sentence at the end for each of the user's prompt
+ it does not write, and the labels added. A one-picture edit is often written about "the image" or "the photo", and
+ Qwen's published edit rewriting has fixed sentences with no picture in them (colorizing, restoring)."""
style = image_style(value)
if style in ('qwen-en', 'qwen-zh'):
caption = text
@@ -817,7 +824,13 @@ def image_caption(text, value):
given = {row['number'] for row in value['media']}
caption = PROSE_PICTURE.sub(lambda m: '' % m.group(1) if int(m.group(1)) in given else m.group(0),
caption.replace('\n', ' '))
- return validate_image(caption, value)
+ if not isinstance(caption, str) or not caption.strip():
+ return validate_image(caption, value), []
+ written = label_forms(caption, value)
+ missing = [each for each in dict.fromkeys('<%s %s>' % found for found in LABEL.findall(value['text'])) if each not in written]
+ if missing:
+ caption = caption.rstrip() + ' ' + ' '.join(ADDED_REFERENCE['reference'] % each for each in missing)
+ return validate_image(caption, value), missing
def validate_image(text, value):
diff --git a/freevideo_engine/prompt_vlm/worker.py b/freevideo_engine/prompt_vlm/worker.py
index 11875fa8..1dd21220 100644
--- a/freevideo_engine/prompt_vlm/worker.py
+++ b/freevideo_engine/prompt_vlm/worker.py
@@ -586,7 +586,7 @@ def run_mode(folder, value, stats):
def image(folder, value, stats):
"""One rewritten picture prompt, with the reference pictures in view; text leaves only via stdout."""
- from .rules import (IMAGE_INPUT_TOKENS, IMAGE_OUTPUT_TOKENS, ContextLength, InvalidOutput, image_caption,
+ from .rules import (IMAGE_INPUT_TOKENS, IMAGE_OUTPUT_TOKENS, ContextLength, InvalidOutput, image_caption_added,
image_instruction, image_picture_text, image_style, image_tokens, image_user_text)
limit = IMAGE_OUTPUT_TOKENS
stats.update(stage='imports', pid=os.getpid(), image_count=len(value['media']), mode='image', answer_tokens=limit,
@@ -630,7 +630,9 @@ def on_token(timing):
stats.setdefault('output_rejections', []).append(error.details)
raise error
try:
- caption = image_caption(text, value)
+ caption, added = image_caption_added(text, value)
+ if added:
+ stats['references_added'] = added
except ValueError as error:
if hasattr(error, 'details'):
stats.setdefault('output_rejections', []).append(error.details)
diff --git a/web/prompt_enhance.js b/web/prompt_enhance.js
index bdd1fa7b..f2fe15b2 100644
--- a/web/prompt_enhance.js
+++ b/web/prompt_enhance.js
@@ -315,7 +315,8 @@ export function createPromptEnhancer({node, input, editor, api, context, setText
};
// The feedback carries only the check's name, its category and whether the retry had run; the local counts stay on this computer.
const checkFacts = check => ({check: check.name, check_category: check.category, check_retried: check.retried});
- // Media labels the rewrite left out that the engine added at the end of the scene: labels only, as the box writes them.
+ // Media labels the rewrite left out that the engine added at the end of the scene: labels only; the note writes them
+ // as the box does (restore: "@Image2" on the picture page).
const addedOf = row => (Array.isArray(row?.diagnostics?.references_added) ? row.diagnostics.references_added : [])
.filter(each => typeof each === 'string' && /^<(?:Picture|Video|Audio) \d{1,2}>$/.test(each)).slice(0, 16);
const addedText = labels => labels.length === 1
@@ -642,7 +643,7 @@ export function createPromptEnhancer({node, input, editor, api, context, setText
const restored = restore(result.text);
if (edits !== versions.value.edits || !versions.accept(key, context(), display(restored), restored)) throw new Error('stale');
const added = addedOf(result);
- apply(); show(added.length ? addedText(added) : '', added.length ? 'note' : '', null, undefined, false);
+ apply(); show(added.length ? addedText(added.map(restore)) : '', added.length ? 'note' : '', null, undefined, false);
};
running = Promise.resolve().then(execute).catch(error => {
// A cancel says nothing. A rewrite the user's own edit outdated is not used, and the line says so (until the
From 9c1b5f40be994425de47656cd6a2432262e50640 Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 07:52:35 +0000
Subject: [PATCH 12/20] Editor sound separation and voice changes renew a lost
page session instead of failing as...
Editor sound separation and voice changes renew a lost page session instead of failing as unauthorized
---
web/agent_session.js | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/web/agent_session.js b/web/agent_session.js
index d4a49989..b0935d7c 100644
--- a/web/agent_session.js
+++ b/web/agent_session.js
@@ -26,7 +26,16 @@ export async function agentGet(api, path, options = {}) {
}
}
-// A restarted FreeVideo forgets page sessions: fetch a new one once and repeat.
+// A restarted FreeVideo forgets page sessions, and one is also gone after its hours run out or when another copy
+// on this computer replaced the cookie. Routes the page may drive without the token then answer 401 unauthorized
+// (the page never sends one); the page-only routes answer 403 page_session_required.
+async function forgotten(response) {
+ if (response.status !== 401 && response.status !== 403) return false;
+ const value = await response.clone().json().catch(() => null);
+ return value?.error?.code === (response.status === 401 ? 'unauthorized' : 'page_session_required');
+}
+
+// A forgotten page session is fetched again once and the call repeated.
export async function agentPost(api, path, body) {
return agentSend(api, 'POST', path, body);
}
@@ -36,9 +45,7 @@ export async function agentSend(api, method, path, body, headers = {}) {
const response = await api.fetchApi(path, {method, credentials: 'same-origin',
headers: {'Content-Type': 'application/json', ...headers, ...await agentHeaders(api)},
...(body === undefined ? {} : {body: JSON.stringify(body)})});
- if (response.status !== 403 || attempt) return response;
- const value = await response.clone().json().catch(() => null);
- if (value?.error?.code !== 'page_session_required') return response;
+ if (attempt || !await forgotten(response)) return response;
sessions.delete(api);
}
}
@@ -50,9 +57,7 @@ export async function agentUpload(api, path, body, signal) {
for (let attempt = 0; ; attempt++) {
const response = await api.fetchApi(path, {method: 'POST', credentials: 'same-origin', signal, body,
headers: {'Content-Type': 'application/octet-stream', ...await agentHeaders(api)}});
- if (response.status !== 403 || attempt) return response;
- const value = await response.clone().json().catch(() => null);
- if (value?.error?.code !== 'page_session_required') return response;
+ if (attempt || !await forgotten(response)) return response;
sessions.delete(api);
}
}
From 6028c176aa51a35c8d671f620893a529be32d12b Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 09:44:01 +0000
Subject: [PATCH 13/20] The GitHub mirror fetches the text encoder's ComfyUI
source under its earlier repository name
The mirror answers HTTP 403 for comfy-org/ComfyUI and still serves the same
repository as comfyanonymous/ComfyUI. Only the mirror's address changes:
GitHub itself is asked for the published address, and the download is still
checked against the pinned commit. Reports keep the mirror's address of that
name as one of FreeVideo's own repositories.
---
freevideo_engine/network.py | 10 +++++++++-
freevideo_engine/report_addresses.py | 1 +
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/freevideo_engine/network.py b/freevideo_engine/network.py
index dbaf2def..8cf4dd53 100644
--- a/freevideo_engine/network.py
+++ b/freevideo_engine/network.py
@@ -564,11 +564,19 @@ def route_environment(network, family, name, env=None, route=None):
return proxy.environment(env, selected, git=family == 'git')
+# Repositories the GitHub mirror refuses (HTTP 403) under their current name and still serves under an earlier name
+# that GitHub answers with the same repository. Only the mirror's address changes; GitHub itself is asked for the
+# published address, and a Git download is still checked against its pinned commit.
+MIRROR_PATHS = {'ghfast': {'/comfy-org/comfyui.git': '/comfyanonymous/ComfyUI.git'}}
+
+
def urls(network, family, original, env=None):
origin = SOURCES[family]['official']
if not original.startswith(origin + '/'):
return [('original', original)]
- return [(name, source_url(family, name, env) + original[len(origin):]) for name in ordered(network, family)]
+ path = original[len(origin):]
+ return [(name, source_url(family, name, env) + MIRROR_PATHS.get(name, {}).get(path.lower(), path))
+ for name in ordered(network, family)]
def event(network, **details):
diff --git a/freevideo_engine/report_addresses.py b/freevideo_engine/report_addresses.py
index df54059d..f80a9028 100644
--- a/freevideo_engine/report_addresses.py
+++ b/freevideo_engine/report_addresses.py
@@ -47,6 +47,7 @@ def _shipped():
try:
from . import network
addresses += [url for table in network.SOURCES.values() for url in table.values()]
+ addresses += [network.SOURCES['github'][name] + path for name, table in network.MIRROR_PATHS.items() for path in table.values()]
addresses += list(network.PYTHON_MIRRORS.values())
except Exception:
pass
From 93a543a0c9b561310b077aa8c461dd6493f1814f Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 09:49:41 +0000
Subject: [PATCH 14/20] Git downloads read English messages and move on to the
next source when a transfer stalls
Git translates its messages into the system language, so on a computer set to
Chinese a stalled mirror ("Operation too slow") was not recognised as a
network failure and installation stopped there without trying GitHub. The Git
processes FreeVideo starts now get English messages (LC_MESSAGES and LANGUAGE
only; character encoding and the user's settings are unchanged), and a stalled
transfer, an empty reply and a broken connection count as network failures in
any language.
---
freevideo_engine/network.py | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/freevideo_engine/network.py b/freevideo_engine/network.py
index 8cf4dd53..d92858b1 100644
--- a/freevideo_engine/network.py
+++ b/freevideo_engine/network.py
@@ -598,7 +598,15 @@ def retryable(message):
return any(s in message for s in ('timed out', 'timeout', 'connection', 'could not resolve', 'failed to download',
'failed to fetch', 'network is unreachable', 'ssl', 'tls', 'http status', 'status code',
'requested url returned error', 'no solution found', 'no matching distribution', 'could not find a version',
- 'rpc failed', 'early eof', 'unable to access', 'remote end hung up', 'couldn\'t connect', 'proxy'))
+ 'rpc failed', 'early eof', 'unable to access', 'remote end hung up', 'couldn\'t connect', 'proxy',
+ 'too slow', 'empty reply from server', 'recv failure', 'send failure', 'transfer closed'))
+
+
+# Git translates its own messages ("fatal: unable to access") into the system language, and the words above are
+# English. These two settings choose English messages only, for the Git processes FreeVideo starts: LC_MESSAGES covers
+# a system language set by LANG, LANGUAGE one set by LC_ALL. Character encoding and the user's own settings stay as
+# they are.
+GIT_ENGLISH = {'LC_MESSAGES': 'C', 'LANGUAGE': 'en'}
def connection_failure(message):
@@ -2332,7 +2340,7 @@ def clone(target, url, commit, *, sparse=None, partial=False, run=None, network=
target = Path(target)
network = installed_plan(env) if network is None else network
env = proxy_environment(env)
- env.update(GIT_TERMINAL_PROMPT='0', GIT_HTTP_LOW_SPEED_LIMIT='1024', GIT_HTTP_LOW_SPEED_TIME='20')
+ env.update(GIT_TERMINAL_PROMPT='0', GIT_HTTP_LOW_SPEED_LIMIT='1024', GIT_HTTP_LOW_SPEED_TIME='20', **GIT_ENGLISH)
# Git refuses a repository whose folder it cannot show to belong to the current user (a drive without owners, such as
# exFAT, a network or removable drive, or a folder made by another account) and then answers `git config` in it with
# "not in a git directory". The repositories handled here are FreeVideo's own; the setting reaches only these Git
From 5ead31b9f9ecced0dfaa980489d8835de7b40f23 Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 11:00:17 +0000
Subject: [PATCH 15/20] Launcher settings at 400 px: page and choice names stay
whole, and a row's button goes under its...
Launcher settings at 400 px: page and choice names stay whole, and a row's button goes under its words before a word would break
- Launcher settings at 400 px: page and choice names stay whole, and a row's button goes under its words before a word would break
- Launcher in Russian and Ukrainian: a one- or two-letter word stays on the line of the word after it, as on the page
- Launcher settings at 400 px: options that do not fit on one line stand as a list, one per row, and page tabs take two rows of equal tabs, instead of scrolling
- Launcher test: with a shot folder, the narrow Settings test also writes what it measured
- Launcher settings at 400 px: a row's button goes under its words only when they would not fit beside it; every choice reads in the text colour; page tabs that do not pair up stand one per row
---
freevideo_engine/launcher/FSegmented.qml | 63 +++++++++++++++-----
freevideo_engine/launcher/Main.qml | 73 ++++++++++++++++++------
2 files changed, 107 insertions(+), 29 deletions(-)
diff --git a/freevideo_engine/launcher/FSegmented.qml b/freevideo_engine/launcher/FSegmented.qml
index c3fc4a27..b8bcb2b2 100644
--- a/freevideo_engine/launcher/FSegmented.qml
+++ b/freevideo_engine/launcher/FSegmented.qml
@@ -3,35 +3,68 @@ import QtQuick.Controls.Basic
import QtQuick.Layouts
// One choice from a short list: [{value, label}]. Emits picked(value).
-// Segments share the width equally; a raised pill slides to the current one.
+// Segments share the width equally; a raised pill slides to the current one. When the names do not fit that way
+// (a narrow window in a long language), each segment takes the width of its name with less padding. When even that
+// does not fit, nothing is cut or scrolled: a set of options stands as a list, one per row ("list"); a row of page tabs
+// (wrap: "rows") takes two rows of equal tabs when they pair up evenly, else one per row.
Rectangle {
id: group
property var options: []
property string current: ""
property bool compact: false
+ // What to become when the names do not fit on one line: "list" (one option per row) or "rows" (two rows).
+ property string wrap: "list"
signal picked(string value)
readonly property int currentIndex: {
for (var i = 0; i < options.length; ++i)
if (options[i].value === current) return i
return -1
}
- implicitHeight: compact ? theme.heightSm - 4 : theme.heightSm + 2
+ readonly property int roomyPad: compact ? 8 : 12
+ readonly property int tightPad: 6
+ // The names' own widths as drawn (a Text's implicit width is its whole name, elided or not), in total and the widest.
+ readonly property var names: {
+ var total = 0, widest = 0
+ for (var i = 0; i < repeater.count; ++i) {
+ var item = repeater.itemAt(i)
+ if (!item) continue
+ var w = Math.ceil(item.contentItem.implicitWidth) + 1
+ total += w; widest = Math.max(widest, w)
+ }
+ return {total: total, widest: widest}
+ }
+ readonly property real room: width - 6
+ readonly property real gaps: grid.columnSpacing * Math.max(0, options.length - 1)
+ // Equal segments only while the widest name fits its equal share; then names' own widths; then the wrapped forms.
+ readonly property string mode: options.length * (names.widest + 2 * roomyPad) + gaps <= room ? "even"
+ : names.total + options.length * 2 * tightPad + gaps <= room ? "tight" : wrap
+ // Page tabs that do not fit: two rows only when they pair up evenly (four tabs make two by two); otherwise one per row.
+ readonly property int columns: mode === "list" ? 1
+ : mode === "rows" ? (options.length >= 4 && options.length % 2 === 0 ? options.length / 2 : 1) : Math.max(1, options.length)
+ readonly property int lines: Math.ceil(Math.max(1, options.length) / columns)
+ readonly property real cell: compact ? theme.heightSm - 10 : theme.heightSm - 4
+ implicitHeight: lines * cell + (lines - 1) * grid.rowSpacing + 6
implicitWidth: Math.max(1, options.length) * (compact ? 48 : 104) + 6
radius: theme.radiusSm + 1; color: theme.bg; border.color: theme.border
Rectangle {
id: thumb
- visible: group.currentIndex >= 0
- readonly property real slot: (row.width - row.spacing * (group.options.length - 1)) / Math.max(1, group.options.length)
- x: row.x + group.currentIndex * (slot + row.spacing); y: row.y
- width: slot; height: row.height
+ visible: target !== null
+ // The pill sits on the current segment, wherever the segments stand.
+ readonly property Item target: group.currentIndex >= 0 && group.currentIndex < repeater.count ? repeater.itemAt(group.currentIndex) : null
+ x: grid.x + (target ? target.x : 0); y: grid.y + (target ? target.y : 0)
+ width: target ? target.width : 0; height: target ? target.height : 0
radius: theme.radiusSm - 2; color: theme.hover
border.color: theme.sheen
Behavior on x { NumberAnimation { duration: 180; easing.type: Easing.OutCubic } }
+ Behavior on y { NumberAnimation { duration: 180; easing.type: Easing.OutCubic } }
+ Behavior on width { NumberAnimation { duration: 180; easing.type: Easing.OutCubic } }
}
- RowLayout {
- id: row
- anchors.fill: parent; anchors.margins: 3; spacing: 2
+ GridLayout {
+ id: grid
+ anchors.fill: parent; anchors.margins: 3; columnSpacing: 2; rowSpacing: 2
+ columns: group.columns
Repeater {
+ id: repeater
model: group.options
delegate: Button {
id: segment
@@ -39,15 +72,19 @@ Rectangle {
required property int index
readonly property bool active: group.currentIndex === index
objectName: group.objectName ? group.objectName + "-" + modelData.value : ""
- Layout.fillWidth: true; Layout.fillHeight: true; Layout.preferredWidth: 1
- padding: 0; leftPadding: group.compact ? 8 : 12; rightPadding: leftPadding
+ Layout.fillWidth: true; Layout.preferredHeight: group.cell
+ // Even, list and rows: equal widths; tight: each name's own width.
+ Layout.preferredWidth: group.mode === "tight" ? contentItem.implicitWidth + leftPadding + rightPadding : 1
+ padding: 0; leftPadding: group.mode === "tight" ? group.tightPad : group.roomyPad; rightPadding: leftPadding
hoverEnabled: true
contentItem: Text {
text: segment.modelData.label
font.pixelSize: group.compact ? theme.micro : theme.body - 1
font.weight: segment.active ? Font.DemiBold : Font.Medium
- color: segment.active || segment.hovered ? theme.text : theme.muted
- horizontalAlignment: Text.AlignHCenter; verticalAlignment: Text.AlignVCenter
+ // Every choice reads as text; grey is only for a set that cannot be used now.
+ color: group.enabled ? theme.text : theme.disabled
+ // A list reads from the left, like the rows of a settings list.
+ horizontalAlignment: group.columns === 1 && group.options.length > 1 ? Text.AlignLeft : Text.AlignHCenter; verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
Behavior on color { ColorAnimation { duration: 120 } }
}
diff --git a/freevideo_engine/launcher/Main.qml b/freevideo_engine/launcher/Main.qml
index 737b97e9..52cd5864 100644
--- a/freevideo_engine/launcher/Main.qml
+++ b/freevideo_engine/launcher/Main.qml
@@ -84,8 +84,41 @@ ApplicationWindow {
return whole.slice(0, whole.length - name.length - 1) + hold(name) + whole.slice(-1)
})
}
+ // Russian and Ukrainian: a one- or two-letter preposition, conjunction or negation stays on the line of the word after
+ // it (the page's SHORT_WORDS in web/i18n.js). Done where the text is shown; the language files keep plain spaces.
+ readonly property var shortWords: ({
+ ru: ["в", "во", "к", "ко", "с", "со", "о", "об", "от", "до", "по", "за", "на", "из", "у", "и", "а", "но", "да", "не", "ни"],
+ uk: ["в", "у", "з", "із", "зі", "о", "до", "на", "по", "за", "від", "і", "й", "а", "та", "чи", "не", "ні"]
+ })
+ function holdShortWords(text, language) {
+ const words = shortWords[String(language || uiLanguage).split("-")[0]]
+ if (!words) return text
+ const list = words.slice().sort((a, b) => b.length - a.length).join("|")
+ const pattern = new RegExp("(^|[^A-Za-z0-9\u00c0-\u024f\u0400-\u04ff\u2019'\-])(" + list + ") ", "gi")
+ let out = String(text ?? ""), before
+ // Two short words in a row ("и в") are joined one pass at a time.
+ do { before = out; out = out.replace(pattern, function (whole, lead, word) { return lead + word + "\u00a0" }) } while (out !== before)
+ return out
+ }
+ // Whether words fit beside a button in a row of the given width: every word whole on its line and the words in at most
+ // two lines (ideographs break between characters). The row's button goes under the words otherwise.
+ FontMetrics { id: bodyMetrics; font.family: backend.fontFamily; font.pixelSize: theme.body }
+ FontMetrics { id: microMetrics; font.family: backend.fontFamily; font.pixelSize: theme.micro }
+ function fitsBeside(room, title, note) {
+ if (room <= 0) return false
+ const ideographs = /[\u2e80-\u9fff\uf900-\ufaff]/
+ const fits = (text, metrics) => {
+ const words = String(text || "").split(/[ \t\n]+/).filter(w => w)
+ for (const word of words) {
+ const widest = ideographs.test(word) ? Math.max(...Array.from(word).map(c => metrics.advanceWidth(c))) : metrics.advanceWidth(word)
+ if (widest > room) return false
+ }
+ return metrics.advanceWidth(String(text || "")) <= room * 2
+ }
+ return fits(title, bodyMetrics) && fits(note, microMetrics)
+ }
function t(en, zh, values) {
- return holdNames(translated(en, zh, values))
+ return holdShortWords(holdNames(translated(en, zh, values)))
}
function translated(english, chinese, values) {
if (uiLanguage === "zh-Hans") return fill(chinese, values)
@@ -1473,6 +1506,8 @@ ApplicationWindow {
anchors.fill: parent; spacing: 18
RowLayout { Layout.fillWidth: true; FText { text: t("Settings", "设置"); font.pixelSize: theme.section + 2; font.weight: Font.DemiBold; Layout.fillWidth: true } FButton { text: "×"; Accessible.name: t("Close settings", "关闭设置"); implicitWidth: 36; implicitHeight: theme.height; leftPadding: 4; rightPadding: 4; flat: true; onClicked: settingsOpen = false } }
FSegmented {
+ // Page tabs: two rows of equal tabs when their names do not fit on one.
+ objectName: "settingsTabs"; wrap: "rows"
Layout.fillWidth: true; current: settingsTab; onPicked: function(value) { settingsTab = value }
options: [{value: "downloads", label: t("Downloads", "下载")}, {value: "general", label: t("Preferences", "偏好")}, {value: "advanced", label: t("Environment", "环境")}]
}
@@ -1503,19 +1538,21 @@ ApplicationWindow {
FGroup {
Layout.fillWidth: true; title: t("Download source", "下载源")
FSegmented {
- Layout.fillWidth: true; current: s.source; onPicked: function(value) { backend.selectSource(value) }
+ objectName: "sourceChoice"; Layout.fillWidth: true; current: s.source; onPicked: function(value) { backend.selectSource(value) }
options: [{value: "auto", label: t("Automatic", "自动选择")}, {value: "official", label: "Hugging Face"}, {value: "hf-mirror", label: t("HF Mirror", "HF 镜像")}, {value: "modelscope", label: t("ModelScope", "魔搭")}]
}
FText { text: t("Downloads continue from the new source, keeping progress where supported.", "切换后继续下载,支持续传的文件会保留进度。"); color: theme.muted; font.pixelSize: theme.micro; Layout.fillWidth: true }
FDivider {}
- RowLayout {
- Layout.fillWidth: true; spacing: 12
+ GridLayout {
+ // The button goes under the words when beside them a word would have to break.
+ Layout.fillWidth: true; columnSpacing: 12; rowSpacing: 8
+ columns: fitsBeside(width - speedTestButton.implicitWidth - columnSpacing, speedTitle.text, speedNote.text) ? 2 : 1
ColumnLayout {
Layout.fillWidth: true; spacing: 2
- FText { text: t("Connection speed", "连接速度"); Layout.fillWidth: true }
- FText { text: s.probe.status === "running" ? t("Testing sources: {done}/{total}", "正在测速:{done}/{total}", {done: s.probe.progress?.done || 0, total: s.probe.progress?.total || "…"}) : t("Compare sources on this computer.", "比较本机下载源速度。"); color: theme.muted; font.pixelSize: theme.micro; Layout.fillWidth: true }
+ FText { id: speedTitle; text: t("Connection speed", "连接速度"); Layout.fillWidth: true }
+ FText { id: speedNote; text: s.probe.status === "running" ? t("Testing sources: {done}/{total}", "正在测速:{done}/{total}", {done: s.probe.progress?.done || 0, total: s.probe.progress?.total || "…"}) : t("Compare sources on this computer.", "比较本机下载源速度。"); color: theme.muted; font.pixelSize: theme.micro; Layout.fillWidth: true }
}
- FButton { text: s.probe.status === "running" ? t("Testing…", "测速中…") : t("Test speed", "测速"); implicitHeight: theme.heightSm; font.pixelSize: theme.micro + 1; enabled: s.probe.status !== "running"; onClicked: backend.speedTest() }
+ FButton { id: speedTestButton; objectName: "speedTestButton"; text: s.probe.status === "running" ? t("Testing…", "测速中…") : t("Test speed", "测速"); implicitHeight: theme.heightSm; font.pixelSize: theme.micro + 1; enabled: s.probe.status !== "running"; onClicked: backend.speedTest() }
}
FText { visible: !!s.probe.error; text: s.probe.error || ""; font.pixelSize: theme.micro; color: theme.danger; Layout.fillWidth: true }
FText { visible: !!s.probe.network_unavailable; text: t("No sources reachable. Check your network or connection mode.", "下载源均无法连接,请检查网络或切换连接模式。"); font.pixelSize: theme.micro; color: theme.danger; Layout.fillWidth: true }
@@ -1534,10 +1571,11 @@ ApplicationWindow {
Layout.fillWidth: true; title: t("Hugging Face token · optional", "Hugging Face 令牌 · 可选")
FField { Layout.fillWidth: true; echoMode: TextInput.Password; placeholderText: s.token_set ? t("Token set for this session", "本次已设置令牌") : "hf_…"; enabled: !s.busy; onEditingFinished: backend.edit("token", text) }
FText { objectName: "tokenError"; visible: s.field_error.key === "token"; text: visible ? s.field_error.message : ""; color: theme.danger; font.pixelSize: theme.micro; Layout.fillWidth: true }
- RowLayout {
- Layout.fillWidth: true; spacing: 12
- FText { text: t("Use your account's download quota. Kept for this session only.", "使用账号下载额度,仅本次打开有效。"); color: theme.muted; font.pixelSize: theme.micro; Layout.fillWidth: true }
- FButton { text: t("Get a token ↗", "获取令牌 ↗"); flat: true; implicitHeight: theme.heightSm - 2; font.pixelSize: theme.micro + 1; onClicked: backend.link("https://huggingface.co/settings/tokens") }
+ GridLayout {
+ Layout.fillWidth: true; columnSpacing: 12; rowSpacing: 4
+ columns: fitsBeside(width - tokenLinkButton.implicitWidth - columnSpacing, "", tokenNote.text) ? 2 : 1
+ FText { id: tokenNote; text: t("Use your account's download quota. Kept for this session only.", "使用账号下载额度,仅本次打开有效。"); color: theme.muted; font.pixelSize: theme.micro; Layout.fillWidth: true }
+ FButton { id: tokenLinkButton; objectName: "tokenLinkButton"; text: t("Get a token ↗", "获取令牌 ↗"); flat: true; implicitHeight: theme.heightSm - 2; font.pixelSize: theme.micro + 1; onClicked: backend.link("https://huggingface.co/settings/tokens") }
}
}
}
@@ -1557,14 +1595,17 @@ ApplicationWindow {
}
}
FDivider {}
- RowLayout {
- Layout.fillWidth: true; spacing: 12
+ GridLayout {
+ // Beside the words while they keep a fair width; under them in a narrow window, so no word breaks.
+ objectName: "updatesRow"
+ Layout.fillWidth: true; columnSpacing: 12; rowSpacing: 8
+ columns: fitsBeside(width - checkUpdatesButton.implicitWidth - columnSpacing, updatesTitle.text, updatesNote.text) ? 2 : 1
ColumnLayout {
Layout.fillWidth: true; spacing: 2
- FText { text: t("Updates", "更新"); Layout.fillWidth: true }
- FText { text: t("Settings are kept in Documents across updates.", "设置保存在文档目录中,更新后保留。"); color: theme.muted; font.pixelSize: theme.micro; Layout.fillWidth: true }
+ FText { id: updatesTitle; text: t("Updates", "更新"); Layout.fillWidth: true }
+ FText { id: updatesNote; text: t("Settings are kept in Documents across updates.", "设置保存在文档目录中,更新后保留。"); color: theme.muted; font.pixelSize: theme.micro; Layout.fillWidth: true }
}
- FButton { objectName: "checkUpdatesButton"; text: s.update.check_requested ? s.update.check_text : t("Check for updates", "检查更新"); implicitHeight: theme.heightSm; font.pixelSize: theme.micro + 1; onClicked: { manualUpdate = true; backend.checkUpdates("") } }
+ FButton { id: checkUpdatesButton; objectName: "checkUpdatesButton"; text: s.update.check_requested ? s.update.check_text : t("Check for updates", "检查更新"); implicitHeight: theme.heightSm; font.pixelSize: theme.micro + 1; onClicked: { manualUpdate = true; backend.checkUpdates("") } }
}
FButton { text: t("Version & release notes", "版本与更新说明") + " · " + releaseVersion(currentRelease); flat: true; Layout.fillWidth: true; onClicked: releaseNotesOpen = true }
}
From 40572290018e3087541b76bb83601afa747c7773 Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 11:00:28 +0000
Subject: [PATCH 16/20] Launcher choices take the keyboard: one Tab stop per
set, arrow keys move between choices and...
Launcher choices take the keyboard: one Tab stop per set, arrow keys move between choices and choose, Home and End go to the ends
- Launcher choices take the keyboard: one Tab stop per set, arrow keys move between choices and choose, Home and End go to the ends
- Launcher choices: connection mode and download source pick a keyboard choice where the keys stop (500 ms) or when focus leaves the set, once
- Launcher choices: closing Settings picks a waiting keyboard choice before it closes; coming back to the set's own value picks nothing
---
freevideo_engine/launcher/FSegmented.qml | 55 +++++++++++++++++++++++-
freevideo_engine/launcher/Main.qml | 7 ++-
2 files changed, 58 insertions(+), 4 deletions(-)
diff --git a/freevideo_engine/launcher/FSegmented.qml b/freevideo_engine/launcher/FSegmented.qml
index b8bcb2b2..766ad004 100644
--- a/freevideo_engine/launcher/FSegmented.qml
+++ b/freevideo_engine/launcher/FSegmented.qml
@@ -14,12 +14,40 @@ Rectangle {
property bool compact: false
// What to become when the names do not fit on one line: "list" (one option per row) or "rows" (two rows).
property string wrap: "list"
+ // Milliseconds a keyboard choice waits before it is picked, for sets whose choice starts something (a download
+ // source): the choice shows at once, and only where the keys stop (or when focus leaves the set) is it picked once.
+ property int settle: 0
signal picked(string value)
+ // A keyboard choice not picked yet, shown as chosen meanwhile; cleared when the set's own value reaches it.
+ property string pending: ""
readonly property int currentIndex: {
+ var value = pending !== "" ? pending : current
for (var i = 0; i < options.length; ++i)
- if (options[i].value === current) return i
+ if (options[i].value === value) return i
return -1
}
+ onCurrentChanged: if (pending === current) pending = ""
+ // Pick the waiting choice once; nothing when the keys came back to the set's own value.
+ function commit() {
+ if (pending === "" || pending === current) { pending = ""; return }
+ picked(pending)
+ forgetTimer.restart()
+ }
+ function flush() {
+ if (!settleTimer.running) return
+ settleTimer.stop()
+ commit()
+ }
+ Timer { id: settleTimer; interval: group.settle; onTriggered: group.commit() }
+ // A pick the set's value never followed (a save that failed) stops being shown after a while.
+ Timer { id: forgetTimer; interval: 2000; onTriggered: group.pending = "" }
+ // Focus went to something outside the set (Tab, a click elsewhere): pick the waiting choice. The view that holds the
+ // set calls flush() itself before it closes.
+ function focusLeft() {
+ for (var i = 0; i < repeater.count; ++i)
+ if (repeater.itemAt(i) && repeater.itemAt(i).activeFocus) return
+ flush()
+ }
readonly property int roomyPad: compact ? 8 : 12
readonly property int tightPad: 6
// The names' own widths as drawn (a Text's implicit width is its whole name, elided or not), in total and the widest.
@@ -43,6 +71,25 @@ Rectangle {
: mode === "rows" ? (options.length >= 4 && options.length % 2 === 0 ? options.length / 2 : 1) : Math.max(1, options.length)
readonly property int lines: Math.ceil(Math.max(1, options.length) / columns)
readonly property real cell: compact ? theme.heightSm - 10 : theme.heightSm - 4
+ // The keyboard: the set is one Tab stop (the chosen one, else the first). On a line ←/→, in a list ↑/↓, in two rows
+ // also ↑/↓ by a row; Home and End go to the ends; moving wraps and chooses, as radio buttons do.
+ readonly property int tabStop: currentIndex >= 0 ? currentIndex : 0
+ function keyMove(from, event) {
+ var n = options.length, to = -1
+ var list = columns === 1 && n > 1
+ if (event.key === Qt.Key_Right && !list) to = (from + 1) % n
+ else if (event.key === Qt.Key_Left && !list) to = (from - 1 + n) % n
+ else if (event.key === Qt.Key_Down && (list || columns < n)) to = (from + (list ? 1 : columns)) % n
+ else if (event.key === Qt.Key_Up && (list || columns < n)) to = (from - (list ? 1 : columns) + n * columns) % n
+ else if (event.key === Qt.Key_Home) to = 0
+ else if (event.key === Qt.Key_End) to = n - 1
+ if (to < 0 || n < 2) return
+ event.accepted = true
+ repeater.itemAt(to).forceActiveFocus(Qt.TabFocusReason)
+ if (to === currentIndex) return
+ if (settle > 0) { forgetTimer.stop(); pending = options[to].value; settleTimer.restart() }
+ else picked(options[to].value)
+ }
implicitHeight: lines * cell + (lines - 1) * grid.rowSpacing + 6
implicitWidth: Math.max(1, options.length) * (compact ? 48 : 104) + 6
radius: theme.radiusSm + 1; color: theme.bg; border.color: theme.border
@@ -77,6 +124,10 @@ Rectangle {
Layout.preferredWidth: group.mode === "tight" ? contentItem.implicitWidth + leftPadding + rightPadding : 1
padding: 0; leftPadding: group.mode === "tight" ? group.tightPad : group.roomyPad; rightPadding: leftPadding
hoverEnabled: true
+ // Only one choice of the set takes Tab; the others are reached with the arrow keys (or a click).
+ focusPolicy: index === group.tabStop ? Qt.StrongFocus : Qt.ClickFocus
+ Keys.onPressed: function(event) { group.keyMove(index, event) }
+ onActiveFocusChanged: if (!activeFocus) Qt.callLater(group.focusLeft)
contentItem: Text {
text: segment.modelData.label
font.pixelSize: group.compact ? theme.micro : theme.body - 1
@@ -92,7 +143,7 @@ Rectangle {
radius: theme.radiusSm - 2; color: "transparent"
border.width: segment.visualFocus ? 2 : 0; border.color: theme.accent
}
- onClicked: group.picked(modelData.value)
+ onClicked: { settleTimer.stop(); group.pending = ""; group.picked(modelData.value) }
Accessible.role: Accessible.RadioButton
Accessible.name: modelData.label
Accessible.checked: active
diff --git a/freevideo_engine/launcher/Main.qml b/freevideo_engine/launcher/Main.qml
index 52cd5864..76455b65 100644
--- a/freevideo_engine/launcher/Main.qml
+++ b/freevideo_engine/launcher/Main.qml
@@ -1500,6 +1500,8 @@ ApplicationWindow {
FPopup {
id: settings; objectName: "settingsDialog"
visible: settingsOpen; onClosed: settingsOpen = false
+ // Closing Settings leaves its sets of choices: a keyboard choice still waiting is picked first, as leaving with Tab.
+ onAboutToHide: { proxyModeChoice.flush(); sourceChoiceGroup.flush() }
width: Math.min(700, win.width-50); height: Math.min(700, win.height-50)
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
ColumnLayout {
@@ -1526,7 +1528,8 @@ ApplicationWindow {
FGroup {
Layout.fillWidth: true; title: t("Connection", "连接模式")
FSegmented {
- objectName: "proxyMode"; Layout.fillWidth: true; current: s.proxy_mode
+ // A keyboard choice is picked where the keys stop: each pick tests and switches the connection.
+ id: proxyModeChoice; objectName: "proxyMode"; settle: 500; Layout.fillWidth: true; current: s.proxy_mode
onPicked: function(value) { backend.selectProxyMode(value) }
options: [{value: "auto", label: t("Auto (recommended)", "自动(推荐)")}, {value: "proxy", label: t("Proxy only", "仅代理")}, {value: "direct", label: t("Direct only", "仅直连")}]
}
@@ -1538,7 +1541,7 @@ ApplicationWindow {
FGroup {
Layout.fillWidth: true; title: t("Download source", "下载源")
FSegmented {
- objectName: "sourceChoice"; Layout.fillWidth: true; current: s.source; onPicked: function(value) { backend.selectSource(value) }
+ id: sourceChoiceGroup; objectName: "sourceChoice"; settle: 500; Layout.fillWidth: true; current: s.source; onPicked: function(value) { backend.selectSource(value) }
options: [{value: "auto", label: t("Automatic", "自动选择")}, {value: "official", label: "Hugging Face"}, {value: "hf-mirror", label: t("HF Mirror", "HF 镜像")}, {value: "modelscope", label: t("ModelScope", "魔搭")}]
}
FText { text: t("Downloads continue from the new source, keeping progress where supported.", "切换后继续下载,支持续传的文件会保留进度。"); color: theme.muted; font.pixelSize: theme.micro; Layout.fillWidth: true }
From 72e26502e49c547d4c86eb8dd8be96b94190f0ea Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 11:00:29 +0000
Subject: [PATCH 17/20] Launcher choices take all four arrow keys, as radio
buttons do: on a line up and down move too...
Launcher choices take all four arrow keys, as radio buttons do: on a line up and down move too, in a list left and right too; page tabs keep left and right on a line
---
freevideo_engine/launcher/FSegmented.qml | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/freevideo_engine/launcher/FSegmented.qml b/freevideo_engine/launcher/FSegmented.qml
index 766ad004..9c20491d 100644
--- a/freevideo_engine/launcher/FSegmented.qml
+++ b/freevideo_engine/launcher/FSegmented.qml
@@ -71,13 +71,17 @@ Rectangle {
: mode === "rows" ? (options.length >= 4 && options.length % 2 === 0 ? options.length / 2 : 1) : Math.max(1, options.length)
readonly property int lines: Math.ceil(Math.max(1, options.length) / columns)
readonly property real cell: compact ? theme.heightSm - 10 : theme.heightSm - 4
- // The keyboard: the set is one Tab stop (the chosen one, else the first). On a line ←/→, in a list ↑/↓, in two rows
- // also ↑/↓ by a row; Home and End go to the ends; moving wraps and chooses, as radio buttons do.
+ // The keyboard: the set is one Tab stop (the chosen one, else the first). A set of choices takes all four arrows, as
+ // radio buttons do: ←/↑ the previous choice, →/↓ the next, however it stands. Page tabs (wrap: "rows") take ←/→ on a
+ // line, ↑/↓ one per row, and in two rows also ↑/↓ by a row. Home and End go to the ends; moving wraps and chooses.
readonly property int tabStop: currentIndex >= 0 ? currentIndex : 0
function keyMove(from, event) {
var n = options.length, to = -1
var list = columns === 1 && n > 1
- if (event.key === Qt.Key_Right && !list) to = (from + 1) % n
+ var choices = wrap !== "rows"
+ if (choices && (event.key === Qt.Key_Right || event.key === Qt.Key_Down)) to = (from + 1) % n
+ else if (choices && (event.key === Qt.Key_Left || event.key === Qt.Key_Up)) to = (from - 1 + n) % n
+ else if (event.key === Qt.Key_Right && !list) to = (from + 1) % n
else if (event.key === Qt.Key_Left && !list) to = (from - 1 + n) % n
else if (event.key === Qt.Key_Down && (list || columns < n)) to = (from + (list ? 1 : columns)) % n
else if (event.key === Qt.Key_Up && (list || columns < n)) to = (from - (list ? 1 : columns) + n * columns) % n
From 4aaa70a5e33eb02c6e8fa17d7aa8c423653443a7 Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 11:17:29 +0000
Subject: [PATCH 18/20] Prompt rewrite: when closing the listed programs cannot
free enough graphics memory, say how...
Prompt rewrite: when closing the listed programs cannot free enough graphics memory, say how much more is needed
- Prompt rewrite: when closing the listed programs cannot free enough graphics memory, say how much more is needed
- Rewrite memory shortfall: the sentence in eight more languages, and a page test
- Prompt rewrite line: Russian and Ukrainian short words stay with the next word
---
freevideo_engine/prompt_vlm/service.py | 6 +++++-
web/locales/de.json | 3 +++
web/locales/es.json | 3 +++
web/locales/fr.json | 3 +++
web/locales/id.json | 3 +++
web/locales/pt-BR.json | 3 +++
web/locales/ru.json | 3 +++
web/locales/tr.json | 3 +++
web/locales/uk.json | 3 +++
web/locales/zh-Hant.json | 5 ++++-
web/prompt_enhance.js | 27 ++++++++++++++++++++++----
11 files changed, 56 insertions(+), 6 deletions(-)
diff --git a/freevideo_engine/prompt_vlm/service.py b/freevideo_engine/prompt_vlm/service.py
index 75840d69..e092c23d 100644
--- a/freevideo_engine/prompt_vlm/service.py
+++ b/freevideo_engine/prompt_vlm/service.py
@@ -658,7 +658,11 @@ def infer(self, root, machine, descriptor, value, *, wait=False):
freed=waited['freed'] + freed)
self.progress(dict(gpu_wait=dict(waited)))
if not freed:
- self.progress(dict(phase='failed', error='out_of_memory', gpu_holders=self.gpu_holders(machine)))
+ failure = dict(phase='failed', error='out_of_memory', gpu_holders=self.gpu_holders(machine))
+ # How much more the model needed than it could use: the page says when closing the listed programs cannot free it.
+ if short is not None:
+ failure['gpu_short_bytes'] = short
+ self.progress(failure)
return
with self.mutex:
for key in ('error', 'exception', 'error_details', 'oom_source', 'gpu_holders', 'gpu_short_bytes'):
diff --git a/web/locales/de.json b/web/locales/de.json
index eec56218..f37d993d 100644
--- a/web/locales/de.json
+++ b/web/locales/de.json
@@ -3445,7 +3445,10 @@
"Not enough free memory to prepare this model. Close other programs, then resume.": "Nicht genügend freier Arbeitsspeicher, um dieses Modell vorzubereiten. Schließen Sie andere Programme und setzen Sie dann fort.",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs and rewrite again, or use the original.": "Nicht genügend Grafikspeicher zum Umschreiben. Belegt durch: {programs}. Schließen Sie die aufgeführten Programme und starten Sie das Umschreiben erneut oder verwenden Sie das Original.",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs before rewriting again.": "Nicht genügend Grafikspeicher zum Umschreiben. Belegt durch: {programs}. Schließen Sie die aufgeführten Programme, bevor Sie erneut umschreiben.",
+ "Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed.": "Nicht genügend Grafikspeicher zum Umschreiben: Es fehlen etwa {short} GiB, auch wenn andere Programme geschlossen sind.",
+ "Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed. Use the original.": "Nicht genügend Grafikspeicher zum Umschreiben: Es fehlen etwa {short} GiB, auch wenn andere Programme geschlossen sind. Verwenden Sie das Original.",
"Not enough graphics memory to separate this sound.": "Nicht genügend Grafikspeicher, um diesen Ton zu trennen.",
+ "Not enough graphics memory to write the prompt: about {short} GiB more is needed, even with other programs closed. Write the prompt yourself instead.": "Nicht genügend Grafikspeicher zum Erstellen des Prompts: Es fehlen etwa {short} GiB, auch wenn andere Programme geschlossen sind. Schreiben Sie den Prompt stattdessen selbst.",
"Not enough graphics memory, so this will be slow.": "Nicht genügend Grafikspeicher, daher wird dies langsam sein.",
"Not enough graphics memory. Close other GPU apps and try again.": "Nicht genügend Grafikspeicher. Schließen Sie andere GPU-Anwendungen und versuchen Sie es dann erneut.",
"Not enough graphics memory. In use: {programs}. Close them and try again.": "Nicht genügend Grafikspeicher. Belegt durch: {programs}. Schließen Sie diese Programme und versuchen Sie es erneut.",
diff --git a/web/locales/es.json b/web/locales/es.json
index caa81187..feb42ae5 100644
--- a/web/locales/es.json
+++ b/web/locales/es.json
@@ -3433,7 +3433,10 @@
"Not enough free memory to prepare this model. Close other programs, then resume.": "No hay memoria libre suficiente para preparar este modelo. Cierre otros programas y reanude.",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs and rewrite again, or use the original.": "No hay suficiente memoria gráfica para reescribir. En uso: {programs}. Cierre los programas indicados y vuelva a reescribir, o use el original.",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs before rewriting again.": "No hay suficiente memoria gráfica para reescribir. En uso: {programs}. Cierre los programas indicados antes de volver a reescribir.",
+ "Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed.": "No hay suficiente memoria gráfica para reescribir: faltan unos {short} GiB, incluso con los demás programas cerrados.",
+ "Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed. Use the original.": "No hay suficiente memoria gráfica para reescribir: faltan unos {short} GiB, incluso con los demás programas cerrados. Use el original.",
"Not enough graphics memory to separate this sound.": "No hay suficiente memoria gráfica para separar este sonido.",
+ "Not enough graphics memory to write the prompt: about {short} GiB more is needed, even with other programs closed. Write the prompt yourself instead.": "No hay suficiente memoria gráfica para generar el prompt: faltan unos {short} GiB, incluso con los demás programas cerrados. Escriba el prompt usted mismo.",
"Not enough graphics memory, so this will be slow.": "No hay suficiente memoria gráfica, por lo que será lento.",
"Not enough graphics memory. Close other GPU apps and try again.": "No hay suficiente memoria gráfica. Cierre otras aplicaciones de GPU e inténtelo de nuevo.",
"Not enough graphics memory. In use: {programs}. Close them and try again.": "No hay suficiente memoria gráfica. En uso: {programs}. Ciérrelos e inténtelo de nuevo.",
diff --git a/web/locales/fr.json b/web/locales/fr.json
index 08c4ea36..435ab7ff 100644
--- a/web/locales/fr.json
+++ b/web/locales/fr.json
@@ -3517,7 +3517,10 @@
"Not enough free memory to prepare this model. Close other programs, then resume.": "Mémoire disponible insuffisante pour préparer ce modèle. Fermez les autres programmes, puis reprenez.",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs and rewrite again, or use the original.": "Mémoire graphique insuffisante pour la réécriture. Utilisée par : {programs}. Fermez les programmes listés, puis réécrivez à nouveau, ou utilisez l’original.",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs before rewriting again.": "Mémoire graphique insuffisante pour la réécriture. Utilisée par : {programs}. Fermez les programmes listés avant de réécrire à nouveau.",
+ "Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed.": "Mémoire graphique insuffisante pour la réécriture : il manque environ {short} GiB, même avec les autres programmes fermés.",
+ "Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed. Use the original.": "Mémoire graphique insuffisante pour la réécriture : il manque environ {short} GiB, même avec les autres programmes fermés. Utilisez l’original.",
"Not enough graphics memory to separate this sound.": "Mémoire graphique insuffisante pour séparer ce son.",
+ "Not enough graphics memory to write the prompt: about {short} GiB more is needed, even with other programs closed. Write the prompt yourself instead.": "Mémoire graphique insuffisante pour générer le prompt : il manque environ {short} GiB, même avec les autres programmes fermés. Rédigez le prompt vous-même.",
"Not enough graphics memory, so this will be slow.": "La mémoire graphique est insuffisante, l’opération sera donc lente.",
"Not enough graphics memory. Close other GPU apps and try again.": "Mémoire graphique insuffisante. Fermez les autres applications GPU, puis réessayez.",
"Not enough graphics memory. In use: {programs}. Close them and try again.": "Mémoire graphique insuffisante. Utilisée par : {programs}. Fermez-les, puis réessayez.",
diff --git a/web/locales/id.json b/web/locales/id.json
index 9a3a0b52..f57b23d9 100644
--- a/web/locales/id.json
+++ b/web/locales/id.json
@@ -3482,7 +3482,10 @@
"Not enough free memory to prepare this model. Close other programs, then resume.": "Memori yang tersedia tidak cukup untuk menyiapkan model ini. Tutup program lain, lalu lanjutkan.",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs and rewrite again, or use the original.": "Memori grafis tidak cukup untuk menulis ulang. Digunakan oleh: {programs}. Tutup program yang tercantum lalu tulis ulang lagi, atau gunakan yang asli.",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs before rewriting again.": "Memori grafis tidak cukup untuk menulis ulang. Digunakan oleh: {programs}. Tutup program yang tercantum sebelum menulis ulang lagi.",
+ "Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed.": "Memori grafis tidak cukup untuk menulis ulang: masih kurang sekitar {short} GiB, bahkan jika program lain ditutup.",
+ "Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed. Use the original.": "Memori grafis tidak cukup untuk menulis ulang: masih kurang sekitar {short} GiB, bahkan jika program lain ditutup. Gunakan yang asli.",
"Not enough graphics memory to separate this sound.": "Memori grafis tidak cukup untuk memisahkan suara ini.",
+ "Not enough graphics memory to write the prompt: about {short} GiB more is needed, even with other programs closed. Write the prompt yourself instead.": "Memori grafis tidak cukup untuk menulis prompt: masih kurang sekitar {short} GiB, bahkan jika program lain ditutup. Tulis prompt sendiri.",
"Not enough graphics memory, so this will be slow.": "Memori grafis tidak cukup, sehingga proses ini akan lambat.",
"Not enough graphics memory. Close other GPU apps and try again.": "Memori grafis tidak cukup. Tutup aplikasi lain yang menggunakan GPU, lalu coba lagi.",
"Not enough graphics memory. In use: {programs}. Close them and try again.": "Memori grafis tidak cukup. Digunakan oleh: {programs}. Tutup program tersebut, lalu coba lagi.",
diff --git a/web/locales/pt-BR.json b/web/locales/pt-BR.json
index 610a7b7e..a90714e9 100644
--- a/web/locales/pt-BR.json
+++ b/web/locales/pt-BR.json
@@ -3425,7 +3425,10 @@
"Not enough free memory to prepare this model. Close other programs, then resume.": "Memória livre insuficiente para preparar este modelo. Feche outros programas e depois retome.",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs and rewrite again, or use the original.": "Memória de vídeo insuficiente para reescrever. Em uso: {programs}. Feche os programas listados e reescreva novamente ou use o original.",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs before rewriting again.": "Memória de vídeo insuficiente para reescrever. Em uso: {programs}. Feche os programas listados antes de reescrever novamente.",
+ "Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed.": "Memória de vídeo insuficiente para reescrever: faltam cerca de {short} GiB, mesmo com os outros programas fechados.",
+ "Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed. Use the original.": "Memória de vídeo insuficiente para reescrever: faltam cerca de {short} GiB, mesmo com os outros programas fechados. Use o original.",
"Not enough graphics memory to separate this sound.": "Memória de vídeo insuficiente para separar este som.",
+ "Not enough graphics memory to write the prompt: about {short} GiB more is needed, even with other programs closed. Write the prompt yourself instead.": "Memória de vídeo insuficiente para gerar o prompt: faltam cerca de {short} GiB, mesmo com os outros programas fechados. Escreva o prompt você mesmo.",
"Not enough graphics memory, so this will be slow.": "Memória de vídeo insuficiente, por isso será lento.",
"Not enough graphics memory. Close other GPU apps and try again.": "Memória de vídeo insuficiente. Feche outros aplicativos que usam a GPU e tente novamente.",
"Not enough graphics memory. In use: {programs}. Close them and try again.": "Memória de vídeo insuficiente. Em uso por: {programs}. Feche esses programas e tente novamente.",
diff --git a/web/locales/ru.json b/web/locales/ru.json
index 1882ddea..073a30f8 100644
--- a/web/locales/ru.json
+++ b/web/locales/ru.json
@@ -3474,7 +3474,10 @@
"Not enough free memory to prepare this model. Close other programs, then resume.": "Недостаточно свободной оперативной памяти для подготовки этой модели. Закройте другие программы, затем продолжите.",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs and rewrite again, or use the original.": "Недостаточно видеопамяти для переписывания. Память занимают: {programs}. Закройте указанные программы и повторите переписывание или используйте исходный запрос.",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs before rewriting again.": "Недостаточно видеопамяти для переписывания. Память занимают: {programs}. Закройте указанные программы, прежде чем повторить переписывание.",
+ "Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed.": "Недостаточно видеопамяти для переписывания: не хватает около {short} GiB, даже если закрыть другие программы.",
+ "Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed. Use the original.": "Недостаточно видеопамяти для переписывания: не хватает около {short} GiB, даже если закрыть другие программы. Используйте исходный запрос.",
"Not enough graphics memory to separate this sound.": "Недостаточно видеопамяти для разделения этого звука.",
+ "Not enough graphics memory to write the prompt: about {short} GiB more is needed, even with other programs closed. Write the prompt yourself instead.": "Недостаточно видеопамяти для составления запроса: не хватает около {short} GiB, даже если закрыть другие программы. Напишите запрос сами.",
"Not enough graphics memory, so this will be slow.": "Недостаточно видеопамяти, поэтому генерация будет медленной.",
"Not enough graphics memory. Close other GPU apps and try again.": "Недостаточно видеопамяти. Закройте другие программы, использующие GPU, и повторите попытку.",
"Not enough graphics memory. In use: {programs}. Close them and try again.": "Недостаточно видеопамяти. Память занимают: {programs}. Закройте эти программы и повторите попытку.",
diff --git a/web/locales/tr.json b/web/locales/tr.json
index affac790..c9868354 100644
--- a/web/locales/tr.json
+++ b/web/locales/tr.json
@@ -3466,7 +3466,10 @@
"Not enough free memory to prepare this model. Close other programs, then resume.": "Bu modeli hazırlamak için yeterli boş bellek yok. Diğer programları kapatın, ardından sürdürün.",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs and rewrite again, or use the original.": "Yeniden yazmak için yeterli ekran kartı belleği yok. Kullanan programlar: {programs}. Listelenen programları kapatıp yeniden yazmayı tekrarlayın veya özgün istemi kullanın.",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs before rewriting again.": "Yeniden yazmak için yeterli ekran kartı belleği yok. Kullanan programlar: {programs}. Yeniden yazmayı tekrarlamadan önce listelenen programları kapatın.",
+ "Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed.": "Yeniden yazmak için yeterli ekran kartı belleği yok: diğer programlar kapatılsa bile yaklaşık {short} GiB daha gerekiyor.",
+ "Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed. Use the original.": "Yeniden yazmak için yeterli ekran kartı belleği yok: diğer programlar kapatılsa bile yaklaşık {short} GiB daha gerekiyor. Özgün istemi kullanın.",
"Not enough graphics memory to separate this sound.": "Bu sesi ayırmak için yeterli ekran kartı belleği yok.",
+ "Not enough graphics memory to write the prompt: about {short} GiB more is needed, even with other programs closed. Write the prompt yourself instead.": "İstemi yazmak için yeterli ekran kartı belleği yok: diğer programlar kapatılsa bile yaklaşık {short} GiB daha gerekiyor. Bunun yerine istemi kendiniz yazın.",
"Not enough graphics memory, so this will be slow.": "Yeterli ekran kartı belleği yok; bu nedenle işlem yavaş olacak.",
"Not enough graphics memory. Close other GPU apps and try again.": "Ekran kartı belleği yetersiz. GPU kullanan diğer programları kapatıp yeniden deneyin.",
"Not enough graphics memory. In use: {programs}. Close them and try again.": "Ekran kartı belleği yetersiz. Kullanan programlar: {programs}. Bu programları kapatıp yeniden deneyin.",
diff --git a/web/locales/uk.json b/web/locales/uk.json
index c5928cc7..9d6f8880 100644
--- a/web/locales/uk.json
+++ b/web/locales/uk.json
@@ -3495,7 +3495,10 @@
"Not enough free memory to prepare this model. Close other programs, then resume.": "Недостатньо вільної пам’яті для підготовки цієї моделі. Закрийте інші програми, а потім продовжте.",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs and rewrite again, or use the original.": "Недостатньо відеопам’яті для переписування. Її використовують: {programs}. Закрийте ці програми й перепишіть знову або використайте початковий запит.",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs before rewriting again.": "Недостатньо відеопам’яті для переписування. Її використовують: {programs}. Закрийте ці програми, перш ніж переписувати знову.",
+ "Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed.": "Недостатньо відеопам’яті для переписування: бракує близько {short} GiB, навіть якщо закрити інші програми.",
+ "Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed. Use the original.": "Недостатньо відеопам’яті для переписування: бракує близько {short} GiB, навіть якщо закрити інші програми. Використайте початковий запит.",
"Not enough graphics memory to separate this sound.": "Недостатньо відеопам’яті, щоб розділити цей звук.",
+ "Not enough graphics memory to write the prompt: about {short} GiB more is needed, even with other programs closed. Write the prompt yourself instead.": "Недостатньо відеопам’яті для складання запиту: бракує близько {short} GiB, навіть якщо закрити інші програми. Напишіть запит самостійно.",
"Not enough graphics memory, so this will be slow.": "Недостатньо відеопам’яті, тому виконання буде повільним.",
"Not enough graphics memory. Close other GPU apps and try again.": "Недостатньо відеопам’яті. Закрийте інші програми, що використовують GPU, і спробуйте ще раз.",
"Not enough graphics memory. In use: {programs}. Close them and try again.": "Недостатньо відеопам’яті. Її використовують: {programs}. Закрийте ці програми й спробуйте ще раз.",
diff --git a/web/locales/zh-Hant.json b/web/locales/zh-Hant.json
index 684ae107..0200a37e 100644
--- a/web/locales/zh-Hant.json
+++ b/web/locales/zh-Hant.json
@@ -5,7 +5,7 @@
"fallback": "zh-Hans",
"ready": true,
"generated_by": "scripts/i18n_hant.py",
-"entries": 6885,
+"entries": 6888,
"reviewed": 806,
"note": "Generated from zh-Hans.json; do not edit. Corrections go in scripts/i18n_hant_review.json.",
"chars": "‘『’』“「”」㐷傌㐽偑㑇㑳㑈倲㑔㑯㑩儸㓆𠗣㓥劏㓰劃㔉劚㖊噚㖞喎㘎㘚㚯㜄㛀媰㛟𡞵㛠𡢃㛣㜏㛤孋㛿𡠹㟆㠏㟜𡾱㟥嵾㡎幓㤘㥮㤽懤㥪慺㧏掆㧐㩳㧑撝㧟擓㧰擽㨫㩜㭎棡㭏椲㭣𣙎㭤樢㭴樫㱩殰㱮殨㲿瀇㳔濧㳕灡㳠澾㳡濄㳢𣾷㳽瀰㴋潚㶉鸂㶶燶㶽煱㺍獱㻅璯㻏𤫩㻘𤪺䀥䁻䁖瞜䂵碽䃅磾䅉稏䅟穇䅪𥢢䇲筴䉤籔䌶䊷䌷紬䌸縳䌹絅䌺䋙䌻䋚䌼綐䌽綵䌾䋻䌿䋹䍀繿䍁繸䍠䍦䎬䎱䏝膞䑽𦪙䓓薵䓕薳䓖藭䓨罃䗖螮䘛𧝞䘞𧜗䙊𧜵䙌䙡䙓襬䜣訢䜤鿁䜥𧩙䜧䜀䜩讌䝙貙䞌𧵳䞍䝼䞎𧶧䞐賰䟢躎䢀𨊰䢁𨊸䢂𨋢䥺釾䥽鏺䥾䥱䥿𨯅䦀𨦫䦁𨧜䦂䥇䦃鐯䦅鐥䦆钁䦶䦛䦷䦟䩄靦䭪𩞯䯃𩣑䯄騧䯅䯀䲝䱽䲞𩶘䲟鮣䲠鰆䲡鰌䲢鰧䲣䱷䴓鳾䴔鵁䴕鴷䴖鶄䴗鶪䴘鷉䴙鸊䶮龑万萬与與专專业業丛叢东東丝絲丢丟两兩严嚴丧喪个個临臨为為丽麗举舉么麼义義乌烏乐樂乔喬习習乡鄉书書买買乱亂争爭于於亏虧云雲亚亞产產亩畝亲親亵褻亸嚲亿億仅僅从從仑侖仓倉仪儀们們众眾优優会會伛傴伞傘伟偉传傳伡俥伣俔伤傷伥倀伦倫伧傖伪偽伫佇体體余餘佥僉侠俠侣侶侥僥侦偵侧側侨僑侩儈侪儕侬儂侭儘俣俁俦儔俨儼俩倆俪儷俫倈俭儉债債倾傾偬傯偻僂偾僨偿償傤儎傥儻傧儐储儲傩儺儿兒兑兌兖兗兰蘭关關兴興兹茲养養兽獸冁囅内內冈岡册冊写寫军軍农農冯馮冲衝决決况況冻凍净淨凄悽凉涼减減凑湊凛凜几幾凤鳳凫鳧凭憑凯凱击擊凿鑿刍芻刘劉则則刚剛创創删刪别別刬剗刭剄刹剎刽劊刾㓨刿劌剀剴剂劑剐剮剑劍剥剝剧劇劝勸办辦务務劢勱动動励勵劲勁劳勞势勢勋勳勚勩匀勻匦匭匮匱区區医醫华華协協单單卖賣卢盧卤滷卧臥卫衛却卻卺巹厅廳历歷厉厲压壓厌厭厍厙厐龎厕廁厢廂厣厴厦廈厨廚厩廄厮廝县縣叁叄参參叆靉叇靆双雙发發变變叙敘叠疊号號叹嘆叽嘰吓嚇吕呂吗嗎吨噸听聽启啟吴吳呐吶呒嘸呓囈呕嘔呖嚦呗唄员員呙咼呛嗆呜嗚咏詠咙嚨咛嚀咝噝咤吒响響哑啞哒噠哓嘵哔嗶哕噦哗譁哙噲哜嚌哝噥哟喲唛嘜唝嗊唠嘮唡啢唢嗩唤喚啧嘖啬嗇啭囀啮齧啯嘓啰囉啴嘽啸嘯喷噴喽嘍喾嚳嗫囁嗳噯嘘噓嘤嚶嘱囑噜嚕嚣囂团團园園囱囪围圍囵圇国國图圖圆圓圣聖圹壙场場坏壞块塊坚堅坛壇坜壢坝壩坞塢坟墳坠墜垄壟垅壠垆壚垒壘垦墾垩堊垫墊垭埡垯墶垱壋垲塏垴堖埘塒埙壎埚堝堑塹堕墮塆壪墙牆壮壯声聲壳殼壶壺壸壼处處备備复復够夠头頭夹夾夺奪奁奩奂奐奋奮奖獎奥奧妆妝妇婦妈媽妩嫵妪嫗妫媯姗姍姹奼娄婁娅婭娆嬈娇嬌娈孌娱娛娲媧娴嫻婳嫿婴嬰婵嬋婶嬸媪媼媭嬃嫒嬡嫔嬪嫱嬙嬷嬤孙孫学學孪孿宁寧宝寶实實宠寵审審宪憲宫宮宽寬宾賓寝寢对對寻尋导導寿壽将將尔爾尘塵尝嘗尧堯尴尷尽盡层層屃屓屉屜届屆属屬屡屢屦屨屿嶼岁歲岂豈岖嶇岗崗岘峴岚嵐岛島岭嶺岽崬岿巋峃嶨峄嶧峡峽峣嶢峤嶠峥崢峦巒崂嶗崃崍崄嶮崭嶄嵘嶸嵚嶔嵝嶁巅巔巩鞏巯巰币幣帅帥师師帏幃帐帳帜幟带帶帮幫帱幬帻幘帼幗幂冪并並广廣庄莊庆慶庐廬庑廡库庫应應庙廟庞龐废廢庼廎廪廩开開异異弃棄弑弒张張弥彌弪弳弯彎弹彈强強归歸当當录錄彟彠彦彥彨彲彻徹径徑徕徠忆憶忏懺忧憂忾愾怀懷态態怂慫怃憮怄慪怅悵怆愴怜憐总總怼懟怿懌恋戀恒恆恳懇恶惡恸慟恹懨恺愷恻惻恼惱恽惲悦悅悫愨悬懸悭慳悮悞悯憫惊驚惧懼惨慘惩懲惫憊惬愜惭慚惮憚惯慣愠慍愤憤愦憒慑懾慭憖懑懣懒懶懔懍戆戇戋戔戏戲戗戧战戰戬戩戯戱户戶扑撲执執扩擴扪捫扫掃扬揚扰擾抚撫抛拋抟摶抠摳抡掄抢搶护護报報担擔拟擬拢攏拣揀拥擁拦攔拧擰拨撥择擇挂掛挚摯挛攣挜掗挝撾挞撻挟挾挠撓挡擋挢撟挣掙挤擠挥揮挦撏捝挩捞撈损損捡撿换換捣搗据據掳擄掴摑掷擲掸撣掺摻掼摜揽攬揾搵揿撳搀攙搁擱搂摟搄揯搅攪携攜摄攝摅攄摆擺摇搖摈擯摊攤撄攖撑撐撵攆撷擷撸擼撺攛擜㩵擞擻攒攢敌敵敚敓敛斂敩斆数數斋齋斓斕斩斬断斷无無旧舊时時旷曠旸暘昙曇昵暱昼晝昽曨显顯晋晉晒曬晓曉晔曄晕暈晖暉暂暫暅𣈶暧曖术術机機杀殺杂雜权權条條来來杨楊杩榪极極构構枞樅枢樞枣棗枥櫪枧梘枨棖枪槍枫楓枭梟柜櫃柠檸柽檉栀梔栅柵标標栈棧栉櫛栊櫳栋棟栌櫨栎櫟栏欄树樹栖棲样樣栾欒桠椏桡橈桢楨档檔桤榿桥橋桦樺桧檜桨槳桩樁桪樳梦夢梼檮梾棶梿槤检檢棁梲棂欞椁槨椝槼椟櫝椠槧椢槶椤欏椫樿椭橢椮槮楼樓榄欖榅榲榇櫬榈櫚榉櫸榝樧槚檟槛檻槟檳槠櫧横橫樯檣樱櫻橥櫫橱櫥橹櫓橼櫞檩檁欢歡欤歟欧歐歼殲殁歿殇殤残殘殒殞殓殮殚殫殡殯殴毆毁毀毂轂毕畢毙斃毡氈毵毿毶𣯶氇氌气氣氢氫氩氬氲氳汇匯汉漢汤湯汹洶沄澐沟溝没沒沣灃沤漚沥瀝沦淪沧滄沨渢沩溈沪滬泞濘泪淚泶澩泷瀧泸瀘泺濼泻瀉泼潑泽澤泾涇洁潔洒灑洼窪浃浹浅淺浆漿浇澆浈湞浉溮浊濁测測浍澮济濟浏瀏浐滻浑渾浒滸浓濃浔潯浕濜涂塗涚涗涛濤涝澇涞淶涟漣涠潿涡渦涢溳涣渙涤滌润潤涧澗涨漲涩澀渊淵渌淥渍漬渎瀆渐漸渑澠渔漁渖瀋渗滲温溫湾灣湿溼溁濚溃潰溅濺溆漵溇漊滗潷滚滾滞滯滟灩滠灄满滿滢瀅滤濾滥濫滦灤滨濱滩灘滪澦潆瀠潇瀟潋瀲潍濰潜潛潴瀦澛瀂澜瀾濑瀨濒瀕灏灝灭滅灯燈灵靈灾災灿燦炀煬炉爐炖燉炜煒炝熗点點炼煉炽熾烁爍烂爛烃烴烛燭烟煙烦煩烧燒烨燁烩燴烫燙烬燼热熱焕煥焖燜焘燾煴熅爱愛爷爺牍牘牦犛牵牽牺犧犊犢状狀犷獷犸獁犹猶狈狽狝獮狞獰独獨狭狹狮獅狯獪狰猙狱獄狲猻猃獫猎獵猕獼猡玀猪豬猫貓猬蝟献獻獭獺玑璣玙璵玚瑒玛瑪玮瑋环環现現玱瑲玺璽珐琺珑瓏珰璫珲琿琎璡琏璉琐瑣琼瓊瑶瑤瑷璦瑸璸璎瓔瓒瓚瓮甕瓯甌电電画畫畅暢畴疇疖癤疗療疟瘧疠癘疡瘍疬癧疭瘲疮瘡疯瘋疱皰疴痾痈癰痉痙痒癢痖瘂痨癆痪瘓痫癇瘅癉瘆瘮瘗瘞瘘瘻瘪癟瘫癱瘾癮瘿癭癞癩癣癬癫癲皑皚皱皺皲皸盏盞盐鹽监監盖蓋盗盜盘盤眍瞘眦眥眬矓着著睁睜睐睞睑瞼瞆瞶瞒瞞瞩矚矫矯矶磯矾礬矿礦砀碭码碼砖磚砗硨砚硯砜碸砺礪砻礱砾礫础礎硁硜硕碩硖硤硗磽硙磑硚礄确確硵磠碍礙碛磧碜磣碱鹼礼禮祃禡祎禕祢禰祯禎祷禱祸禍禀稟禄祿禅禪离離秃禿秆稈种種积積称稱秽穢秾穠稆穭税稅稣穌稳穩穑穡穞穭穷窮窃竊窍竅窎窵窑窯窜竄窝窩窥窺窦竇窭窶竖豎竞競笃篤笋筍笔筆笕筧笺箋笼籠笾籩筚篳筛篩筜簹筝箏筹籌筼篔签籤筿篠简簡箓籙箦簀箧篋箨籜箩籮箪簞箫簫篑簣篓簍篮籃篯籛篱籬簖籪籁籟籴糴类類籼秈粜糶粝糲粤粵粪糞粮糧糁糝糇餱糍餈紧緊絷縶緼縕縆緪纟糹纠糾纡紆红紅纣紂纤纖纥紇约約级級纨紈纩纊纪紀纫紉纬緯纭紜纮紘纯純纰紕纱紗纲綱纳納纴紝纵縱纶綸纷紛纸紙纹紋纺紡纻紵纼紖纽紐纾紓线線绀紺绁紲绂紱练練组組绅紳细細织織终終绉縐绊絆绋紼绌絀绍紹绎繹经經绐紿绑綁绒絨结結绔絝绕繞绖絰绗絎绘繪给給绚絢绛絳络絡绝絕绞絞统統绠綆绡綃绢絹绣繡绤綌绥綏绦絛继繼绨綈绩績绪緒绫綾绬緓续續绮綺绯緋绰綽绱鞝绲緄绳繩维維绵綿绶綬绷繃绸綢绹綯绺綹绻綣综綜绽綻绾綰绿綠缀綴缁緇缂緙缃緗缄緘缅緬缆纜缇緹缈緲缉緝缊縕缋繢缌緦缍綞缎緞缏緶缐線缑緱缒縋缓緩缔締缕縷编編缗緡缘緣缙縉缚縛缛縟缜縝缝縫缞縗缟縞缠纏缡縭缢縊缣縑缤繽缥縹缦縵缧縲缨纓缩縮缪繆缫繅缬纈缭繚缮繕缯繒缰韁缱繾缲繰缳繯缴繳缵纘罂罌网網罗羅罚罰罢罷罴羆羁羈羟羥羡羨翘翹翙翽翚翬耢耮耧耬耸聳耻恥聂聶聋聾职職聍聹联聯聩聵聪聰肃肅肠腸肤膚肮骯肴餚肾腎肿腫胀脹胁脅胆膽胧朧胨腖胪臚胫脛胶膠脉脈脍膾脏髒脐臍脑腦脓膿脔臠脚腳脱脫脶腡脸臉腘膕腭顎腻膩腼靦腽膃腾騰膑臏臜臢臺台舆輿舣艤舰艦舱艙舻艫艰艱艳豔艺藝节節芈羋芗薌芜蕪芦蘆苁蓯苇葦苈藶苋莧苌萇苍蒼苏蘇苧薴茎莖茏蘢茑蔦茔塋茕煢茧繭荆荊荐薦荙薘荚莢荛蕘荜蓽荝萴荞蕎荟薈荠薺荡蕩荣榮荤葷荥滎荦犖荧熒荨蕁荩藎荪蓀荫蔭荬蕒荭葒荮葤药藥莅蒞莱萊莲蓮莳蒔莴萵莶薟获獲莸蕕莹瑩莺鶯莼蓴萚蘀萝蘿萤螢营營萦縈萧蕭萨薩葱蔥蒀蒕蒇蕆蒉蕢蒋蔣蒌蔞蒏醟蓝藍蓟薊蓠蘺蓣蕷蓥鎣蓦驀蔂虆蔷薔蔹蘞蔺藺蔼藹蕰薀蕲蘄蕴蘊薮藪藓蘚藴蘊蘖櫱虏虜虑慮虚虛虬虯虮蟣虱蝨虽雖虾蝦虿蠆蚀蝕蚁蟻蚂螞蚃蠁蚕蠶蚬蜆蛊蠱蛎蠣蛏蟶蛮蠻蛰蟄蛱蛺蛲蟯蛳螄蛴蠐蜕蛻蜗蝸蝇蠅蝈蟈蝉蟬蝼螻蝾蠑螀螿螨蟎蟏蠨衅釁衔銜补補衬襯衮袞袄襖袅嫋袆褘袜襪袭襲袯襏装裝裆襠裈褌裢褳裣襝裤褲裥襉褛褸褴襤襕襴见見观觀觃覎规規觅覓视視觇覘览覽觉覺觊覬觋覡觌覿觍覥觎覦觏覯觐覲觑覷觞觴触觸觯觶訚誾詟讋誉譽誊謄讠訁计計订訂讣訃认認讥譏讦訐讧訌讨討让讓讪訕讫訖讬託训訓议議讯訊记記讱訒讲講讳諱讴謳讵詎讶訝讷訥许許讹訛论論讻訩讼訟讽諷设設访訪诀訣证證诂詁诃訶评評诅詛识識诇詗诈詐诉訴诊診诋詆诌謅词詞诎詘诏詔诐詖译譯诒詒诓誆诔誄试試诖詿诗詩诘詰诙詼诚誠诛誅诜詵话話诞誕诟詬诠詮诡詭询詢诣詣诤諍该該详詳诧詫诨諢诩詡诪譸诫誡诬誣语語诮誚误誤诰誥诱誘诲誨诳誑说說诵誦诶誒请請诸諸诹諏诺諾读讀诼諑诽誹课課诿諉谀諛谁誰谂諗调調谄諂谅諒谆諄谇誶谈談谉讅谊誼谋謀谌諶谍諜谎謊谏諫谐諧谑謔谒謁谓謂谔諤谕諭谖諼谗讒谘諮谙諳谚諺谛諦谜謎谝諞谞諝谟謨谠讜谡謖谢謝谣謠谤謗谥諡谦謙谧謐谨謹谩謾谪謫谫譾谬謬谭譚谮譖谯譙谰讕谱譜谲譎谳讞谴譴谵譫谶讖豮豶贝貝贞貞负負贠貟贡貢财財责責贤賢败敗账賬货貨质質贩販贪貪贫貧贬貶购購贮貯贯貫贰貳贱賤贲賁贳貰贴貼贵貴贶貺贷貸贸貿费費贺賀贻貽贼賊贽贄贾賈贿賄赀貲赁賃赂賂赃贓资資赅賅赆贐赇賕赈賑赉賚赊賒赋賦赌賭赍齎赎贖赏賞赐賜赑贔赒賙赓賡赔賠赕賧赖賴赗賵赘贅赙賻赚賺赛賽赜賾赝贗赞贊赟贇赠贈赡贍赢贏赣贛赪赬赵趙赶趕趋趨趱趲趸躉跃躍跄蹌跞躒践踐跶躂跷蹺跸蹕跹躚跻躋踌躊踪蹤踬躓踯躑蹑躡蹒蹣蹰躕蹿躥躏躪躜躦躯軀輼轀车車轧軋轨軌轩軒轪軑轫軔转轉轭軛轮輪软軟轰轟轱軲轲軻轳轤轴軸轵軹轶軼轷軤轸軫轹轢轺軺轻輕轼軾载載轾輊轿轎辀輈辁輇辂輅较較辄輒辅輔辆輛辇輦辈輩辉輝辊輥辋輞辌輬辍輟辎輜辏輳辐輻辑輯辒轀输輸辔轡辕轅辖轄辗輾辘轆辙轍辚轔辞辭辩辯辫辮边邊辽遼达達迁遷过過迈邁运運还還这這进進远遠违違连連迟遲迩邇迳逕迹跡适適选選逊遜递遞逦邐逻邏遗遺遥遙邓鄧邝鄺邬鄔邮郵邹鄒邺鄴邻鄰郏郟郐鄶郑鄭郓鄆郦酈郧鄖郸鄲酂酇酝醞酦醱酱醬酽釅酾釃酿釀醖醞释釋鉴鑑銮鑾錾鏨钅釒钆釓钇釔针針钉釘钊釗钋釙钌釕钍釷钎釺钏釧钐釤钑鈒钒釩钓釣钔鍆钕釹钖鍚钗釵钘鈃钙鈣钚鈈钛鈦钜鉅钝鈍钞鈔钟鍾钠鈉钡鋇钢鋼钣鈑钤鈐钥鑰钦欽钧鈞钨鎢钩鉤钪鈧钫鈁钬鈥钭鈄钮鈕钯鈀钰鈺钱錢钲鉦钳鉗钴鈷钵缽钶鈳钷鉕钸鈽钹鈸钺鉞钻鑽钼鉬钽鉭钾鉀钿鈿铀鈾铁鐵铂鉑铃鈴铄鑠铅鉛铆鉚铇鉋铈鈰铉鉉铊鉈铋鉍铌鈮铍鈹铎鐸铏鉶铐銬铑銠铒鉺铓鋩铔錏铕銪铖鋮铗鋏铘鋣铙鐃铚銍铛鐺铜銅铝鋁铞銱铟銦铠鎧铡鍘铢銖铣銑铤鋌铥銩铦銛铧鏵铨銓铩鎩铪鉿铫銚铬鉻铭銘铮錚铯銫铰鉸铱銥铲鏟铳銃铴鐋铵銨银銀铷銣铸鑄铹鐒铺鋪铻鋙铼錸铽鋱链鏈铿鏗销銷锁鎖锂鋰锃鋥锄鋤锅鍋锆鋯锇鋨锈鏽锉銼锊鋝锋鋒锌鋅锍鋶锎鐦锏鐧锐銳锑銻锒鋃锓鋟锔鋦锕錒锖錆锗鍺锘鍩错錯锚錨锛錛锜錡锝鍀锞錁锟錕锠錩锡錫锢錮锣鑼锤錘锥錐锦錦锧鑕锨鍁锩錈锪鍃锫錇锬錟锭錠键鍵锯鋸锰錳锱錙锲鍥锳鍈锴鍇锵鏘锶鍶锷鍔锸鍤锹鍬锺鍾锻鍛锼鎪锽鍠锾鍰锿鎄镀鍍镁鎂镂鏤镃鎡镄鐨镅鎇镆鏌镇鎮镈鎛镉鎘镊鑷镋钂镌鐫镍鎳镎鎿镏鎦镐鎬镑鎊镒鎰镓鎵镔鑌镕鎔镖鏢镗鏜镘鏝镙鏍镚鏰镛鏞镜鏡镝鏑镞鏃镟鏇镠鏐镡鐔镢钁镣鐐镤鏷镥鑥镦鐓镧鑭镨鐠镩鑹镪鏹镫鐙镬鑊镭鐳镮鐶镯鐲镰鐮镱鐿镲鑔镳鑣镴鑞镵鑱镶鑲长長门門闩閂闪閃闫閆闬閈闭閉问問闯闖闰閏闱闈闲閒闳閎间間闵閔闶閌闷悶闸閘闹鬧闺閨闻聞闼闥闽閩闾閭闿闓阀閥阁閣阂閡阃閫阄鬮阅閱阆閬阇闍阈閾阉閹阊閶阋鬩阌閿阍閽阎閻阏閼阐闡阑闌阒闃阓闠阔闊阕闋阖闔阗闐阘闒阙闕阚闞阛闤队隊阳陽阴陰阵陣阶階际際陆陸陇隴陈陳陉陘陕陝陦隯陧隉陨隕险險随隨隐隱隶隸隽雋难難雇僱雏雛雠讎雳靂雾霧霁霽霉黴霡霢霭靄靓靚靔靝静靜靥靨鞑韃鞒鞽鞯韉鞲韝韦韋韧韌韨韍韩韓韪韙韫韞韬韜韵韻页頁顶頂顷頃顸頇项項顺順须須顼頊顽頑顾顧顿頓颀頎颁頒颂頌颃頏预預颅顱领領颇頗颈頸颉頡颊頰颋頲颌頜颍潁颎熲颏頦颐頤频頻颒頮颓頹颔頷颕頴颖穎颗顆题題颙顒颚顎颛顓颜顏额額颞顳颟顢颠顛颡顙颢顥颣纇颤顫颥顬颦顰颧顴风風飏颺飐颭飑颮飒颯飓颶飔颸飕颼飖颻飗飀飘飄飙飆飚飈飞飛飨饗餍饜饣飠饤飣饥飢饦飥饧餳饨飩饩餼饪飪饫飫饬飭饭飯饮飲饯餞饰飾饱飽饲飼饳飿饴飴饵餌饶饒饷餉饸餄饹餎饺餃饻餏饼餅饽餑饾餖饿餓馀餘馁餒馂餕馃餜馄餛馅餡馆館馇餷馈饋馉餶馊餿馋饞馌饁馍饃馎餺馏餾馐饈馑饉馒饅馓饊馔饌馕饢马馬驭馭驮馱驯馴驰馳驱驅驲馹驳駁驴驢驵駔驶駛驷駟驸駙驹駒驺騶驻駐驼駝驽駑驾駕驿驛骀駘骁驍骂罵骃駰骄驕骅驊骆駱骇駭骈駢骉驫骊驪骋騁验驗骍騂骎駸骏駿骐騏骑騎骒騍骓騅骔騌骕驌骖驂骗騙骘騭骙騤骚騷骛騖骜驁骝騮骞騫骟騸骠驃骡騾骢驄骣驏骤驟骥驥骦驦骧驤髅髏髋髖髌髕鬓鬢鬶鬹魇魘魉魎鱼魚鱽魛鱾魢鱿魷鲀魨鲁魯鲂魴鲃䰾鲄魺鲅鮁鲆鮃鲇鯰鲈鱸鲉鮋鲊鮓鲋鮒鲌鮊鲍鮑鲎鱟鲏鮍鲐鮐鲑鮭鲒鮚鲓鮳鲔鮪鲕鮞鲖鮦鲗鰂鲘鮜鲙鱠鲚鱭鲛鮫鲜鮮鲝鮺鲞鯗鲟鱘鲠鯁鲡鱺鲢鰱鲣鰹鲤鯉鲥鰣鲦鰷鲧鯀鲨鯊鲩鯇鲪鮶鲫鯽鲬鯒鲭鯖鲮鯪鲯鯕鲰鯫鲱鯡鲲鯤鲳鯧鲴鯝鲵鯢鲶鯰鲷鯛鲸鯨鲹鰺鲺鯴鲻鯔鲼鱝鲽鰈鲾鰏鲿鱨鳀鯷鳁鰮鳂鰃鳃鰓鳄鱷鳅鰍鳆鰒鳇鰉鳈鰁鳉鱂鳊鯿鳋鰠鳌鰲鳍鰭鳎鰨鳏鰥鳐鰩鳑鰟鳒鰜鳓鰳鳔鰾鳕鱈鳖鱉鳗鰻鳘鰵鳙鱅鳚䲁鳛鰼鳜鱖鳝鱔鳞鱗鳟鱒鳠鱯鳡鱤鳢鱧鳣鱣鳤䲘鸟鳥鸠鳩鸡雞鸢鳶鸣鳴鸤鳲鸥鷗鸦鴉鸧鶬鸨鴇鸩鴆鸪鴣鸫鶇鸬鸕鸭鴨鸮鴞鸯鴦鸰鴒鸱鴟鸲鴝鸳鴛鸴鷽鸵鴕鸶鷥鸷鷙鸸鴯鸹鴰鸺鵂鸻鴴鸼鵃鸽鴿鸾鸞鸿鴻鹀鵐鹁鵓鹂鸝鹃鵑鹄鵠鹅鵝鹆鵒鹇鷳鹈鵜鹉鵡鹊鵲鹋鶓鹌鵪鹍鵾鹎鵯鹏鵬鹐鵮鹑鶉鹒鶊鹓鵷鹔鷫鹕鶘鹖鶡鹗鶚鹘鶻鹙鶖鹚鷀鹛鶥鹜鶩鹝鷊鹞鷂鹟鶲鹠鶹鹡鶺鹢鷁鹣鶼鹤鶴鹥鷖鹦鸚鹧鷓鹨鷚鹩鷯鹪鷦鹫鷲鹬鷸鹭鷺鹮䴉鹯鸇鹰鷹鹱鸌鹲鸏鹳鸛鹴鸘鹾鹺麦麥麸麩麹麴麺麵麽麼黄黃黉黌黡黶黩黷黪黲黾黽鼋黿鼌鼂鼍鼉鼹鼴齐齊齑齏齿齒龀齔龁齕龂齗龃齟龄齡龅齙龆齠龇齜龈齦龉齬龊齪龋齲龌齷龙龍龚龔龛龕龟龜鿎䃮鿏䥑鿒鿓鿔鎶𠀾𠁞𠆲儣𠆿𠌥𠇹俓𠉂㒓𠉗𠏢𠋆儭𠚳𠠎𠛅剾𠛆𠞆𠛾𪟖𠡠勑𠮶嗰𠯟哯𠯠噅𠰱㘉𠰷嚧𠱞囃𠲥𡅏𠴛𡃕𠴢𡄔𠵸𡄣𠵾㗲𡋀𡓾𡋗𡑭𡋤壗𡍣𡔖𡒄壈𡝠㜷𡞋㜗𡞱㜢𡠟孎𡥧孻𡭜𡮉𡭬𡮣𡳃𡳳𡳒𦘧𡶴嵼𡸃𡽗𡺃嶈𡺄嶘𢋈㢝𢗓㦛𢘙𢤱𢘝𢣚𢘞𢣭𢙏愻𢙐憹𢙑𢠼𢙒憢𢙓懀𢛯㦎𢠁懎𢢐𤢻𢧐戰𢫊𢷮𢫞𢶫𢫬摋𢬍擫𢬦𢹿𢭏擣𢽾斅𣃁斸𣆐曥𣈣𣋋𣍨𦢈𣍯腪𣍰脥𣎑臗𣏢槫𣐕桱𣐤欍𣑶𣠲𣒌楇𣓿橯𣔌樤𣗊樠𣗋欓𣗙㰙𣘐㯤𣘓𣞻𣘴檭𣘷𣝕𣚚欘𣞎𣠩𣨼殢𣭤𣯴𣯣𣯩𣱝氭𣲗湋𣲘潕𣳆㵗𣶩澅𣶫𣿉𣶭𪷓𣷷𤅶𣸣濆𣺼灙𣺽𤁣𣽷瀃𤆡熓𤆢㷍𤇃爄𤇄熌𤇭爖𤇹熚𤈶熉𤈷㷿𤊀𤒎𤊰𤓩𤋏熡𤎺𤓎𤎻𤑳𤙯𤛮𤝢𤢟𤞃獩𤞤玁𤠋㺏𤦀瓕𤩽瓛𤳄𤳸𤶊癐𤶧𤸫𤻊㿗𤽯㿧𤾀皟𤿲麬𥁢䀉𥅘𥌃𥅴䀹𥅿𥊝𥆧瞤𥇢䁪𥎝䂎𥐟礒𥐯𥖅𥐰𥕥𥐻碙𥞦𥞵𥧂𥨐𥩟竚𥩺𥪂𥫣籅𥬀䉙𥬞籋𥬠篘𥭉𥵊𥮋𥸠𥮜䉲𥮾篸𥱔𥵃𥹥𥼽𥺅䊭𥺇𥽖𦈈𥿊𦈉緷𦈋綇𦈌綀𦈎繟𦈏緍𦈐縺𦈑緸𦈒𦂅𦈓䋿𦈔縎𦈕緰𦈖䌈𦈗𦃄𦈘䌋𦈙䌰𦈚縬𦈛繓𦈜䌖𦈝繏𦈞䌟𦈟䌝𦈠䌥𦈡繻𦍠䍽𦛨朥𦝼膢𦟗𦣎𦨩𦪽𦰏蓧𦰴䕳𦶟爇𦶻𦾟𦻕蘟𧉐𧕟𧉞䗿𧌥𧎈𧏖蠙𧏗蠀𧑏蠾𧒭𧔥𧜭䙱𧝝襰𧝧𧟀𧮪詀𧳕𧳟𧹑䞈𧹒買𧹓𧶔𧹔賬𧹕䝻𧹖賟𧹗贃𧿈𨇁𨀁躘𨀱𨄣𨁴𨅍𨂺𨈊𨄄𨈌𨅛䠱𨅫𨇞𨅬躝𨉗軉𨐅軗𨐆𨊻𨐇𨏠𨐈輄𨐉𨎮𨐊𨏥𨑹䢨𨟳𨣞𨠨𨣧𨡙𨢿𨡺𨣈𨤰𨤻𨰾鎷𨰿釳𨱀𨥛𨱁鈠𨱂鈋𨱃鈲𨱄鈯𨱅鉁𨱆龯𨱇銶𨱈鋉𨱉鍄𨱊𨧱𨱋錂𨱌鏆𨱍鎯𨱎鍮𨱏鎝𨱐𨫒𨱑鐄𨱒鏉𨱓鐎𨱔鐏𨱕𨮂𨱖䥩𨷿䦳𨸀𨳕𨸁𨳑𨸂閍𨸃閐𨸄䦘𨸅𨴗𨸆𨵩𨸇𨵸𨸉𨶀𨸊𨶏𨸋𨶲𨸌𨶮𨸎𨷲𨸘𨽏𨸟䧢𩏼䪏𩏽𩏪𩏾𩎢𩏿䪘𩐀䪗𩓋顂𩖕𩓣𩖖顃𩖗䫴𩙥颰𩙦𩗀𩙧䬞𩙨𩘹𩙩𩘀𩙪颷𩙫颾𩙬𩘺𩙭𩘝𩙮䬘𩙯䬝𩙰𩙈𩟿𩚛𩠀𩚥𩠁𩚵𩠂𩛆𩠃𩛩𩠅𩟐𩠆𩜦𩠇䭀𩠈䭃𩠉𩜇𩠊𩜵𩠋𩝔𩠌餸𩠎𩞄𩠏𩞦𩠠𩠴𩡖𩡣𩧦𩡺𩧨駎𩧩𩤊𩧪䮾𩧫駚𩧬𩢡𩧭䭿𩧮𩢾𩧯驋𩧰䮝𩧱𩥉𩧲駧𩧳𩢸𩧴駩𩧵𩢴𩧶𩣏𩧸𩣫𩧺駶𩧻𩣵𩧼𩣺𩧿䮠𩨀騔𩨁䮞𩨂驄𩨃騝𩨄騪𩨅𩤸𩨆𩤙𩨇䮫𩨈騟𩨉𩤲𩨊騚𩨋𩥄𩨌𩥑𩨍𩥇𩨎龭𩨏䮳𩨐𩧆𩩈䯤𩬣𩭙𩬤𩰀𩭹鬖𩯒𩯳𩰰𩰹𩲒𩳤𩴌𩴵𩽹魥𩽺𩵩𩽻𩵹𩽼鯶𩽽𩶱𩽾鮟𩽿𩶰𩾁鯄𩾂䲖𩾃鮸𩾄𩷰𩾅𩸃𩾆𩸦𩾇鯱𩾈䱙𩾊䱬𩾋䱰𩾌鱇𩾎𩽇𪉂䲰𪉃鳼𪉄𩿪𪉅𪀦𪉆鴲𪉈鴜𪉉𪁈𪉊鷨𪉋𪀾𪉌𪁖𪉍鵚𪉎𪂆𪉏𪃏𪉐𪃍𪉑鷔𪉒𪄕𪉔𪄆𪉕𪇳𪎈䴬𪎉麲𪎊麨𪎋䴴𪎌麳𪑅䵳𪔭𪔵𪚏𪘀𪚐𪘯𪜎𠿕𪞝凙𪟎㔋𪟝勣𪠀𧷎𪠟㓄𪠡𠬙𪠳唓𪠵㖮𪠸嚛𪠺𠽃𪠽噹𪡀嘺𪡃嘪𪡋噞𪡏嗹𪡛㗿𪡞嘳𪡺𡃄𪢌㘓𪢐𡃤𪢒𡂡𪢕嚽𪢖𡅯𪢠囒𪢮圞𪢸墲𪣆埬𪣒堚𪣻塿𪤄𡓁𪤚壣𪥠𧹈𪥫孇𪥰嬣𪥿嬻𪧀孾𪧘寠𪨊㞞𪨗屩𪨧崙𪨩𡸗𪨶輋𪨷巗𪨹𡹬𪩇㟺𪩎巊𪩘巘𪩛𡿖𪩷幝𪩸幩𪪏廬𪪑㢗𪪞廧𪪴𢍰𪪼彃𪫌徿𪫡𢤩𪫷㦞𪫺憸𪬚𢣐𪬯𢤿𪭝𢯷𪭢摐𪭧擟𪭯𢶒𪭵掚𪭾撊𪮃㨻𪮋㩋𪮖撧𪮳𢺳𪮶攋𪯋㪎𪰶曊𪱥膹𪱷梖𪲎櫅𪲔欐𪲛檵𪲮櫠𪳍欇𪳗𣜬𪴙欑𪵑毊𪵣霼𪵱濿𪶄溡𪶒𤄷𪶮𣽏𪷍㵾𪷽灒𪸕熂𪸩煇𪹀𤑹𪹠𤓌𪹳爥𪹹𤒻𪺣𤘀𪺪𤜆𪺭犞𪺷獊𪺸𤠮𪺻㺜𪺽猌𪻐瑽𪻨瓄𪻲瑻𪻺璝𪼋㻶𪼴𤬅𪽈畼𪽝𤳷𪽪痮𪽭𤷃𪽮㿖𪽴𤺔𪽷瘱𪾔盨𪾢睍𪾣眝𪾦矑𪾸矉𪿊𥏝𪿞𥖲𪿫礮𪿵𥗇𫀌𥜰𫀓𥜐𫀨䅐𫀬䅳𫀮𥢷𫁂䆉𫁟竱𫁡鴗𫁱𥶽𫁲䉑𫁳𥯤𫁷䉶𫁺𥴼𫂃簢𫂆簂𫂈䉬𫂖𥴨𫂿𥻦𫃗𩏷𫄙糺𫄚䊺𫄛紟𫄜䋃𫄝𥾯𫄞䋔𫄟絁𫄠絙𫄡絧𫄢絥𫄣繷𫄤繨𫄥纚𫄦𦀖𫄧綖𫄨絺𫄩䋦𫄪𦅇𫄫綟𫄬緤𫄭緮𫄮䋼𫄯𦃩𫄰縍𫄱繬𫄲縸𫄳縰𫄴繂𫄵𦅈𫄶繈𫄷繶𫄸纁𫄹纗𫅅䍤𫅗羵𫅥𦒀𫅭䎙𫅼𦔖𫆏聻𫆝𦟼𫆫𦡝𫇘𦧺𫇛艣𫇪𦱌𫇭蒍𫇴蒭𫇽蕽𫈉蕳𫈎葝𫈟蔯𫈵蕝𫉁薆𫉄藷𫊪䗅𫊮蠦𫊸蟜𫊹𧒯𫊻蟳𫋇蟂𫋌蟘𫋲䙔𫋷襗𫋹襓𫋻襘𫌀襀𫌇襵𫌋𧞫𫌨覼𫌪覛𫌫𧡴𫌬𧢄𫌭覹𫌯䚩𫍐𧭹𫍙訑𫍚訞𫍛訜𫍜詓𫍝諫𫍞𧦝𫍟𧦧𫍠䛄𫍡詑𫍢譊𫍣詷𫍤譑𫍥誂𫍦譨𫍧誺𫍨誫𫍩諣𫍪誋𫍫䛳𫍬誷𫍭𧩕𫍮誳𫍯諴𫍰諰𫍱諯𫍲謏𫍳諥𫍴謱𫍵謸𫍶𧩼𫍷謉𫍸謆𫍹謯𫍺𧫝𫍻譆𫍼𧬤𫍽譞𫍾𧭈𫍿譾𫎆豵𫎌貗𫎦贚𫎧䝭𫎨𧸘𫎩賝𫎪䞋𫎫贉𫎬贑𫎭䞓𫎱䟐𫎳䟆𫎸𧽯𫎺䟃𫏃䠆𫏆蹳𫏋蹻𫏌𨂐𫏐蹔𫏑𨇽𫏕𨆪𫏞𨇰𫏨𨇤𫐄軏𫐅軕𫐆轣𫐇軜𫐈軷𫐉軨𫐊軬𫐋𨎌𫐌軿𫐍𨌈𫐎輢𫐏輖𫐐輗𫐑輨𫐒輷𫐓輮𫐔𨍰𫐕轊𫐖轇𫐗轐𫐘轗𫐙轠𫐷遱𫑘鄟𫑡鄳𫑷醶𫓥釟𫓦釨𫓧鈇𫓨鈛𫓩鏦𫓪鈆𫓫𨥟𫓬鉔𫓭鉠𫓮𨪕𫓯銈𫓰銊𫓱鐈𫓲銁𫓳𨰋𫓴鉾𫓵鋠𫓶鋗𫓷𫒡𫓸錽𫓹錤𫓺鐪𫓻錜𫓼𨨛𫓽錝𫓾錥𫓿𨨢𫔀鍊𫔁鐼𫔂鍉𫔃𨰲𫔄鍒𫔅鎍𫔆䥯𫔇鎞𫔈鎙𫔉𨰃𫔊鏥𫔋䥗𫔌鏾𫔍鐇𫔎鐍𫔏𨬖𫔐𨭸𫔑𨭖𫔒𨮳𫔓𨯟𫔔鑴𫔕𨰥𫔖𨲳𫔭開𫔮閒𫔯閗𫔰閞𫔲𨴹𫔴閵𫔵䦯𫔶闑𫔽𨼳𫕚𩀨𫕥霣𫕨𩅙𫖃靧𫖅䪊𫖇鞾𫖑𩎖𫖒韠𫖓𩏂𫖔韛𫖕韝𫖖𩏠𫖪𩑔𫖫䪴𫖬䪾𫖭𩒎𫖮顗𫖯頫𫖰䫂𫖱䫀𫖲䫟𫖳頵𫖴𩔳𫖵𩓥𫖶顅𫖷𩔑𫖸願𫖹顣𫖺䫶𫗇䫻𫗈𩗓𫗉𩗴𫗊䬓𫗋飋𫗚𩟗𫗞飦𫗟䬧𫗠餦𫗡𩚩𫗢飵𫗣飶𫗤𩛌𫗥餫𫗦餔𫗧餗𫗨𩛡𫗩饠𫗪餧𫗫餬𫗬餪𫗭餵𫗮餭𫗯餱𫗰䭔𫗱䭑𫗳𩝽𫗴饘𫗵饟𫘛馯𫘜馼𫘝駃𫘞駞𫘟駊𫘠駤𫘡駫𫘣駻𫘤騃𫘥騉𫘦騊𫘧騄𫘨騠𫘩騜𫘪騵𫘫騴𫘬騱𫘭騻𫘮䮰𫘯驓𫘰驙𫘱驨𫘽鬠𫙂𩯁𫚈鱮𫚉魟𫚊鰑𫚋鱄𫚌魦𫚍魵𫚎𩶁𫚏䱁𫚐䱀𫚑鮅𫚒鮄𫚓鮤𫚔鮰𫚕鰤𫚖鮆𫚗鮯𫚘𩻮𫚙鯆𫚚鮿𫚛鮵𫚜䲅𫚝𩸄𫚞鯬𫚟𩸡𫚠䱧𫚡鯞𫚢鰋𫚣鯾𫚤鰦𫚥鰕𫚦鰫𫚧鰽𫚨𩻗𫚩𩻬𫚪鱊𫚫鱢𫚬𩼶𫚭鱲𫛚鳽𫛛鳷𫛜鴀𫛝鴅𫛞鴃𫛟鸗𫛠𩿤𫛡鴔𫛢鸋𫛣鴥𫛤鴐𫛥鵊𫛦鴮𫛧𪀖𫛨鵧𫛩鴳𫛪鴽𫛫鶰𫛬䳜𫛭鵟𫛮䳤𫛯鶭𫛰䳢𫛱鵫𫛲鵰𫛳鵩𫛴鷤𫛵鶌𫛶鶒𫛷鶦𫛸鶗𫛹𪃧𫛺䳧𫛻𪃒𫛼䳫𫛽鷅𫛾𪆷𫜀鷐𫜁鷩𫜂𪅂𫜃鷣𫜄鷷𫜅䴋𫜊𪉸𫜑麷𫜒䴱𫜓𪌭𫜔䴽𫜕𪍠𫜙䵴𫜟𪓰𫜨䶕𫜩齧𫜪齩𫜫𫜦𫜬齰𫜭齭𫜮齴𫜯𪙏𫜰齾𫜲龓𫜳䶲𫝈㑮𫝋𠐊𫝦㛝𫝧㜐𫝨媈𫝩嬦𫝪𡟫𫝫婡𫝬嬇𫝭孆𫝮孄𫝵嶹𫞅𦠅𫞗潣𫞚澬𫞛㶆𫞝灍𫞠爧𫞡爃𫞢𤛱𫞣㹽𫞥珼𫞦璾𫞧𤩂𫞨璼𫞩璊𫞷𥢶𫟃絍𫟄綋𫟅綡𫟆緟𫟇𦆲𫟑䖅𫟕䕤𫟞訨𫟟詊𫟠譂𫟡誴𫟢䜖𫟤䡐𫟥䡩𫟦䡵𫟫𨞺𫟬𨟊𫟲釚𫟳釲𫟴鈖𫟵鈗𫟶銏𫟷鉝𫟸鉽𫟹鉷𫟺䤤𫟻銂𫟼鐽𫟽𨧰𫟾𨩰𫟿鎈𫠀䥄𫠁鑉𫠂閝𫠅韚𫠆頍𫠇𩖰𫠈䫾𫠊䮄𫠋騼𫠌𩦠𫠏𩵦𫠐魽𫠑䱸𫠒鱆𫠖𩿅𫠜齯𫢸僤𫧃𣍐𫧮𪋿𫫇噁𫬐㘔𫭟塸𫭢埨𫭼𡑍𫮃墠𫰛娙𫵷㠣𫶇嵽𫷷廞𫸩彄𬀩暐𬀪晛𬂩梜𬃊櫍𬇕澫𬇙浿𬇹漍𬉼熰𬊈燖𬊤燀𬍛瓅𬍡璗𬍤璕𬒈礐𬒗𥗽𬕂篢𬘓紃𬘘紞𬘡絪𬘩綎𬘫綄𬘬綪𬘭綝𬘯綧𬙂縯𬙊纆𬙋纕𬜬蔄𬜯䓣𬞟蘋𬟁虉𬟽蝀𬣙訏𬣞詝𬣡諓𬣳詪𬤇諲𬤊諟𬤝譓𬨂軝𬨎輶𬩽鄩𬪩醲𬬩釴𬬭錀𬬮鋹𬬱釿𬬸鉥𬬹鉮𬬻鑪𬬿鉊𬭁鉧𬭊𨧀𬭎鋐𬭚錞𬭛𨨏𬭤鍭𬭩鎓𬭬鏏𬭭鏚𬭯䥕𬭳𨭎𬭶𨭆𬭸鏻𬭼鐩𬮱闉𬮿隑𬯀隮𬯎隤𬱖頔𬱟頠𬳵駓𬳶駉𬳽駪𬳿駼𬴂騑𬴃騞𬴊驎𬶋鮈𬶍鮀𬶏鮠𬶐鮡𬶟鯻𬶠鰊𬶨鱀𬶭鰶𬶮鱚𬷕鵏𬸘鶠𬸚鸑𬸣鶱𬸦鷟𬸪鷭𬸯鷿𬹼齘𬺈齮𬺓齼𰬸繐𰰨菕𰶎譅𰾄鋂𰾭鑀𱊜𪈼"
@@ -3424,7 +3424,10 @@
"Not enough free memory to prepare this model. Close other programs, then resume.": "可用記憶體不足,無法準備這個模型。請關閉其他程式後點選「繼續」。",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs and rewrite again, or use the original.": "顯示卡記憶體不足,無法改寫。正在佔用:{programs}。關閉上述程式後可重新改寫,或使用原文。",
"Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs before rewriting again.": "顯示卡記憶體不足,無法改寫。正在佔用:{programs}。關閉上述程式後可重新改寫。",
+"Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed.": "顯示卡記憶體不足,無法改寫:還差約 {short} GiB,關閉其他程式也不夠。",
+"Not enough graphics memory to rewrite: about {short} GiB more is needed, even with other programs closed. Use the original.": "顯示卡記憶體不足,無法改寫:還差約 {short} GiB,關閉其他程式也不夠。請使用原文。",
"Not enough graphics memory to separate this sound.": "顯示卡記憶體不足,無法分離這段聲音。",
+"Not enough graphics memory to write the prompt: about {short} GiB more is needed, even with other programs closed. Write the prompt yourself instead.": "顯示卡記憶體不足,無法生成提示詞:還差約 {short} GiB,關閉其他程式也不夠。請自己寫提示詞。",
"Not enough graphics memory, so this will be slow.": "顯示卡記憶體不足,這次會很慢。",
"Not enough graphics memory. Close other GPU apps and try again.": "顯示卡記憶體不足,請關閉其他顯示卡程式後再試。",
"Not enough graphics memory. In use: {programs}. Close them and try again.": "顯示卡記憶體不足,無法生成提示詞。正在佔用:{programs}。關閉後再試。",
diff --git a/web/prompt_enhance.js b/web/prompt_enhance.js
index f2fe15b2..c90b3365 100644
--- a/web/prompt_enhance.js
+++ b/web/prompt_enhance.js
@@ -1,5 +1,6 @@
import {isNetworkTypeError, connectionLostText, detectBrowserExtension, browserExtensionAdvice} from './browser_extension.js';
import {parse as parseTimed} from './timed_prompt.js';
+import {keepShortWordsIn} from './i18n.js';
// Words that ask a person to say something particular. Talk and chat are left out: people chatting in a cafe is
// background voices, where unclear speech is what was asked for.
@@ -189,6 +190,8 @@ export function createPromptEnhancer({node, input, editor, api, context, setText
cancel.dataset.fvTipName = t('Cancel', '取消'); cancel.dataset.fvTipUse = t('Stop rewriting; keep the prompt as written', '停止改写,保留原来的提示词');
const status = el('div', null, 'fv-enhance-status'); status.setAttribute('role', 'status');
const statusText = el('span', null, 'fv-enhance-status-text');
+ // A short Russian or Ukrainian word stays with the word after it each time the line changes (only those languages).
+ keepShortWordsIn(statusText);
const meter = el('div', null, 'fv-enhance-meter'), fill = el('i');
meter.setAttribute('role', 'progressbar'); meter.setAttribute('aria-valuemin', '0'); meter.setAttribute('aria-valuemax', '100');
// The shared "Report a problem" button, handed in by the page.
@@ -340,6 +343,13 @@ export function createPromptEnhancer({node, input, editor, api, context, setText
// Other programs holding graphics memory, as the server measured them; no-break spaces keep name, size and unit on one line.
const holderNames = holders => (Array.isArray(holders) ? holders : []).slice(0, 3)
.map(row => `${String(row?.name || '').slice(0, 60)}\u00a0${((row?.bytes || 0) / 2 ** 30).toFixed(1)}\u00a0GiB`).join(t(', ', '、'));
+ // Closing the listed programs frees only what they hold: when that is less than the model was short, naming them
+ // would send the user to close programs for nothing, so the sentence says how much is missing instead (null: say the programs).
+ const shortOf = error => {
+ const short = error?.short, listed = (Array.isArray(error?.holders) ? error.holders : [])
+ .reduce((sum, row) => sum + (Number.isFinite(row?.bytes) && row.bytes > 0 ? row.bytes : 0), 0);
+ return Number.isFinite(short) && short > 0 && short > listed ? { short: Math.max(0.1, short / 2 ** 30).toFixed(1) } : null;
+ };
const reasonOf = error => String(error?.message || '').replace(/[A-Za-z]:[\\/][^\s'"]*|\/[^\s'"]+\/[^\s'"]*/g, '').replace(/\s+/g, ' ').trim().slice(0, 120);
// A dropped request names a browser extension only when the error carries evidence of one.
const networkText = error => {
@@ -374,7 +384,10 @@ export function createPromptEnhancer({node, input, editor, api, context, setText
? t('The prompt and references are about {percent}% over the rewriting limit. Shorten the prompt or use fewer references, or use the original.',
'提示词和参考图超出改写上限约 {percent}%,请精简提示词或减少参考图,或使用原文。', contextNumbers(error))
: t('The scene is too long for this model. Shorten it or use the original.', '内容超出改写模型容量,请精简或使用原文。'),
- out_of_memory: holderNames(error?.holders)
+ out_of_memory: shortOf(error)
+ ? t('Not enough graphics memory to rewrite: about {short}\u00a0GiB more is needed, even with other programs closed. Use the original.',
+ '显存不足,无法改写:还差约 {short}\u00a0GiB,关闭其他程序也不够。请使用原文。', shortOf(error))
+ : holderNames(error?.holders)
? t('Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs and rewrite again, or use the original.',
'显存不足,无法改写。正在占用:{programs}。关闭上述程序后可重新改写,或使用原文。', { programs: holderNames(error.holders) })
: t('Not enough memory to rewrite. Close other GPU apps or use the original.', '改写时内存不足,请关闭其他显卡程序或使用原文。'),
@@ -406,7 +419,10 @@ export function createPromptEnhancer({node, input, editor, api, context, setText
: error?.context
? t('The prompt and references are about {percent}% over the rewriting limit. Shorten them before rewriting again.', '提示词和参考图超出改写上限约 {percent}%,精简后可再改写。', contextNumbers(error))
: t('The scene is too long for the rewrite model.', '内容超出改写模型容量。'),
- out_of_memory: holderNames(error?.holders)
+ out_of_memory: shortOf(error)
+ ? t('Not enough graphics memory to rewrite: about {short}\u00a0GiB more is needed, even with other programs closed.',
+ '显存不足,无法改写:还差约 {short}\u00a0GiB,关闭其他程序也不够。', shortOf(error))
+ : holderNames(error?.holders)
? t('Not enough graphics memory to rewrite. In use: {programs}. Close the listed programs before rewriting again.',
'显存不足,无法改写。正在占用:{programs}。关闭上述程序后可重新改写。', { programs: holderNames(error.holders) })
: t('Not enough memory to rewrite. Close other GPU apps before rewriting again.', '改写时内存不足,关闭其他显卡程序后可再改写。'),
@@ -529,7 +545,7 @@ export function createPromptEnhancer({node, input, editor, api, context, setText
const check = row.error === 'invalid_output' ? checkOf(row) : null;
const context = row.error === 'context_length' ? contextOf(row) : null;
memoryFacts = row.error === 'out_of_memory' ? {...factsOf(row.diagnostics), ...failureOf(row)} : check ? checkFacts(check) : context ? {...context} : null;
- throw Object.assign(new Error(row.error || 'rewrite_failed'), {ramBytes: row.diagnostics?.ram_required_bytes, holders: row.gpu_holders, check, context});
+ throw Object.assign(new Error(row.error || 'rewrite_failed'), {ramBytes: row.diagnostics?.ram_required_bytes, holders: row.gpu_holders, short: row.gpu_short_bytes, check, context});
}
if (row.phase === 'cancelled') throw new Error(action === 'install' ? 'download_failed' : 'cancelled');
if (disposed) throw new Error('cancelled');
@@ -669,7 +685,10 @@ export function createPromptEnhancer({node, input, editor, api, context, setText
unreadable_video: t('Could not read frames from this video. Choose another file.', '无法读取这个视频的画面,请换一个文件。'),
unsupported_media: t('Only images and videos can be turned into a prompt.', '只能用图片或视频生成提示词。'),
invalid_media: t('Could not read this image. Choose another file.', '无法读取这张图片,请换一个文件。'),
- out_of_memory: holderNames(error?.holders)
+ out_of_memory: shortOf(error)
+ ? t('Not enough graphics memory to write the prompt: about {short}\u00a0GiB more is needed, even with other programs closed. Write the prompt yourself instead.',
+ '显存不足,无法生成提示词:还差约 {short}\u00a0GiB,关闭其他程序也不够。请自己写提示词。', shortOf(error))
+ : holderNames(error?.holders)
? t('Not enough graphics memory. In use: {programs}. Close them and try again.', '显存不足,无法生成提示词。正在占用:{programs}。关闭后再试。', { programs: holderNames(error.holders) })
: t('Not enough graphics memory. Close other GPU apps and try again.', '显存不足,请关闭其他显卡程序后再试。'),
ram_space: t('Loading needs about {size} GiB of free RAM. Close other programs and try again.', '加载需约 {size} GiB 可用内存,请关闭其他程序后再试。', { size: gib(error?.ramBytes || ramBytes) }),
From 29075180738347ecbb211b0fb157486bf5ea015d Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 11:48:50 +0000
Subject: [PATCH 19/20] Launcher: failed GPU kernel checks name each failed
check and its last line, without changing...
Launcher: failed GPU kernel checks name each failed check and its last line, without changing the guidance card
Starting an offline bundle ran the kernel checks and raised only the summary
sentence, so a pasted launcher error never said which check failed or why.
The launcher now adds the same lines a request's error carries. Those lines
are left out when the launcher picks its guidance, so a check that failed on
memory, a denied file or a missing package keeps the card it had before.
---
freevideo_engine/failure_details.py | 24 +++++++++++++++++++++++-
freevideo_engine/portable.py | 7 ++++++-
2 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/freevideo_engine/failure_details.py b/freevideo_engine/failure_details.py
index 2236caa9..c2c29e50 100644
--- a/freevideo_engine/failure_details.py
+++ b/freevideo_engine/failure_details.py
@@ -447,6 +447,28 @@ def kernel_check_lines(rows, limit=6, width=240):
return ''.join('\n' + line for line in lines)
+# The lines kernel_check_lines writes under the cause: one per failed check (": "), and the summary
+# lines around them.
+_KERNEL_CHECK_LINE = re.compile(r'(?:Required linear kernel did not pass\.|No attention backend passed\.'
+ r'|\d+ more failed checks are in the saved details\.|[a-z][a-z0-9-]*: .*)')
+
+
+def _without_kernel_check_lines(text):
+ """The failed kernel checks' cause without the lines kernel_check_lines put under it, when matching failure guidance.
+
+ Those lines tell the reader why each check failed; one that mentions memory, a denied file or a missing package must
+ not turn the card into that failure's guidance. The complete text stays in the caller's retained and copied output.
+ """
+ kept, below_cause = [], False
+ # A traceback also quotes the raising source line, so every line holding the cause is followed.
+ for line in text.split('\n'):
+ if below_cause and _KERNEL_CHECK_LINE.fullmatch(line):
+ continue
+ below_cause = KERNEL_CHECKS_FAILED in line
+ kept.append(line)
+ return '\n'.join(kept)
+
+
def with_kernel_check_lines(error, hardware):
"""The error of failed GPU kernel checks followed by what each failed check reported; any other error as it is."""
if not str(error).startswith(KERNEL_CHECKS_FAILED):
@@ -1171,7 +1193,7 @@ class names and errno, no text), when the message is that exception's str(); it
"""
if not value:
return dict(title='', detail='', action='', kind='')
- text = _without_ready_curl_diagnostics(str(value))
+ text = _without_kernel_check_lines(_without_ready_curl_diagnostics(str(value)))
# Match only the cause position, never an echoed input or a log line below it.
# Holder diagnostics follow this exact cause; they are not part of its signature.
causes = [line.strip() for line in text.splitlines() if line.strip()]
diff --git a/freevideo_engine/portable.py b/freevideo_engine/portable.py
index 0fad0f25..5e6e0b35 100644
--- a/freevideo_engine/portable.py
+++ b/freevideo_engine/portable.py
@@ -236,7 +236,12 @@ def initialize(root, progress=lambda **kw: None):
# foreign ready machine.json or precompiled GPU cache ships in a ZIP.
from .kernel_capabilities import available_backends, readiness, receipt_path
progress(stage='gpu', detail='Testing acceleration', done=0, total=1)
- available_backends(hardware)
+ try:
+ available_backends(hardware)
+ except RuntimeError as error:
+ # A launcher error arrives as pasted text: it names each failed check and its last line, as a request's does.
+ from .failure_details import with_kernel_check_lines
+ raise with_kernel_check_lines(error, hardware) from None
if machine['prepared_format'] == 'int8_convrot':
rows = json.loads(io_path(receipt_path()).read_text(encoding='utf-8')).get('kernel_probes', [])
if not readiness(rows).get('int8_ready'):
From f0218276164936e7c257132a035697a2ad76e0ec Mon Sep 17 00:00:00 2001
From: Bowen Xue
Date: Wed, 2 Dec 2026 20:53:45 +0000
Subject: [PATCH 20/20] Release 0.6.21: update notes
---
freevideo_engine/release_notes.json | 118 ++++++++++++++--------------
1 file changed, 60 insertions(+), 58 deletions(-)
diff --git a/freevideo_engine/release_notes.json b/freevideo_engine/release_notes.json
index 5c14c8aa..da4a39c2 100644
--- a/freevideo_engine/release_notes.json
+++ b/freevideo_engine/release_notes.json
@@ -1,41 +1,74 @@
{
"schema": 1,
- "product_version": "0.6.20",
+ "product_version": "0.6.21",
"en": {
- "summary": "0.6.20 explains when low virtual memory on Windows slowed a generation, keeps finished files when an installation is stopped, lets an audio card's \"Use as is\" work without a connected reference, and improves view switching, the launcher, the Create panel, the edit view and Creations.",
+ "summary": "0.6.21 continues an installation from another download source when a mirror download fails, fixes generation stopping on a Mac after choosing Fast, removes background music from character voice samples on NVIDIA graphics cards, and improves the launcher, prompt rewriting, Autopilot, the edit view, Settings, the Create panel and diagnostic reports.",
"changes": [
- "Windows: When a generation was slower because Windows was low on virtual memory, the note after it says so and suggests increasing virtual memory.",
- "Installation: When an installation is stopped, by you or because Windows signed out or restarted, the launcher says it stopped and that finished files are kept, and Check & resume continues it, instead of showing an error.",
- "Launcher: When FreeVideo cannot check whether a video is being generated, the close window says so instead of saying one is running. The close window fits small windows and long translations, and its buttons stack when needed.",
- "Audio: An audio card set to \"Use as is\" now works when the Media node is also set to \"Use as is\" with nothing connected to Reference audio, and the related messages point to the card's switch.",
- "Switching views: Moving between views no longer shows ComfyUI's node graph for a moment, also on computers without view transitions, and the tab you pressed is highlighted at once.",
- "Starting a video: Closing or refreshing the page in the first minutes after FreeVideo starts no longer releases the model being prepared for the next video.",
- "Create panel: Before your first video, three example prompts below the stage fill in the prompt when chosen, and the empty Creations column says where videos will appear. The note under the quality levels updates as soon as the Fast level appears. Download report has a visible label below the video and is also in a video's details in Creations. The page check card no longer covers the top bar and can be used.",
- "Edit view, recording: An empty recording track stays hidden until you record. When the microphone chosen before is missing or busy, or no microphone is found, the recording bar says which and what to do next.",
- "Edit view, tracks and text: Solo and lock on separated tracks look ready to press, and a locked recording track says how to unlock it. The narration panel's Listen button shows its icon again, and saving a text style no longer loses the focus or the notice in the saved styles row.",
- "Creations: When creations cannot be deleted because an edit uses them, the message names the edit and can open it.",
- "Phone layout: Prompt tips in the Create view's \"...\" menu now has its icon.",
- "Russian and Ukrainian: In the Create view's details and progress notes, one- and two-letter words stay on the line of the word that follows them."
+ "Installation: When downloading the ComfyUI source from a mirror in China fails or stalls, the installation continues from another download source, and the needed source code is also fetched when the installation folder belongs to a different user.",
+ "Launcher: When an engine update fails while waiting for the current video to finish, the launcher returns to its state before the update, and when the graphics acceleration check does not pass, the error details name each check that did not pass. In a narrow launcher window, settings tabs and choice names show in full without breaking inside a word, and choice sets work from the keyboard: Tab moves into a set, the arrow keys move between its choices, and Home and End go to the first and last.",
+ "Mac: Choosing Fast after opening the Create panel no longer makes generation and the queue stop with an error.",
+ "Character voices: When a character's voice sample has background music in its pauses, FreeVideo removes that music on NVIDIA graphics cards, so the voice-over no longer carries the sample's music; if it cannot be separated, the original sample is kept.",
+ "Prompt rewriting: Rewriting a prompt no longer fails for lack of graphics memory on cards with less memory; when there really is not enough, it says how much more is needed. On the Images page, a rewrite that leaves out a reference picture's label no longer fails as a whole: the label is added back and the notice says which pictures were added.",
+ "Autopilot: When the assistant service could not start this time, the Autopilot tab still shows and says to restart FreeVideo.",
+ "Edit view: Separating vocals from music and redoing a line's voice-over renew an expired page session by themselves instead of failing as unauthorized.",
+ "Settings: Version & updates shows a summary of each release's notes first, and the full notes when expanded.",
+ "Create panel: The Quality row shows the estimated time directly, with even spacing at every window width.",
+ "Diagnostic reports: The diagnostics sent with feedback now say why the engine last stopped."
]
},
"zh": {
- "summary": "0.6.20 会说明 Windows 虚拟内存不足导致的生成变慢,安装被停止时保留已完成的文件,让音频卡片的“原样使用”在未接参考音频时也能用,并改进了视图切换、启动器、创作面板、剪辑视图和作品库。",
+ "summary": "0.6.21 让安装在国内镜像下载失败时自动换到其他下载源,修复 Mac 上选择“极速”后生成停止的问题,在 NVIDIA 显卡上去掉角色语音样本里的背景音乐,并改进了启动器、提示词改写、AI 全自动、剪辑视图、设置、创作面板和诊断报告。",
"changes": [
- "Windows:生成因 Windows 虚拟内存不足而变慢时,生成结束后的说明会写明这一点,并建议调大虚拟内存。",
- "安装:安装被你停止,或因 Windows 注销、重启而停止时,启动器会写明安装已停止、已完成的文件会保留,点“检查并继续”可继续安装,不再当作错误显示。",
- "启动器:未能确认是否有视频正在生成时,关闭窗口会如实说明,不再说有视频正在生成。关闭窗口能放进较小的窗口和较长的译文,按钮放不下时上下排列。",
- "音频:音频卡片选了“原样使用”、素材节点也设为“原样使用”且没有接参考音频时,可以正常生成;相关提示会写明在卡片上选择的办法。",
- "视图切换:在视图之间切换时不再短暂露出 ComfyUI 的节点图,没有视图过渡效果的电脑上也一样;按下的页签会立刻亮起。",
- "开始生成视频:FreeVideo 启动后的头几分钟里关闭或刷新页面,为下一条视频准备的模型不会再被放掉。",
- "创作面板:第一次生成前,舞台下方有三条示例提示词,选中后会填进提示词框;作品栏为空时会写明生成的视频会出现在这里。极速档出现后,质量档下方的说明立即更新。“下载报告”在视频下方带文字显示,作品库的视频详情里也有。页面检查的卡片不再盖住顶栏,并且可以操作。",
- "剪辑视图·录音:没有内容的录音轨在录音前不显示。之前选的麦克风不在或被占用,或者找不到麦克风时,录音条会写明是哪种情况和下一步。",
- "剪辑视图·轨道和文字:分离轨的独奏和锁定键看起来就能按,录音轨锁定时会写明怎么解锁。旁白面板的“试听”键重新显示图标;保存文字样式时,样式那一行的焦点和提示不再丢失。",
- "作品库:作品因被剪辑使用而不能删除时,提示会写出是哪个剪辑,并能打开它。",
- "手机版式:创作视图“⋯”菜单里的“提示词写法”有了图标。",
- "俄语和乌克兰语:创作视图的详情和进度说明里,一两个字母的短词和后面的词保持在同一行。"
+ "安装:从国内镜像下载 ComfyUI 源码失败或卡住,会自动换到其他下载源继续;安装文件夹的所有者和当前用户不同时,也能正常取得所需的源码。",
+ "启动器:引擎更新在等待当前视频完成时失败,启动器会恢复到更新前的状态;显卡加速检查没有通过时,错误详情会写明是哪一项。启动器窗口较窄时,设置页签和选项名称完整显示,不在词中间断开;选项组可以用键盘操作:按 Tab 进入一组,用方向键在选项间移动,按 Home、End 跳到第一项和最后一项。",
+ "Mac:打开创作面板后选择“极速”,生成和队列不再报错停止。",
+ "角色配音:角色的语音样本在停顿处带有背景音乐时,FreeVideo 会在 NVIDIA 显卡上自动去掉这段音乐,配音时不再带上原样本里的配乐;未能分离时保留原样本。",
+ "提示词改写:显存较小的显卡改写提示词时不再因显存不足而失败;显存确实不够时,会写明还差多少。图片页的改写漏掉参考图的图号时,会自动补回并说明补了哪几张,不再因此整次改写失败。",
+ "AI 全自动:助手服务这次未能启动时,“AI 全自动”页签照常显示,并提示重启 FreeVideo。",
+ "剪辑视图:分离人声和伴奏、修改台词配音时,页面会话过期后会自动续上,不再因“未授权”而失败。",
+ "设置:“版本与更新”中,更新说明先显示摘要,展开后显示全文。",
+ "创作面板:“质量”一行直接显示预计用时,各种窗口宽度下间距一致。",
+ "诊断报告:反馈附带的诊断信息会写明引擎上一次停止的原因。"
]
},
"history": [
+ {
+ "product_version": "0.6.20",
+ "en": {
+ "summary": "0.6.20 explains when low virtual memory on Windows slowed a generation, keeps finished files when an installation is stopped, lets an audio card's \"Use as is\" work without a connected reference, and improves view switching, the launcher, the Create panel, the edit view and Creations.",
+ "changes": [
+ "Windows: When a generation was slower because Windows was low on virtual memory, the note after it says so and suggests increasing virtual memory.",
+ "Installation: When an installation is stopped, by you or because Windows signed out or restarted, the launcher says it stopped and that finished files are kept, and Check & resume continues it, instead of showing an error.",
+ "Launcher: When FreeVideo cannot check whether a video is being generated, the close window says so instead of saying one is running. The close window fits small windows and long translations, and its buttons stack when needed.",
+ "Audio: An audio card set to \"Use as is\" now works when the Media node is also set to \"Use as is\" with nothing connected to Reference audio, and the related messages point to the card's switch.",
+ "Switching views: Moving between views no longer shows ComfyUI's node graph for a moment, also on computers without view transitions, and the tab you pressed is highlighted at once.",
+ "Starting a video: Closing or refreshing the page in the first minutes after FreeVideo starts no longer releases the model being prepared for the next video.",
+ "Create panel: Before your first video, three example prompts below the stage fill in the prompt when chosen, and the empty Creations column says where videos will appear. The note under the quality levels updates as soon as the Fast level appears. Download report has a visible label below the video and is also in a video's details in Creations. The page check card no longer covers the top bar and can be used.",
+ "Edit view, recording: An empty recording track stays hidden until you record. When the microphone chosen before is missing or busy, or no microphone is found, the recording bar says which and what to do next.",
+ "Edit view, tracks and text: Solo and lock on separated tracks look ready to press, and a locked recording track says how to unlock it. The narration panel's Listen button shows its icon again, and saving a text style no longer loses the focus or the notice in the saved styles row.",
+ "Creations: When creations cannot be deleted because an edit uses them, the message names the edit and can open it.",
+ "Phone layout: Prompt tips in the Create view's \"...\" menu now has its icon.",
+ "Russian and Ukrainian: In the Create view's details and progress notes, one- and two-letter words stay on the line of the word that follows them."
+ ]
+ },
+ "zh": {
+ "summary": "0.6.20 会说明 Windows 虚拟内存不足导致的生成变慢,安装被停止时保留已完成的文件,让音频卡片的“原样使用”在未接参考音频时也能用,并改进了视图切换、启动器、创作面板、剪辑视图和作品库。",
+ "changes": [
+ "Windows:生成因 Windows 虚拟内存不足而变慢时,生成结束后的说明会写明这一点,并建议调大虚拟内存。",
+ "安装:安装被你停止,或因 Windows 注销、重启而停止时,启动器会写明安装已停止、已完成的文件会保留,点“检查并继续”可继续安装,不再当作错误显示。",
+ "启动器:未能确认是否有视频正在生成时,关闭窗口会如实说明,不再说有视频正在生成。关闭窗口能放进较小的窗口和较长的译文,按钮放不下时上下排列。",
+ "音频:音频卡片选了“原样使用”、素材节点也设为“原样使用”且没有接参考音频时,可以正常生成;相关提示会写明在卡片上选择的办法。",
+ "视图切换:在视图之间切换时不再短暂露出 ComfyUI 的节点图,没有视图过渡效果的电脑上也一样;按下的页签会立刻亮起。",
+ "开始生成视频:FreeVideo 启动后的头几分钟里关闭或刷新页面,为下一条视频准备的模型不会再被放掉。",
+ "创作面板:第一次生成前,舞台下方有三条示例提示词,选中后会填进提示词框;作品栏为空时会写明生成的视频会出现在这里。极速档出现后,质量档下方的说明立即更新。“下载报告”在视频下方带文字显示,作品库的视频详情里也有。页面检查的卡片不再盖住顶栏,并且可以操作。",
+ "剪辑视图·录音:没有内容的录音轨在录音前不显示。之前选的麦克风不在或被占用,或者找不到麦克风时,录音条会写明是哪种情况和下一步。",
+ "剪辑视图·轨道和文字:分离轨的独奏和锁定键看起来就能按,录音轨锁定时会写明怎么解锁。旁白面板的“试听”键重新显示图标;保存文字样式时,样式那一行的焦点和提示不再丢失。",
+ "作品库:作品因被剪辑使用而不能删除时,提示会写出是哪个剪辑,并能打开它。",
+ "手机版式:创作视图“⋯”菜单里的“提示词写法”有了图标。",
+ "俄语和乌克兰语:创作视图的详情和进度说明里,一两个字母的短词和后面的词保持在同一行。"
+ ]
+ }
+ },
{
"product_version": "0.6.19",
"en": {
@@ -410,37 +443,6 @@
"显存与内存为同一片的 NVIDIA 电脑(如 DGX Spark):规划时这片内存只算一次,并为系统留出一部分。Windows on Arm 电脑:安装时按电脑架构选择下载内容,这类电脑上无法使用配音。"
]
}
- },
- {
- "product_version": "0.6.8",
- "en": {
- "summary": "0.6.8 keeps models on the graphics card more often when pictures and videos alternate, has background preparation give the card back sooner when a generation starts, lets results be upscaled from their own menu, makes tutorial chapters searchable from the command palette, and explains more failures.",
- "changes": [
- "Fewer reloads when pictures and videos alternate: when only system memory is short, models already on the graphics card are no longer cleared with it; after a picture, the video model returns to the card; when both cannot fit, the one used last stays.",
- "A new generation gets the graphics card sooner: when Generate is clicked, background compiling and text-encoder preparation stop within seconds and give the card back instead of finishing first.",
- "Less waiting in the second pass on 8 GB cards: on cards with less video memory, the second pass no longer waits for the processor to join intermediate results; the output is identical.",
- "Upscale from the result menu: a result's \"⋯\" menu offers \"Upscale to W × H\", the same as the library's right-click menu.",
- "Search the tutorial from the command palette: while text is typed in the command palette, matching tutorial chapters are listed after the related actions, and choosing one opens that chapter; Chinese and English chapter names and common terms can all be searched.",
- "Launcher path tip: a folder's full path is shown as a tip only when the path is cut off.",
- "More failures explain their cause: the prompt model and dubbing say when they fail for lack of disk space; a failure whose cause the engine has stated is no longer shown as an unexplained process exit and gets advice for that cause; on a Mac, using reference media together with first and last frames explains that one of the two has to be kept, and what to do next.",
- "More accurate LoRA check: step-distillation acceleration LoRAs saved in other layouts are recognized as acceleration LoRAs, and language-model LoRAs are identified as such.",
- "Edit view details: the title bar is no longer covered by the timeline's drag layers; at phone width the toolbar fits in one row; closing the Edit view clears the \"last edit not found\" notice; the slow-interface notice stays in the notification list until it is closed."
- ]
- },
- "zh": {
- "summary": "0.6.8 让图片与视频交替使用时模型更多留在显卡上,开始生成时后台准备工作更快让出显卡;结果菜单可以直接放大,命令面板可以搜索教程章节,更多失败会说明原因。",
- "changes": [
- "图片和视频交替使用时更少重复载入:只是电脑内存紧张时,已在显卡上的模型不再被一并清出;图片用完后,视频模型会重新回到显卡;两者放不下时,保留最近使用的一个。",
- "开始生成更快接手显卡:点击生成时,后台的编译和文本编码器准备会在几秒内停下并让出显卡,不再等它们做完。",
- "8 GB 显卡第二遍更少等待:显存较小时,第二遍不再等待处理器拼接中间结果,画面与之前完全一致。",
- "结果菜单可以放大:生成结果的“⋯”菜单中可直接选择“放大到 宽 × 高”,与作品库右键菜单一致。",
- "命令面板可以搜索教程:在命令面板中输入文字时,匹配的教程章节会列在相关操作之后,选择即可打开该章;中文、英文章节名和常用说法都可搜索。",
- "启动器路径提示:文件夹路径只在显示不全时才出现完整路径提示。",
- "更多失败会说明原因:提示词模型和配音因磁盘空间不足失败时会说明;引擎已写明原因的失败不再显示为原因不明的进程退出,并给出对应的处理建议;在 Mac 上同时使用参考素材和首尾帧时,会说明需要保留其中一种,以及下一步怎么做。",
- "LoRA 检查更准确:以其他方式保存的步数蒸馏加速 LoRA 也能被识别为加速 LoRA;语言模型的 LoRA 会被如实指出。",
- "剪辑视图细节:标题栏不再被时间线拖动层遮住;手机宽度下工具条完整放在一行;关闭剪辑视图后,“找不到上次的剪辑”提示随之清除;界面变慢的提示会保留在通知列表中,直到手动关闭。"
- ]
- }
}
]
}