Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

Clarify image model damage messages and test bilingual failure copy

Bowen Xue716392845cf4
diff --git a/freevideo_engine/failure_details.py b/freevideo_engine/failure_details.py
index f57b912..ada2678 100644
--- a/freevideo_engine/failure_details.py
+++ b/freevideo_engine/failure_details.py
@@ -16,8 +16,8 @@ QUALITY_LEVELS = (('Light', '轻量'), ('Medium', '标准'), ('High', '精细'),
IMAGE_PACK_FAILURES = {
'disk_space': ('Not enough disk space to install the image model.', '磁盘空间不足,无法安装图像模型。'),
'offline': ('The network is unavailable; the image model could not be downloaded.', '网络不通,无法下载图像模型。'),
- 'source_failed': ('The download source is unreachable or could not complete the image model download.', '下载源不可达或未能完成图像模型下载。'),
- 'integrity_failed': ('The image model files failed verification; repair them in the launcher.', '图像模型文件校验失败,请在启动器里修复。'),
+ 'source_failed': ("The image model download didn't finish. Check your network and try again.", '图像模型没有下载完成,请检查网络后重试。'),
+ 'integrity_failed': ('The image model files are incomplete or damaged. Repair them in the launcher.', '图像模型文件不完整或已损坏,请在启动器里修复。'),
'write_failed': ('The image model files are in use or cannot be written or deleted.', '图像模型文件被占用,或无法写入/删除。'),
'invalid_catalog': ('The image model package version is incompatible; update FreeVideo and try again.', '图像模型包版本不匹配,请更新 FreeVideo 后重试。'),
'busy': ('Another task is using the image model package; try again when it finishes.', '图像模型包被其他任务占用,完成后再试。'),
@@ -94,12 +94,12 @@ def sampling_table_failure(value, *, zh=False):
# A custom step count is not a quality level (Iris): no "档" / "quality level" for it.
if zh:
if index is None:
- title = '“自定义(%d 步)”的采样表还没有下载' % details['base_steps']
- what = '这个步数的采样表'
+ title = '“自定义(%d 步)”还没有下载' % details['base_steps']
+ what = '这个步数需要的文件'
else:
- title = '“%s”档的采样表还没有下载' % QUALITY_LEVELS[index][1]
- what = '这一档的采样表'
- detail = ('这次生成需要先下载%s(约 %s),但这次没能下载。'
+ title = '“%s”还没有下载' % QUALITY_LEVELS[index][1]
+ what = '这一档需要的文件'
+ detail = ('这次生成要先下载%s(约 %s),但没能下载完。'
'请确认网络连接后再生成一次,FreeVideo 会自动下载。') % (what, size)
if available:
detail += '也可以改用已经可以使用的%s档。' % available
@@ -203,14 +203,14 @@ PLACE_RULES = (
('This disk cannot hold the models', '这块硬盘放不下模型'),
('It is formatted as FAT32, which stores files up to 4 GB; the text encoder alone is 15.7 GB. '
'Choose a folder on an APFS or Mac OS Extended disk.',
- '它是 FAT32 格式,单个文件最大 4 GB,而文本编码器一个文件就有 15.7 GB。'
- '请选择 APFS 或 Mac OS 扩展格式硬盘上的文件夹。')),
+ '它不能存放 4 GB 以上的文件。'
+ '请选择其他硬盘上的文件夹。')),
(r'The installation folder is on an exFAT disk', 'disk-format',
('This disk cannot hold the FreeVideo environment', '这块硬盘装不了 FreeVideo 的运行环境'),
("It is formatted as exFAT, where FreeVideo's Python environment does not work. "
'Choose a folder on an APFS or Mac OS Extended disk.',
- '它是 exFAT 格式,FreeVideo 的 Python 运行环境在这种格式上无法正常工作。'
- '请选择 APFS 或 Mac OS 扩展格式硬盘上的文件夹。')),
+ '它不能安装 FreeVideo。'
+ '请选择其他硬盘上的文件夹。')),
(r'The installation folder is on a disk that is not connected', 'disk-missing',
('The disk is not connected', '这块硬盘没有连接'),
('Connect the disk that holds the installation folder, then check again, or choose another folder.',
@@ -218,7 +218,7 @@ PLACE_RULES = (
(r'The installation folder is on a read-only disk', 'disk-read-only',
('This disk is read-only', '这块硬盘是只读的'),
('This Mac can read the disk but not write to it, as with NTFS disks. Choose a folder on another disk.',
- '这台 Mac 只能读取这块硬盘,不能写入(例如 NTFS 格式的硬盘)。请选择其他硬盘上的文件夹。')),
+ '这块硬盘只能读取、不能写入,请选择其他硬盘上的文件夹。')),
)
@@ -263,7 +263,7 @@ WITHOUT_REPAIR = {
for kind, why in (('plan-changed-files', 'files'), ('plan-changed', 'other'))},
'dependencies': dict(
busy=('When the current task ends, a Repair button appears here; it checks this installation and restores what is missing.',
- '当前任务结束后,这里会出现“修复”按钮,点击后 FreeVideo 将检查这份安装并补装缺失的组件。'),
+ '当前任务结束后,这里会出现“修复”按钮,点击后会补装缺失的组件。'),
bundled=('The portable package is missing components it needs and cannot restore them in one step. ' + _EXTRACT[0],
'整合包缺少运行所需的组件,不能一键补齐。' + _EXTRACT[1]),
offline=('An imported offline environment is missing components it needs and cannot restore them in one step. ' + _IMPORT[0],
@@ -271,7 +271,7 @@ WITHOUT_REPAIR = {
none=WITHOUT_REPAIR_NONE),
'runtime-libraries': dict(
busy=('When the current task ends, a Repair button appears here; it reinstalls a complete copy of PyTorch and keeps your models and videos.',
- '当前任务结束后,这里会出现“修复”按钮,点击后 FreeVideo 将重新安装完整的 PyTorch,模型和视频都会保留。'),
+ '当前任务结束后,这里会出现“修复”按钮,点击后会重新安装运行组件,模型和视频都会保留。'),
bundled=('The portable package cannot be repaired in one step. ' + _EXTRACT[0],
'整合包版不能一键修复。' + _EXTRACT[1]),
offline=('An imported offline environment cannot be repaired in one step. ' + _IMPORT[0],
@@ -282,13 +282,13 @@ WITHOUT_REPAIR = {
'update-unfinished': dict(
busy=('FreeVideo is back on the previous version and works as before. When the current task ends, a Repair button appears here; '
'clicking it reinstalls the engine environment and updates again. The details give the reason.',
- 'FreeVideo 已退回原来的版本,可以照常使用。当前任务结束后,这里会出现“修复”按钮;点击后会重新安装引擎环境并再次更新。原因写在详情里。'),
+ 'FreeVideo 已退回原来的版本,可以照常使用。当前任务结束后,点这里出现的“修复”可以再次更新。'),
**dict.fromkeys(('bundled', 'offline'), (
'FreeVideo is back on the previous version and works as before; the details give the reason.',
'FreeVideo 已退回原来的版本,可以照常使用;原因写在详情里。')),
none=('FreeVideo is back on the previous version and works as before. To update again, open Installation in the sidebar, keep the same folder, '
'click Continue and then Check & continue, and finally click Install & launch on the confirmation page; the details give the reason.',
- 'FreeVideo 已退回原来的版本,可以照常使用。要再次更新,请在左栏的“安装”页保持同一个安装目录,依次点击“继续”和“检查并继续”,最后在确认页点击“安装并启动”;原因写在详情里。')),
+ 'FreeVideo 已退回原来的版本,可以照常使用。要再次更新,请在“安装”页保持同一个安装目录,依次点“继续”“检查并继续”和“安装并启动”。')),
}
@@ -411,8 +411,8 @@ def launcher_failure(value, *, zh=False, other_disk=False, disk_name='', can_rep
if can_repair and repairs_comfy and (_stopped_on_missing_module(summary) or ENVIRONMENT_FILES in summary):
return dict(title=DEPENDENCIES[0][zh], detail='', action=DEPENDENCIES[1][zh], kind='dependencies')
return dict(title='ComfyUI 启动失败' if zh else 'ComfyUI could not start',
- detail='ComfyUI 进程在启动时退出。' if zh else 'The ComfyUI process exited during startup.',
- action='展开详情查看退出码与插件错误;已有 ComfyUI 可使用原启动器检查。' if zh else
+ detail='ComfyUI 启动时退出了。' if zh else 'ComfyUI quit while starting.',
+ action='原因在详情里;使用已有的 ComfyUI 时,可以用原来的启动器检查。' if zh else
'Open details for the exit code and plugin errors. For an existing ComfyUI, also check its original launcher.',
kind='comfy-startup')
if 'Failed step: kernels (' in summary:
@@ -420,9 +420,12 @@ def launcher_failure(value, *, zh=False, other_disk=False, disk_name='', can_rep
detail = detail.partition('\nRetained step log:')[0]
if zh:
detail = detail.replace('Failed step: kernels (exit code ', '失败步骤:GPU 检查(退出码 ').replace(')\n', ')\n', 1)
- detail = detail.replace('Required linear kernel did not pass.', '必需的 linear 运算检查未通过。')
- detail = detail.replace('No attention backend passed.', '没有可用的 attention 后端。')
- detail = detail.replace('Required path missing', '缺少必需目录')
+ detail = detail.replace('Required linear kernel did not pass.',
+ '显卡必需的运算检查没有通过。' if zh else 'A required GPU check did not pass.')
+ detail = detail.replace('No attention backend passed.',
+ '显卡加速检查没有通过。' if zh else 'The GPU acceleration check did not pass.')
+ detail = detail.replace('Required path missing',
+ '缺少必需的文件夹' if zh else 'A required folder is missing')
return dict(title='GPU 检查未通过' if zh else 'GPU validation failed', detail=detail,
action='展开详情或导出报告,查看完整检查结果。' if zh else
'Open the details or export the report for the complete results.', kind='kernels')
@@ -471,7 +474,7 @@ def launcher_failure(value, *, zh=False, other_disk=False, disk_name='', can_rep
(r'Editable install failed for|Editable verification failed for|The engine.s uv is missing', 'update-unfinished',
('The update did not finish', '这次更新没有完成'),
('FreeVideo is back on the previous version and works as before. Click Repair to reinstall the engine environment and update again; the details give the reason.',
- 'FreeVideo 已退回原来的版本,可以照常使用。点击“修复”会重新安装引擎环境并再次更新,原因写在详情里。')),
+ 'FreeVideo 已退回原来的版本,可以照常使用。点“修复”可以再次更新,原因在详情里。')),
(r'Git \d+\.\d+ is too old to download the pinned sources', 'git-version',
('Git is too old', 'Git 版本过旧'),
('Click Retry installation; FreeVideo then installs its own Git. On macOS, update the Command Line Tools.',
@@ -485,15 +488,15 @@ def launcher_failure(value, *, zh=False, other_disk=False, disk_name='', can_rep
(r'ComfyUI is still starting or could not load FreeVideo', 'comfy-nodes',
('ComfyUI did not load FreeVideo', 'ComfyUI 没有加载 FreeVideo'),
('Click Retry. If it stops here again, the ComfyUI log in the details shows why the FreeVideo nodes did not load; export the report to send it.',
- '请点击重试。如果仍停在这里,详情里的 ComfyUI 日志会显示 FreeVideo 节点没有加载的原因,可以导出报告反馈。')),
+ '请点“重试”。仍然停在这里时,可以导出报告。')),
(r'ComfyUI is already running\. Restart it once', 'comfy-restart',
- ('ComfyUI must restart to load FreeVideo', 'ComfyUI 需要重启才能加载 FreeVideo'),
+ ('Restart ComfyUI to load FreeVideo', '需要重启 ComfyUI 才能加载 FreeVideo'),
('Close the ComfyUI that is running now, then click Retry.', '请关闭正在运行的 ComfyUI,然后点击重试。')),
# web/health.js lists the failed files and what to do on the page itself.
(r'The browser page did not load FreeVideo completely|浏览器页面没有完整加载 FreeVideo', 'page',
('FreeVideo did not load completely in the browser', '浏览器里的 FreeVideo 没有完整加载'),
('The browser page names the files that failed and what to do. Follow it, then reload the page; if it happens again, export the report.',
- '浏览器页面上列出了出错的文件和处理方法。按提示处理后刷新页面;仍然出现时请导出报告。')),
+ '请按浏览器页面上的提示处理后刷新;仍然出现时,可以导出报告。')),
(r'The browser has not opened FreeVideo yet|浏览器还没有打开 FreeVideo', 'page-silent',
('The browser has not opened FreeVideo', '浏览器还没有打开 FreeVideo'),
('Click “Open FreeVideo”. If the page stays blank or keeps loading, open it in a current Chrome or Edge.',
@@ -506,29 +509,29 @@ def launcher_failure(value, *, zh=False, other_disk=False, disk_name='', can_rep
(r'CUDA_ARCH_UNSUPPORTED', 'gpu-architecture',
('This GPU lacks the required compute support', '这张显卡不满足当前计算要求'),
('The detected GPU and compute capability are shown below. The CUDA runtime requires native BF16 computation (SM80 or newer). Use a compatible GPU; changing the driver does not change its hardware capability.',
- '下方显示实际显卡和计算能力。当前 CUDA 引擎要求原生 BF16 计算(SM80 及以上);需要使用兼容显卡,更新驱动无法改变显卡的硬件能力。')),
+ '下方是这张显卡的信息。FreeVideo 需要较新的显卡,更新驱动无法解决。')),
(r'CUDA_CAPABILITY_UNKNOWN', 'gpu-detection',
- ('The GPU architecture could not be read', '未能读取显卡架构'),
+ ('GPU information could not be read', '未能读取显卡信息'),
('Retry hardware detection. If it still fails, export the report; it includes the GPU identity and the raw driver query.',
- '请重试硬件检测。仍失败时导出报告,其中包含显卡信息和驱动查询的原始结果。')),
+ '请点“重新检查”。仍然失败时,可以导出报告。')),
(r'CURL_REPAIR_(?:TIMEOUT|HTTP|TLS|DNS|FAILED|PROXY_UNSUPPORTED|PROXY_MISSING|REDIRECT|SIZE|INTEGRITY)', 'download-tool-network',
('The download tool could not be prepared', '下载工具自动补齐失败'),
('Check the connection mode in Downloads and retry. Export the report for the source, route and failure code.',
- '请在“下载”中检查连接方式后重试。导出报告已包含来源、连接方式和失败码。')),
+ '请在“下载”里检查连接方式后重试。')),
(r'CURL_START_DENIED|CURL_REPAIR_STORAGE', 'download-tool-access',
('Windows blocked the download tool', '下载工具启动或保存被拒绝'),
('Check folder permissions and Windows Security protection history, then retry. Export the report for the Windows error code.',
- '请检查安装目录权限和 Windows 安全中心的保护历史记录后重试。导出报告包含 Windows 错误码。')),
+ '请检查安装目录的权限,并查看 Windows 安全中心的保护历史记录,然后重试。')),
(r'CURL_[A-Z_]+|Windows curl\.exe was not found', 'download-tool',
('The download tool is unavailable', '下载工具不可用'),
('Retry installation to repair the tool automatically. If it still fails, export the report for the complete tool diagnostics.',
- '请重试安装,启动器会自动修复下载工具。仍失败时导出报告,其中包含完整工具诊断。')),
+ '请点“重试安装”,启动器会自动修复下载工具。仍然失败时,可以导出报告。')),
(r'ComfyUI is still running a job', 'busy',
('A video is still generating', '还有视频正在生成'),
('The update is installed. Click Connect again after the job finishes to restart ComfyUI with it.',
'更新已装好。等当前任务完成后点“重新连接”,ComfyUI 会重启并使用新版。')),
(r'Installation paused: Windows commit headroom', 'memory-commit',
- ('Windows memory headroom is low', 'Windows 内存提交余量不足'),
+ ('Windows is low on available memory', 'Windows 可用内存不足'),
('Close memory-heavy applications, then retry. Downloaded files are retained.',
'关闭占用内存较多的程序后重试,已下载文件会保留。')),
(r'Installation paused: system RAM is nearly exhausted', 'memory-system',
@@ -536,9 +539,9 @@ def launcher_failure(value, *, zh=False, other_disk=False, disk_name='', can_rep
('Close memory-heavy applications, then retry. Downloaded files are retained.',
'关闭占用内存较多的程序后重试,已下载文件会保留。')),
(r'Installation RAM monitoring failed|Cannot read process-tree memory', 'memory-monitor',
- ('Memory usage could not be read', '暂时无法读取进程内存'),
+ ('Memory usage could not be read', '暂时无法读取内存用量'),
('Download progress is saved. Retry installation; copy the details if it happens again.',
- '下载进度已保留。点击“重试安装”;若再次出现,请复制详情反馈。')),
+ '下载进度已保留,请点“重试安装”。')),
(r'No space left on device|WinError 112|disk (?:is )?full|Not enough disk space|Insufficient disk space', 'disk',
('Not enough disk space', '磁盘空间不足'),
('Free up space on the installation drive, then retry.', '清理安装盘空间后,点击重试。')),
@@ -556,13 +559,13 @@ def launcher_failure(value, *, zh=False, other_disk=False, disk_name='', can_rep
(r'The installation plan changed\. Detect configuration again', 'plan-changed', CHANGED_TITLE,
_joined(CHANGED_WHY['other'], CHANGED_REPAIR)),
(ENVIRONMENT_PYTHON_REMOVED, 'environment-python-removed',
- ('A Python file is missing', '一个 Python 文件不见了'),
+ ('A program file is missing', '缺少一个程序文件'),
('It may have been quarantined by security software. Restore the file or allow the FreeVideo folder, '
'then click Retry installation.',
'可能被安全软件隔离了。恢复这个文件或允许 FreeVideo 所在的文件夹后,点“重试安装”。')),
# Windows refuses PyTorch's unsigned DLLs under Smart App Control; reinstalling changes nothing.
(r'WinError 4551|Application Control policy has blocked', 'app-control',
- ('Windows blocked the PyTorch files', 'Windows 拦截了 PyTorch 的文件'),
+ ('Windows blocked some runtime files', 'Windows 拦截了运行组件'),
('Smart App Control in Windows blocked these files. Search Windows for "Smart App Control", or open Windows Security → App & browser control → Smart App Control settings.',
'Windows 的“智能应用控制”拦截了这些文件。在 Windows 中搜索“智能应用控制”,或打开“Windows 安全中心 → 应用和浏览器控制 → 智能应用控制设置”。')),
(r'PermissionError|Access is denied|Permission denied|WinError 5\b', 'permission',
@@ -570,9 +573,9 @@ def launcher_failure(value, *, zh=False, other_disk=False, disk_name='', can_rep
('Choose an installation folder you can write to, then retry.', '选择有写入权限的安装目录后重试。')),
# A worker's own check of the cuDNN files it loaded (runtime_libraries).
(r"FreeVideo's PyTorch library files do not match", 'runtime-libraries',
- ('PyTorch files have been changed', 'PyTorch 文件已被更改'),
+ ('Runtime files have been changed', '运行组件已被更改'),
('Click Repair to reinstall a complete copy of PyTorch. Models and videos are kept.',
- '请点击“修复”,FreeVideo 将重新安装完整的 PyTorch,模型和视频都会保留。')),
+ '请点“修复”,FreeVideo 会重新安装运行组件,模型和视频都会保留。')),
(r'ModuleNotFoundError|No module named|DLL load failed', 'dependencies', *DEPENDENCIES),
(r'CUDA (?:error: )?out of memory|torch\.OutOfMemoryError|Insufficient currently available memory|crossed its RAM budget|paging file is too small|WinError 1455', 'memory',
('Memory is unavailable for this step', '这一步可用内存不足'),