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.

Launcher copy: simplify installation and update wording

Bowen Xued4b1362567e3
diff --git a/freevideo_engine/download_settings_ui.py b/freevideo_engine/download_settings_ui.py
index 362814e..bcdb94a 100644
--- a/freevideo_engine/download_settings_ui.py
+++ b/freevideo_engine/download_settings_ui.py
@@ -128,7 +128,7 @@ class DownloadSettings:
self.rendered = measured
self.speeds.delete(*self.speeds.get_children())
families = {'edge-models': self.t('Video model', '视频模型'), 'vdn-models': self.t('Decoder', '解码器'),
- 'models': self.t('Text encoder', '文本编码器'), 'pypi': self.t('Python packages', 'Python 依赖'),
+ 'models': self.t('Prompt model', '提示词模型'), 'pypi': self.t('Python packages', 'Python 依赖'),
'github': self.t('Tools', '安装工具'), 'git': 'Git', 'cuda': 'CUDA'}
for family, rows in (measured or {}).get('sources', {}).items():
if family.startswith('torch-'):
diff --git a/freevideo_engine/failure_details.py b/freevideo_engine/failure_details.py
index 465a800..2853c8f 100644
--- a/freevideo_engine/failure_details.py
+++ b/freevideo_engine/failure_details.py
@@ -201,7 +201,7 @@ def environment_python_removed(args, pythons):
PLACE_RULES = (
(r'The installation folder is on a FAT32 disk', 'disk-format',
('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. '
+ ('It is formatted as FAT32, which stores files up to 4 GB; the prompt model alone is 15.7 GB. '
'Choose a folder on an APFS or Mac OS Extended disk.',
'它不能存放 4 GB 以上的文件。'
'请选择其他硬盘上的文件夹。')),
diff --git a/freevideo_engine/launcher/Main.qml b/freevideo_engine/launcher/Main.qml
index f2554ce..0d0383b 100644
--- a/freevideo_engine/launcher/Main.qml
+++ b/freevideo_engine/launcher/Main.qml
@@ -81,10 +81,10 @@ ApplicationWindow {
var d = disk
if (!d) return ""
var en = "\"" + d.name + "\"", zh = "“" + d.name + "”"
- if (d.problem === "fat32") return t(en + " uses FAT32, which limits each file to 4 GB, too small for the model files.", zh + "是 FAT32 格式,单个文件最大 4 GB,放不下模型。")
- if (d.problem === "exfat") return t(en + " uses exFAT, where the FreeVideo environment cannot run.", zh + "是 exFAT 格式,装不了 FreeVideo 的运行环境。")
+ if (d.problem === "fat32") return t(en + " can't store files over 4 GB. Choose another disk.", zh + " 不能存放 4 GB 以上的文件,请换一块硬盘。")
+ if (d.problem === "exfat") return t(en + " can't hold FreeVideo. Choose another disk.", zh + " 不能安装 FreeVideo,请换一块硬盘。")
if (d.problem === "disconnected") return t(en + " is not connected. Connect it to continue.", zh + "没有连接,请接上这块硬盘。")
- if (d.problem === "read-only") return t(en + " is read-only on this Mac.", zh + "在这台 Mac 上是只读的。")
+ if (d.problem === "read-only") return t(en + " is read-only. Choose another disk.", zh + " 不能写入,请换一块硬盘。")
if (d.short) return t(en + " has " + d.free + " available; this installation needs about " + d.need + ".",
zh + "可用 " + d.free + ",这次安装需要约 " + d.need + "。")
return t(d.name + " · " + d.free + " available", d.name + " · 可用 " + d.free)
@@ -105,7 +105,7 @@ ApplicationWindow {
readonly property bool upgradeShown: !upgrade.dismissed && ["available", "low-disk", "downloading", "downloaded", "switching", "releasing", "releasable", "complete", "failed"].indexOf(upgrade.status) >= 0
function upgradeHeadline() {
var u = upgrade
- if (u.status === "available") return t("A faster model is available for your GPU", "你的显卡有更快的模型可用")
+ if (u.status === "available") return t("A faster model is available for your GPU", "有适合这张显卡的更快模型")
if (u.status === "low-disk") return t("Not enough disk space for the faster model", "磁盘空间不够,暂时无法升级到更快的模型")
if (u.status === "downloading") return t("Downloading the faster model", "正在下载更快的模型")
if (u.status === "downloaded" && u.waiting === "comfy") return t("Switching after ComfyUI is closed", "关闭 ComfyUI 后切换")
@@ -122,8 +122,8 @@ ApplicationWindow {
}
function upgradeBlocker(code) {
if (code === "prepared-folder-redirected") return t("The model folder is linked to another location, and FreeVideo never deletes through a link.", "模型文件夹被链接到了别的位置,FreeVideo 不会通过链接删除文件。")
- if (code === "unexpected-active-variant") return t("FreeVideo is not using the int8 model, so the old model stays.", "当前使用的不是 int8 模型,旧模型保留。")
- if (code === "active-variant-incomplete") return t("Some int8 files are missing, so the old model stays.", "int8 模型文件不完整,旧模型保留。")
+ if (code === "unexpected-active-variant") return t("The faster model is not in use, so the old model is kept.", "没有在用更快的模型,旧模型保留。")
+ if (code === "active-variant-incomplete") return t("The faster model's files are incomplete, so the old model is kept.", "更快的模型文件不完整,旧模型保留。")
return t("The model in use is not a standard FreeVideo model, so nothing was deleted.", "当前使用的模型不是标准安装的模型,为安全起见没有删除任何文件。")
}
function upgradeExplanation() {
@@ -132,9 +132,9 @@ ApplicationWindow {
var speed = u.architecture === "ampere" ? t("about twice as fast on this GPU", "在这张显卡上预计快约 2 倍")
: t("about 10–30% faster on this GPU", "在这张显卡上预计快约 10–30%")
if (u.status === "available")
- return (u.resized ? t("Recounted with the other model files this installation still needs. ", "下载量已按实际重新计算,包含这份安装还缺的其他模型文件。") : "")
- + t("The int8 model is ", "int8 模型") + speed + t(" and closer to the original quality. It downloads ", ",画质也更接近原版。需要下载约 ") + bytes(u.download_bytes)
- + (lora ? t("; your old model stays for the fused LoRAs that int8 cannot merge yet.", ";你有需要合并的 LoRA,int8 暂不支持,旧模型会保留,不释放空间。")
+ return (u.resized ? t("Download size updated. ", "下载量已更新。") : "")
+ + t("The faster model is ", "更快的模型") + speed + t(" and closer to the original quality. It downloads ", ",画质也更接近原版。需要下载约 ") + bytes(u.download_bytes)
+ + (lora ? t("; the old model stays so your LoRAs keep working, and no space is freed.", ";为了继续使用已有的 LoRA,旧模型会保留,空间不会释放。")
: t(", then removes the old model and frees about ", ",完成后删除旧模型,释放约 ") + bytes(u.release_bytes) + t(".", "。"))
+ t(" You can keep generating while it downloads.", "下载期间可以继续生成。")
if (u.status === "low-disk")
@@ -147,12 +147,12 @@ ApplicationWindow {
return t("This ComfyUI was not opened by the launcher, so FreeVideo cannot restart it. Close it and the switch starts on its own; until then the current model keeps working.",
"这个 ComfyUI 不是启动器打开的,FreeVideo 没法重启它。关闭它后会自动开始切换,在此之前当前模型照常可用。")
if (u.status === "downloaded" || u.status === "switching")
- return t("ComfyUI restarts once and generation pauses for about 2 minutes while FreeVideo switches; settings and videos are kept.", "切换约需 2 分钟,ComfyUI 会重启一次,期间暂停生成,设置和视频都会保留。")
+ return t("Generation pauses for about 2 minutes during the switch; settings and videos are kept.", "切换期间暂停生成约 2 分钟,设置和视频会保留。")
if (u.status === "releasable" && u.in_use === "int8_convrot")
- return t("FreeVideo now uses the int8 model. Removing the old model frees about ", "现在用的是 int8 模型,删除不再使用的旧模型可以释放约 ") + bytes(u.release_bytes)
+ return t("FreeVideo now uses the faster model. Removing the old model frees about ", "已在用更快的模型,删除旧模型可释放约 ") + bytes(u.release_bytes)
+ t("; only its own files are removed.", ",只删除旧模型自己的文件。")
if (u.status === "releasable")
- return t("These model files are not in use, for example an int8 download this GPU could not run. Removing them frees about ", "这些模型文件没有在使用,比如这张显卡没能运行的 int8 下载。删除可以释放约 ") + bytes(u.release_bytes)
+ return t("Removing unused model files frees about ", "删除未使用的模型文件可释放约 ") + bytes(u.release_bytes)
+ t("; the model in use is not touched.", ",正在使用的模型不受影响。")
if (u.status === "releasing") return t("Only the old model's own files are removed.", "只删除旧模型自己的文件。")
if (u.status === "complete")
@@ -160,8 +160,8 @@ ApplicationWindow {
+ (lora ? t(" The old model stays for your fused LoRAs.", "旧模型为需要合并的 LoRA 保留。") : "")
if (u.status === "failed")
return (u.blockers && u.blockers.length ? upgradeBlocker(u.blockers[0]) + t(" ", "") : u.error ? u.error.split("\n")[0] + "\n" : "")
- + (u.step === "release" ? t("The int8 model is in use; the old files stay on disk for now.", "int8 模型已在使用,旧模型文件暂时保留在磁盘上。")
- : u.step === "switch" && !u.kept ? t("The previous model's files are all kept. Retry on the setup page restores it; you can upgrade again afterwards.", "原来的模型文件都还在。在安装页面点「重试」即可恢复,之后可以再次升级。")
+ + (u.step === "release" ? t("The faster model is in use; the old model files are kept for now.", "已在用更快的模型,旧模型文件暂时保留。")
+ : u.step === "switch" && !u.kept ? t("The previous model's files are all kept. Select \"Retry\" on the setup page to restore it.", "原来的模型文件都还在,在安装页点“重试”可恢复。")
: t("Your previous model is unchanged and still works.", "原来的模型没有变化,可以继续使用。"))
return ""
}
@@ -170,7 +170,7 @@ ApplicationWindow {
if (phase === "downloading") return t("Downloading update ", "正在下载更新 ") + percent(s.update.progress)
if (phase === "waiting") return t("Updating after the current video finishes", "当前视频生成完成后自动更新")
if (phase === "restarting") return t("Restarting FreeVideo…", "正在重启 FreeVideo…")
- if (phase === "engine") return t("Updating the engine…", "正在更新引擎…")
+ if (phase === "engine") return t("Updating…", "正在更新…")
if (phase === "checking") return t("Checking for updates…", "正在检查更新…")
if (s.update.status === "error") return t("Update incomplete", "更新未完成")
if (s.update.candidate) return t("FreeVideo ", "FreeVideo ") + releaseVersion(s.update.candidate) + t(" is available", " 可以更新")
@@ -414,12 +414,12 @@ ApplicationWindow {
onClicked: backend.useDisk(bestDisk.path) }
FButton { objectName: "chooseDisk"; visible: diskFailure && s.form.new_comfy && diskChoices.length > (bestDisk ? 1 : 0); enabled: !s.busy
text: t("Other disks…", "其他硬盘…"); onClicked: diskDialogOpen = true }
- FButton { objectName: "diskCleanupButton"; visible: s.failure.kind === "disk"; enabled: s.can_cleanup; text: t("Clean download cache", "清理下载缓存"); onClicked: { settingsTab = "general"; settingsOpen = true; backend.cleanupDownloads(false) } }
+ FButton { objectName: "diskCleanupButton"; visible: s.failure.kind === "disk"; enabled: s.can_cleanup; text: t("Clean download cache", "清理缓存"); onClicked: { settingsTab = "general"; settingsOpen = true; backend.cleanupDownloads(false) } }
FButton { visible: s.failure.kind === "download"; text: t("Change source", "切换下载源"); onClicked: { settingsTab = "downloads"; settingsOpen = true } }
FButton { objectName: "repairCardButton"; primary: true; visible: !!s.repair_offered; text: t("Repair", "修复"); onClicked: backend.action("repair", false) }
FButton { objectName: "latestLauncherLink"; visible: s.failure.kind === "older-launcher"; flat: true
text: t("Download the latest ↗", "下载最新版 ↗"); onClicked: backend.link("https://github.com/FlashML-org/FreeVideo/releases/latest") }
- FButton { objectName: "copyError"; visible: !diskFailure; text: t("Copy full details", "复制完整详情"); onClicked: backend.copy(s.error) }
+ FButton { objectName: "copyError"; visible: !diskFailure; text: t("Copy details", "复制详情"); onClicked: backend.copy(s.error) }
FButton { objectName: "showError"; text: errorDetailsOpen ? t("Hide details", "收起详情") : t("Show details", "查看详情"); flat: true; onClicked: errorDetailsOpen = !errorDetailsOpen }
FButton { objectName: "exportError"; visible: !diskFailure; text: t("Export report", "导出报告"); enabled: s.report.status !== "running"; onClicked: backend.exportReport() }
}
@@ -436,7 +436,7 @@ ApplicationWindow {
text: s.report.status === "running" ? t("Exporting full logs…", "正在导出完整日志…") :
s.report.status === "error" ? t("Export failed: ", "导出失败:") + s.report.error :
t("Report saved locally: ", "报告已保存到本机:") + s.report.path +
- (s.report.collection_errors ? t("\nSome diagnostics were unavailable; see manifest.json in the ZIP.", "\n部分诊断信息未能收集,原因记录在 ZIP 内的 manifest.json。") : "")
+ (s.report.collection_errors ? t("\nReport saved with some diagnostic information missing.", "\n报告已保存,部分诊断信息未能收集。") : "")
}
ColumnLayout {
@@ -490,7 +490,7 @@ ApplicationWindow {
// The label's right edge lines up with Browse; the hover fill reaches into the card's padding.
FButton { objectName: "changeDisk"; visible: s.form.new_comfy && diskChoices.length > 0; enabled: s.can_manage; flat: true; implicitHeight: theme.heightSm; font.pixelSize: theme.micro + 1
leftPadding: 10; rightPadding: 10; Layout.rightMargin: -10; Layout.alignment: Qt.AlignBaseline
- text: t("Choose another disk", "换一块硬盘"); onClicked: diskDialogOpen = true }
+ text: t("Change disk", "更换硬盘"); onClicked: diskDialogOpen = true }
}
}
FCard {
@@ -668,7 +668,7 @@ ApplicationWindow {
Layout.fillWidth: true; spacing: 16
ColumnLayout {
Layout.fillWidth: true; spacing: 4
- FText { text: s.status === "review" ? t("Installation plan", "安装计划") : s.overall.label || s.progress.label || t("Checking your installation", "正在检查安装"); font.pixelSize: theme.strong + 1; font.weight: Font.DemiBold; Layout.fillWidth: true }
+ FText { text: s.status === "review" ? t("Installation details", "安装内容") : s.overall.label || s.progress.label || t("Checking your installation", "正在检查安装"); font.pixelSize: theme.strong + 1; font.weight: Font.DemiBold; Layout.fillWidth: true }
// The plan's line (GPU, download, disk peak) belongs to the review; while installing,
// the step line already gives the download, so the card does not repeat it.
FText { objectName: "planSummary"; visible: !!s.summary && !s.busy; text: s.summary; color: theme.muted; font.pixelSize: theme.micro + 1; Layout.fillWidth: true }
@@ -842,7 +842,7 @@ ApplicationWindow {
Layout.fillWidth: true; spacing: 6
// A failed start stays failed while another task (an import, a cleanup) runs: the controller's own tasks clear it first.
FText { objectName: "statusTitle"; text: s.status === "open" ? t("FreeVideo is ready", "FreeVideo 已就绪") : s.status === "failed" ? t("Startup interrupted", "启动未完成") : s.busy ? t("Starting ComfyUI", "正在启动 ComfyUI") : s.status === "restart-required" ? t("Restart ComfyUI", "请重启 ComfyUI") : t("Ready to launch", "准备就绪"); font.pixelSize: theme.section + 2; font.weight: Font.DemiBold; Layout.fillWidth: true }
- FText { objectName: "statusDetail"; text: s.status === "open" ? s.url : s.status === "restart-required" ? t("Restart your running ComfyUI to load the updated nodes, then connect again.", "重启正在运行的 ComfyUI 以载入更新后的节点,再点击重新连接。") : s.status === "failed" ? t("ComfyUI did not start. See the message above.", "ComfyUI 未能启动,原因见上方。") : t("Your models and environment are connected.", "已连接你的模型与运行环境。"); color: theme.muted; Layout.fillWidth: true }
+ FText { objectName: "statusDetail"; text: s.status === "open" ? s.url : s.status === "restart-required" ? t("Restart ComfyUI after the update, then select \"Connect again\".", "更新后需重启 ComfyUI,再点“重新连接”。") : s.status === "failed" ? t("ComfyUI did not start. See the message above.", "ComfyUI 未能启动,原因见上方。") : t("Your models and environment are connected.", "已连接你的模型与运行环境。"); color: theme.muted; Layout.fillWidth: true }
FText { objectName: "portMovedNote"; visible: s.status === "open" && s.port_from > 0; text: t("Port %1 is in use by another program, so FreeVideo now uses port %2 and will keep using this address.", "端口 %1 已被其他程序占用,FreeVideo 改用端口 %2,以后也使用这个地址。").arg(s.port_from).arg(s.port_to); font.pixelSize: 13; color: theme.muted; wrapMode: Text.WordWrap; Layout.fillWidth: true; Layout.topMargin: -2 }
}
}
@@ -969,15 +969,15 @@ ApplicationWindow {
}
Flow {
Layout.fillWidth: true; spacing: 6
- FButton { text: t("Copy full log", "复制完整日志"); flat: true; implicitHeight: 28; leftPadding: 8; rightPadding: 8; font.pixelSize: theme.micro; onClicked: backend.copyLog() }
+ FButton { text: t("Copy log", "复制日志"); flat: true; implicitHeight: 28; leftPadding: 8; rightPadding: 8; font.pixelSize: theme.micro; onClicked: backend.copyLog() }
FButton { text: t("Export report", "导出报告"); flat: true; implicitHeight: 28; leftPadding: 8; rightPadding: 8; font.pixelSize: theme.micro; enabled: s.report.status !== "running"; onClicked: backend.exportReport() }
FButton { text: t("Clear", "清空"); flat: true; implicitHeight: 28; implicitWidth: 64; leftPadding: 8; rightPadding: 8; font.pixelSize: theme.micro; onClicked: backend.clearTerminal() }
}
- FText { Layout.fillWidth: true; font.pixelSize: theme.micro; color: theme.muted; text: t("Recent output is shown here. Copy or export to get the full redacted log.", "这里显示最近的输出;复制或导出可获取完整脱敏日志。") }
+ FText { Layout.fillWidth: true; font.pixelSize: theme.micro; color: theme.muted; text: t("Copy or export the full log with private information hidden.", "可复制或导出完整日志,隐私信息已隐藏。") }
ScrollView {
id: terminalScroll; Layout.fillWidth: true; Layout.fillHeight: true; clip: true
TextArea {
- id: terminalText; objectName: "terminalText"; text: s.log || t("Process output will appear here.", "进程启动后,输出会显示在这里。"); textFormat: TextEdit.PlainText
+ id: terminalText; objectName: "terminalText"; text: s.log || t("Activity will appear here after startup.", "启动后将在这里显示运行记录。"); textFormat: TextEdit.PlainText
readOnly: true; selectByMouse: true; wrapMode: TextEdit.Wrap; color: s.log ? theme.text : theme.disabled; font.family: theme.mono; font.pixelSize: 12; background: null
selectionColor: theme.accentDim
onTextChanged: if (!activeFocus) cursorPosition = length
@@ -1044,7 +1044,7 @@ ApplicationWindow {
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("Switching also moves the current download. Verified partial data is retained wherever resuming is supported.", "切换会应用于当前下载;支持续传时,继续使用已校验的片段。"); color: theme.muted; font.pixelSize: theme.micro; Layout.fillWidth: true }
+ 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
@@ -1181,7 +1181,7 @@ ApplicationWindow {
FText { text: t("Video model", "视频模型"); Layout.fillWidth: true }
FText {
objectName: "modelStorageStatus"; Layout.fillWidth: true; font.pixelSize: theme.micro; color: theme.muted; wrapMode: Text.WordWrap
- text: upgrade.status === "available" ? t("A faster int8 model is available: about ", "有更快的 int8 模型:下载约 ") + bytes(upgrade.download_bytes)
+ text: upgrade.status === "available" ? t("A faster model is available: about ", "有更快的模型:下载约 ") + bytes(upgrade.download_bytes)
+ (upgrade.release_bytes ? t(" to download, about ", ",完成后删除旧模型,释放约 ") + bytes(upgrade.release_bytes) + t(" freed afterwards.", "。") : t(" to download.", "。"))
: upgrade.status === "releasable" ? (upgrade.in_use === "int8_convrot" ? t("The old model is no longer used; about ", "旧模型已不再使用,删除可释放约 ") : t("Model files not in use; about ", "有没在使用的模型文件,删除可释放约 ")) + bytes(upgrade.release_bytes) + t(" can be freed.", "。")
: upgradeHeadline()
@@ -1206,7 +1206,7 @@ ApplicationWindow {
FText { objectName: "compatibilityLevel"; text: s.compatibility.available && s.compatibility.levels && s.compatibility.levels[s.compatibility.level || 0] ? t(s.compatibility.levels[s.compatibility.level || 0].en.split(" · ")[0], s.compatibility.levels[s.compatibility.level || 0].zh.split(" · ")[0]) : "—"; color: s.compatibility.available ? theme.accent : theme.disabled; font.weight: Font.DemiBold }
}
FSlider { objectName: "compatibilitySlider"; Layout.fillWidth: true; from: 0; to: 3; stepSize: 1; value: s.compatibility.level || 0; enabled: s.compatibility.available && !s.busy; snapMode: Slider.SnapAlways; onMoved: backend.compatibilityLevel(Math.round(value)) }
- FText { objectName: "compatibilityNote"; text: s.compatibility.available ? t("Applies from the next generation. Higher levels have the GPU handle less at a time, so generation is slower and the picture differs slightly; resolution, duration and steps stay the same.", "从下一次生成起生效。档位越高,显卡每次处理的数据越少,生成越慢,画面也会有细微差别;分辨率、时长和步数不变。") : t("Available after hardware setup.", "完成硬件检查后可调整。"); color: theme.muted; font.pixelSize: theme.micro; Layout.fillWidth: true }
+ FText { objectName: "compatibilityNote"; text: s.compatibility.available ? t("Applies to the next generation; higher levels are slower and may slightly change the picture.", "从下次生成起生效,档位越高越慢,画面可能略有变化。") : t("Available after hardware setup.", "完成硬件检查后可调整。"); color: theme.muted; font.pixelSize: theme.micro; Layout.fillWidth: true }
FDivider {}
FSwitch { objectName: "compatibilityAutomatic"; Layout.fillWidth: true; text: t("Raise the level automatically after an unexpected interruption", "异常中断后自动提高兼容档位"); checked: !!s.compatibility.automatic; enabled: s.compatibility.available && !s.busy; onToggled: backend.compatibility(s.compatibility.level, checked) }
}
@@ -1259,7 +1259,7 @@ ApplicationWindow {
}
Flow {
Layout.fillWidth: true; spacing: 8
- FButton { text: t("Copy full details", "复制完整详情"); implicitHeight: theme.heightSm; font.pixelSize: theme.micro + 1; onClicked: backend.copy(s.error) }
+ FButton { text: t("Copy details", "复制详情"); implicitHeight: theme.heightSm; font.pixelSize: theme.micro + 1; onClicked: backend.copy(s.error) }
FButton { text: t("Export report", "导出报告"); implicitHeight: theme.heightSm; font.pixelSize: theme.micro + 1; enabled: s.report.status !== "running"; onClicked: backend.exportReport() }
}
FText {
@@ -1300,8 +1300,8 @@ ApplicationWindow {
id: diskRowText; Layout.fillWidth: true; spacing: 2
FText { text: modelData.name; font.weight: Font.DemiBold; Layout.fillWidth: true }
FText { visible: !modelData.enough; Layout.fillWidth: true; color: theme.danger; font.pixelSize: theme.micro
- text: modelData.problem === "exfat" ? t("exFAT not supported", "不支持 exFAT")
- : modelData.problem === "fat32" ? t("FAT32 not supported", "不支持 FAT32")
+ text: modelData.problem === "exfat" ? t("Cannot install", "无法安装")
+ : modelData.problem === "fat32" ? t("Cannot install", "无法安装")
: t("Not enough space", "空间不够") }
}
FText { text: t(modelData.free + " available", "可用 " + modelData.free); color: theme.muted; font.pixelSize: theme.micro + 1; font.features: { "tnum": 1 }; wrapMode: Text.NoWrap; Layout.alignment: Qt.AlignVCenter }
@@ -1637,9 +1637,9 @@ ApplicationWindow {
FDialog {
objectName: "releaseConfirmation"; visible: releaseConfirm
title: upgrade.in_use === "int8_convrot" ? t("Remove the old model?", "删除旧模型?") : t("Remove unused model files?", "删除没在使用的模型文件?")
- text: (upgrade.in_use === "int8_convrot" ? t("The FP8 model files FreeVideo no longer uses are removed, about ", "将删除 FreeVideo 不再使用的 FP8 模型文件,释放约 ")
+ text: (upgrade.in_use === "int8_convrot" ? t("Removes the old model files FreeVideo no longer uses, about ", "将删除不再使用的旧模型文件,释放约 ")
: t("The model files FreeVideo does not use are removed, about ", "将删除 FreeVideo 没在使用的模型文件,释放约 ")) + bytes(upgrade.release_bytes || 0)
- + (upgrade.in_use === "int8_convrot" ? t(". The int8 model, your videos and settings are not touched.", "。int8 模型、视频和设置都不受影响。")
+ + (upgrade.in_use === "int8_convrot" ? t(". The model in use, your videos and settings are not touched.", "。现在用的模型、视频和设置都不受影响。")
: t(". The model in use, your videos and settings are not touched.", "。正在使用的模型、视频和设置都不受影响。"))
acceptText: t("Remove", "删除"); rejectText: t("Cancel", "取消"); destructive: true
onAccepted: { releaseConfirm = false; backend.upgradeModel() }
diff --git a/freevideo_engine/launcher_copy.py b/freevideo_engine/launcher_copy.py
index 88eb37b..d4eade8 100644
--- a/freevideo_engine/launcher_copy.py
+++ b/freevideo_engine/launcher_copy.py
@@ -19,8 +19,8 @@ ACTION_COPY = {
'已记下,处理完当前任务后自动导入'),
'setup_queued': ('Models are being prepared in the background. Setup will continue when they are ready.',
'后台正在准备模型,好了会接着继续'),
- 'update_queued': ('Another task is running. Updating will start when it finishes.',
- '正在做别的事,完成后会自动更新'),
+ 'update_queued': ('The update will start after the current task finishes.',
+ '当前任务完成后会自动更新'),
}
@@ -32,20 +32,20 @@ SOURCES = {
ZH = dict([
('The network is slow. Downloading again; this may take a while.', '网络较慢,正在重试'),
- ('Prepare Python', '准备 Python'), ('Install Python', '安装 Python'),
+ ('Prepare Python', '准备运行环境'), ('Install Python', '安装运行环境'),
('Prepare download tools', '准备下载工具'), ('Tsinghua mirror', '清华镜像'),
('Preparing installation', '准备安装'), ('Checking the environment', '正在检查运行环境'),
('Testing download sources', '正在测试下载源'), ('Preparing download tools', '正在准备下载工具'),
('GitHub mirror', 'GitHub 镜像'), ('attempt', '正在连接'),
('fallback', '正在切换下载源'), ('route-retry', '正在切换连接'),
- ('verifying', '正在校验'), ('no-progress', '下载无进展'),
+ ('verifying', '正在检查'), ('no-progress', '下载无进展'),
('slow-transfer', '持续低速'), ('resume-refused', '当前下载源不支持续传'),
- ('Download PyTorch + CUDA', '下载 GPU 运行环境'),
- ('Use existing Python', '复用 Python'), ('Create Python environment', '创建运行环境'),
- ('Install PyTorch + CUDA', '安装 GPU 运行环境'),
+ ('Download PyTorch + CUDA', '下载运行组件'),
+ ('Use existing Python', '使用已有环境'), ('Create Python environment', '创建运行环境'),
+ ('Install PyTorch + CUDA', '安装运行组件'),
('Install engine dependencies', '安装生成组件'), ('Install encoder support', '安装编码组件'),
('Install model support', '安装模型组件'), ('Download model code', '下载模型组件'),
- ('Check text encoder', '检查文本编码器'), ('Download model weights', '下载所需模型'),
+ ('Check text encoder', '检查提示词模型'), ('Download model weights', '下载所需模型'),
('Reuse models / download missing files', '复用模型并补齐文件'),
('Verify / reuse local models', '检查并复用已有模型'),
('Verify existing models', '校验已有模型'), ('Check existing model folders', '查找已有模型'),
@@ -56,8 +56,8 @@ ZH = dict([
('Optimize model storage', '准备模型'), ('Finish model storage', '完成模型准备'),
('Test GPU acceleration', '检查 GPU 加速'), ('Check GPU runtime', '检查 GPU 运行环境'),
('Check installed packages', '检查运行环境'), ('Save installed versions', '保存安装信息'),
- ('Check build tools', '检查编译工具'), ('Build SageAttention 2', '准备 GPU 加速'),
- ('Install SageAttention 2', '安装 GPU 加速组件'), ('Prepare dependencies', '准备运行组件'),
+ ('Check build tools', '检查安装工具'), ('Build SageAttention 2', '准备显卡加速'),
+ ('Install SageAttention 2', '安装显卡加速组件'), ('Prepare dependencies', '准备运行组件'),
# The parallel phase also downloads the models (internal names stay as they are).
('Install components in parallel', '安装组件和模型'),
('Install with space saver', '安装组件和模型(极限省空间)'),
@@ -74,7 +74,7 @@ ZH = dict([
('Prepare ComfyUI', '准备 ComfyUI'), ('Update ComfyUI packages', '更新 ComfyUI 组件'),
('Install FreeVideo workflow', '安装 FreeVideo 工作流'),
('Open ComfyUI', '打开 ComfyUI'), ('Starting ComfyUI', '启动 ComfyUI'),
- ('Loading nodes and the web interface', '加载节点与界面'),
+ ('Loading nodes and the web interface', '正在加载界面'),
('Still loading. This may take a few more minutes.', '仍在加载,可能还需要几分钟'),
('Checking configuration', '检查配置'), ('Check installation', '检查安装'),
('Verify bundled files', '校验离线包'), ('Check local files', '检查本地文件'),
@@ -84,38 +84,39 @@ ZH = dict([
('Ready', '已就绪'), ('Verified and ready', '已就绪'),
('Stopped; files retained', '已暂停,下载进度已保留'),
('Local verification stopped; files retained', '校验已暂停,文件已保留'),
- ('Download and prepare the private Python runtime', '准备 Python 运行环境'),
- ('Check the Python already prepared by the launcher', '检查已有 Python'),
+ ('Download and prepare the private Python runtime', '准备运行环境'),
+ ('Check the Python already prepared by the launcher', '检查已有环境'),
('Prepare an isolated environment for FreeVideo', '创建 FreeVideo 运行环境'),
('Download and install the GPU runtime packages', '下载并安装 GPU 运行组件'),
('Download and install video and text encoding libraries', '下载并安装生成组件'),
- ('Connect the encoder to FreeVideo', '准备编码器'), ('Install the verified model code', '安装模型组件'),
+ ('Connect the encoder to FreeVideo', '准备提示词模型'), ('Install the verified model code', '安装模型组件'),
('Prepare model source files while runtime packages download', '下载模型组件'),
- ('Verify that the text encoding library loads', '检查文本编码器'),
+ ('Verify that the text encoding library loads', '检查提示词模型'),
('Download and verify the video model and text encoder', '下载并校验模型'),
('Prepare compact FP8 weights for your GPU', '准备适配显卡的模型'),
('Prepare the model weights for your GPU', '准备适配显卡的模型'),
('Run small checks on your GPU', '检查 GPU 加速是否可用'),
- ('Verify prepared weights and apply your storage choice', '校验模型文件'),
+ ('Verify prepared weights and apply your storage choice', '检查模型文件'),
('Verify dependency compatibility', '检查运行组件'),
('Record versions for future diagnostics', '保存安装信息'),
('Verify the compiler before building GPU acceleration', '检查编译工具'),
- ('Compile acceleration for your GPU', '编译 GPU 加速组件'),
+ ('Compile acceleration for your GPU', '准备显卡加速'),
('the first build takes longer', '首次准备需要一些时间'),
('Install the prepared GPU acceleration package', '安装 GPU 加速组件'),
('Install the verified Windows acceleration package', '安装 Windows 加速组件'),
- ('Verify CUDA and the Windows runtime libraries', '检查 CUDA 与 Windows 运行组件'),
+ ('Verify CUDA and the Windows runtime libraries', '检查运行组件'),
('Prepare verified source files', '准备组件文件'), ('Download verified source code', '下载组件文件'),
('Prepare source files for installation', '准备安装文件'),
('Download and verify required files', '下载并校验所需文件'),
- ('Dependencies resolved', '依赖检查完成'), ('preparing downloads', '准备下载'),
+ ('Dependencies resolved', '组件检查完成'), ('preparing downloads', '准备下载'),
('Downloads ready', '下载完成'), ('Downloading packages', '下载组件'), ('installing packages', '安装组件'),
('Packages installed', '组件已安装'), ('finishing checks', '完成检查'),
('Installing packages', '安装组件'), ('Compiling CUDA kernels', '编译 GPU 加速组件'),
('Load cached blocks and upload resident weights', '加载模型'), ('Finish model placement', '完成模型加载'),
- ('Verify cached weights', '校验模型缓存'), ('Read and convert source weights', '转换模型格式'),
+ ('Verify cached weights', '校验模型缓存'), ('Read and convert source weights', '正在准备模型'),
('Storage ready', '模型文件已就绪'), ('Download', '下载'), ('Model', '模型'),
- ('Video model', '视频模型'), ('Video decoder', '视频解码器'), ('text encoder', '文本编码器'),
+ ('Video model', '视频模型'), ('Video decoder', '视频解码组件'), ('text encoder', '提示词模型'),
+ ('Text encoder', '提示词模型'),
('ModelScope', '魔搭'), ('ModelScope parallel', '魔搭'), ('HF Mirror', 'HF 镜像'),
('HF Xet', 'Hugging Face'), ('HF HTTP', 'Hugging Face'), ('Parallel HTTP', '并行下载'),
('Custom source', '自定义源'), ('Model source', '模型下载源'),
@@ -128,7 +129,7 @@ ZH = dict([
('Resume unavailable; checking another source', '正在尝试其他下载源'),
('Paused; existing data kept', '已暂停,下载进度已保留'),
('Restart explicitly allowed', '重新下载此文件'),
- ('Restarting this file; incompatible fragments retained on disk', '重新下载此文件,旧片段已保留'),
+ ('Restarting this file; incompatible fragments retained on disk', '正在重新下载文件'),
('Cannot resume this format; enable restart in Setup', '此文件无法续传,请允许重新下载'),
('Download response too large', '下载数据异常'), ('switching source', '正在切换下载源'),
('Download memory budget reached', '正在调整下载方式'), ('switching to streaming', '继续下载'),
@@ -143,18 +144,18 @@ ZH.update([
('Copying ', '正在复制'), ('Model files', '模型文件'),
('Packages resolving', '正在检查组件'), ('Packages installing', '正在安装组件'), ('Packages ready', '组件已就绪'),
('Environment creating', '正在创建运行环境'), ('Base packages installing', '正在安装基础组件'),
- ('Python ready', 'Python 已就绪'), ('Python downloading', '正在下载 Python'),
+ ('Python ready', '运行环境已就绪'), ('Python downloading', '正在下载运行环境'),
('GPU acceleration building', '正在准备显卡加速'),
('Runtime libraries verifying', '正在校验运行组件'), ('Runtime libraries importing', '正在载入运行组件'),
- ('Encoder configuring', '正在准备文本编码器'), ('Encoder importing', '正在载入文本编码器'),
- ('Encoder ready', '文本编码器已就绪'),
+ ('Encoder configuring', '正在准备提示词模型'), ('Encoder importing', '正在加载提示词模型'),
+ ('Encoder ready', '提示词模型已就绪'),
('GPU information reading', '正在读取显卡信息'), ('GPU tests running', '正在检查显卡'),
('GPU tests finished', '显卡检查已完成'),
('Packages preparing', '正在准备组件'), ('Packages removing', '正在移除旧组件'),
('Model files verifying', '正在校验模型文件'), ('Model files preparing', '正在准备模型文件'),
('Model files assembling', '正在合并模型文件'),
('Package files', '离线包文件'), ('Connecting to download server', '正在连接下载服务器'),
- ('Runtime components', '运行组件'), ('video model', '视频模型'), ('video decoder', '视频解码器'),
+ ('Runtime components', '运行组件'), ('video model', '视频模型'), ('video decoder', '视频解码组件'),
('model files', '模型文件'), ('runtime components', '运行组件'),
('Uses models already on this computer; original files stay in place', '使用电脑上已有的模型,不移动原文件'),
])
@@ -180,7 +181,7 @@ LAN_ERRORS = {
'Enter localhost or an IP address of this computer, for example http://127.0.0.1:8188.': '请填写 localhost 或本机的 IP 地址,例如 http://127.0.0.1:8188。',
'This address does not belong to this computer. Enter one of its IP addresses or 0.0.0.0.': '这个地址不属于本机。请填写本机的 IP 地址或 0.0.0.0。',
'The ports for LAN access are in use. Choose another ComfyUI port.': '局域网访问要用的端口已被占用,请换一个 ComfyUI 端口。',
- 'A generation is running. Change the address after it finishes.': '正在生成,暂时不能修改地址。请在生成完成后再改。',
+ 'A generation is running. Change the address after it finishes.': '正在生成,完成后可修改地址。',
'The ComfyUI already running does not use this address. After its jobs finish, restart it with this address and connect again.': '已在运行的 ComfyUI 没有使用这个地址。请在任务完成后用这个地址重新启动 ComfyUI,再重新连接。',
'The ComfyUI already running is open to the network directly. After its jobs finish, restart it on 127.0.0.1, then turn on LAN access.': '已在运行的 ComfyUI 正在直接对局域网开放。请在任务完成后改用 127.0.0.1 重新启动它,再开启局域网访问。',
'LAN access startup cancelled': '已取消开启局域网访问。',
@@ -189,9 +190,11 @@ LAN_ERRORS = {
def lan_error(value, zh=False):
value = str(value)
- if zh:
- for english, chinese in LAN_ERRORS.items():
- value = value.replace(english, chinese)
+ translations = LAN_ERRORS if zh else {
+ 'A generation is running. Change the address after it finishes.': 'Generation is running; the address can be changed when it finishes.',
+ }
+ for english, chinese in translations.items():
+ value = value.replace(english, chinese)
return value
@@ -250,14 +253,61 @@ def without_names(value):
return value
+# Counters in these English progress parts are dropped; the line says what is happening.
+EN_PLAIN = {r'\d+ files / folders scanned': 'Finding files', r'shard \d+ / \d+': 'Downloading',
+ r'retry \d+ in \d+s': 'Retrying download'}
+
+
def display(value, zh=False):
value = without_names(clean(value))
if not zh:
+ if ' · ' in value:
+ return ' · '.join(display(part) for part in value.split(' · '))
+ for prefix, translated in (
+ ('Reuse verified FP8 ', 'Use existing model files '),
+ ('Prepare FP8 ', 'Prepare model files '),
+ ):
+ if value.startswith(prefix):
+ return translated + display(value[len(prefix):])
# English names for stages whose internal names describe how they run, not what they do.
- return {'检查配套包': 'Checking packages', '下载模型': 'Downloading models',
+ value = {'检查配套包': 'Checking packages', '下载模型': 'Downloading models',
+ 'Prepare Python': 'Prepare environment',
+ 'Install Python': 'Install environment',
+ 'Download PyTorch + CUDA': 'Download runtime components',
+ 'Use existing Python': 'Use existing environment',
+ 'Install PyTorch + CUDA': 'Install runtime components',
+ 'Check text encoder': 'Check prompt model',
+ 'Check build tools': 'Check installation tools',
+ 'Build SageAttention 2': 'Prepare GPU acceleration',
+ 'Install SageAttention 2': 'Install GPU acceleration',
+ 'Loading nodes and the web interface': 'Loading the interface',
+ 'Download and prepare the private Python runtime': 'Prepare environment',
+ 'Check the Python already prepared by the launcher': 'Check existing environment',
+ 'Connect the encoder to FreeVideo': 'Prepare the prompt model',
+ 'Verify that the text encoding library loads': 'Check prompt model',
+ 'Download and verify the video model and text encoder': 'Download and check models',
+ 'Verify prepared weights and apply your storage choice': 'Check model files',
+ 'Compile acceleration for your GPU': 'Prepare GPU acceleration',
+ 'the first build takes longer': 'the first setup takes longer',
+ 'Verify CUDA and the Windows runtime libraries': 'Check runtime components',
+ 'Dependencies resolved': 'Component checks complete',
+ 'Read and convert source weights': 'Preparing the model',
+ 'text encoder': 'prompt model',
+ 'Text encoder': 'Prompt model',
+ 'Restarting this file; incompatible fragments retained on disk': 'Downloading the file again',
+ 'Python ready': 'Environment ready',
+ 'Python downloading': 'Downloading the environment',
+ 'Encoder configuring': 'Preparing the prompt model',
+ 'Encoder importing': 'Loading the prompt model',
+ 'Encoder ready': 'Prompt model ready',
'Install components in parallel': 'Install components and models',
'Install with space saver': 'Install components and models (space saver)',
'Optimize model storage': 'Prepare models'}.get(value, value)
+ for prefix in ('Download ', 'Prepare '):
+ if value.startswith(prefix):
+ return prefix + display(value[len(prefix):])
+ return ' · '.join(EN_PLAIN.get(next((p for p in EN_PLAIN if re.fullmatch(p, part)), None), part)
+ for part in value.split(' · '))
if value in ZH:
return ZH[value]
if value in SOURCES:
@@ -267,8 +317,8 @@ def display(value, zh=False):
for prefix, translated in (
MODEL_REPAIR_PROGRESS,
('Switched current download to ', '已切换至 '), ('Connecting to ', '正在连接'),
- ('Assemble downloaded parts', '合并已下载文件'), ('Reuse verified FP8 ', '复用模型缓存 '),
- ('Prepare FP8 ', '准备模型缓存 '), ('Verified ', '已校验'), ('Verify ', '正在校验'),
+ ('Assemble downloaded parts', '合并已下载文件'), ('Reuse verified FP8 ', '使用已有模型文件 '),
+ ('Prepare FP8 ', '准备模型文件 '), ('Verified ', '已校验'), ('Verify ', '正在校验'),
('Download ', '正在下载'), ('Prepare ', '准备 '), ('Source: ', '下载源:'), ('Log: ', '日志:'),
):
if value.startswith(prefix):
@@ -276,13 +326,13 @@ def display(value, zh=False):
for pattern, translated in (
(r'Downloading packages · about (.+) across (\d+) files', r'下载组件 · 约 \1,共 \2 个文件'),
(r'about (.+) across (\d+) files', r'约 \1,共 \2 个文件'),
- (r'(\d+) files / folders scanned', r'已扫描 \1 个文件和目录'),
+ (r'(\d+) files / folders scanned', '正在查找文件'),
(r'Testing download sources (\d+ / \d+)', r'正在测试下载源 \1'),
- (r'(\d+ / \d+) files', r'\1 个文件'), (r'shard (\d+ / \d+)', r'分片 \1'),
+ (r'(\d+ / \d+) files', r'\1 个文件'), (r'shard (\d+ / \d+)', '正在下载'),
(r'([\d.]+ MiB) retained', r'已保留 \1'), (r'([\d.]+ GiB) released', r'已释放 \1'),
(r'([\d.]+ MiB) downloaded', r'已下载 \1'),
(r'Resuming ([\d.]+ MiB) retained', r'继续下载,已保留 \1'),
- (r'retry (\d+) in (\d+)s', r'\2 秒后第 \1 次重试'),
+ (r'retry (\d+) in (\d+)s', '正在重试下载'),
(r'Receiving objects:.*', '正在下载组件'), (r'Resolving deltas:.*', '正在整理组件'),
(r'Updating files:.*', '正在准备文件'),
):
diff --git a/freevideo_engine/launcher_session.py b/freevideo_engine/launcher_session.py
index 4196df3..b2cd7b6 100644
--- a/freevideo_engine/launcher_session.py
+++ b/freevideo_engine/launcher_session.py
@@ -2007,7 +2007,7 @@ class Session:
for entry in entries:
names = {'edge-models': ('Video model', '视频模型'), 'vdn-models': ('Decoder', '解码器'),
'image-models': NAMES['image'],
- 'models': ('Text encoder', '文本编码器'), 'pypi': ('Python packages', 'Python 依赖'),
+ 'models': NAMES['text'], 'pypi': ('Python packages', 'Python 依赖'),
'github': ('Tools', '安装工具'), 'git': ('Git', 'Git'), 'cuda': ('CUDA', 'CUDA')}
if group.startswith('torch-'):
names[group] = ('GPU packages', 'GPU 依赖')
diff --git a/freevideo_engine/launcher_view.py b/freevideo_engine/launcher_view.py
index fc6712c..2309c2b 100644
--- a/freevideo_engine/launcher_view.py
+++ b/freevideo_engine/launcher_view.py
@@ -294,7 +294,7 @@ def build(app):
component_row = ttk.Frame(app.model_components, style='Card.TFrame'); component_row.pack(fill='x')
app.component_buttons = {}
for component, en, zh in (('video', 'Video model ↗', '视频模型 ↗'),
- ('encoder', 'Text encoder ↗', '文本编码器 ↗'), ('decoder', 'Decoders ↗', '解码器 ↗')):
+ ('encoder', 'Prompt model ↗', '提示词模型 ↗'), ('decoder', 'Decoders ↗', '解码器 ↗')):
button = app.button(component_row, en, zh, lambda name=component: app.model_download_link(name))
button.configure(style='Card.TButton'); button.pack(side='left', padx=(0, 8))
app.component_buttons[component] = button
diff --git a/freevideo_engine/model_guidance.py b/freevideo_engine/model_guidance.py
index 1a9b536..de39f4e 100644
--- a/freevideo_engine/model_guidance.py
+++ b/freevideo_engine/model_guidance.py
@@ -316,19 +316,19 @@ def package_instructions(runtime_needed, zh=False):
"""
if sys.platform == 'darwin':
return (
- 'Get the four model packs (video model, text encoder, video & audio decoder, sampling caches); they also work on Mac. '
+ 'Get the four model packs: video model, prompt model (FreeVideo-文本编码器.zip), video & audio decoder, and sampling caches. They also work on Mac. '
'The installer downloads the Mac environment automatically. Do not download the Windows Environment package.',
- '下载「视频模型」「文本编码器」「视频与音频解码器」「采样缓存」四个模型包,Mac 同样适用。'
+ '下载「视频模型」「提示词模型(FreeVideo-文本编码器.zip)」「视频与音频解码器」「采样缓存」四个模型包,Mac 同样适用。'
'Mac 运行环境由安装器自动下载,无需下载 Windows「运行环境」包。')[bool(zh)]
if sys.platform.startswith('linux'):
return (
- 'Get the four model packs (video model, text encoder, video & audio decoder, sampling caches); they also work on Linux. '
+ 'Get the four model packs: video model, prompt model (FreeVideo-文本编码器.zip), video & audio decoder, and sampling caches. They also work on Linux. '
'The installer downloads the Linux environment automatically. Do not download the Windows Environment package.',
- '下载「视频模型」「文本编码器」「视频与音频解码器」「采样缓存」四个模型包,Linux 同样适用。'
+ '下载「视频模型」「提示词模型(FreeVideo-文本编码器.zip)」「视频与音频解码器」「采样缓存」四个模型包,Linux 同样适用。'
'Linux 运行环境由安装器自动下载,无需下载 Windows「运行环境」包。')[bool(zh)]
- text = ('Get the four model packs: video model, text encoder, video & audio decoder, and sampling caches. '
+ text = ('Get the four model packs: video model, prompt model (FreeVideo-文本编码器.zip), video & audio decoder, and sampling caches. '
'The reference audio pack is optional, for audio references.',
- '下载「视频模型」「文本编码器」「视频与音频解码器」「采样缓存」四个模型包;'
+ '下载「视频模型」「提示词模型(FreeVideo-文本编码器.zip)」「视频与音频解码器」「采样缓存」四个模型包;'
'「音频参考缓存」可选,用音频做参考时才需要。')[bool(zh)]
if runtime_needed:
text += '\n' + ('For a new installation, also get the Environment package.',
@@ -373,13 +373,13 @@ def show_component(app, component):
import webbrowser
from . import branding as b
from .launcher_copy import display
- titles = {'video': ('Video model', '视频模型'), 'encoder': ('Text encoder', '文本编码器'),
+ titles = {'video': ('Video model', '视频模型'), 'encoder': ('Prompt model', '提示词模型'),
'decoder': ('Video & audio decoders', '视频与音频解码器')}
instructions = {
'video': ('Choose your GPU variant on the model page and keep its folder structure.',
'按模型页说明选择显卡版本,保留下载的目录结构。'),
- 'encoder': ('Download the text encoder to your model folder.',
- '下载文本编码器,放入模型目录。'),
+ 'encoder': ('Download the prompt model to your model folder.',
+ '下载提示词模型,放入模型目录。'),
'decoder': ('Download the vae and audio_vae folders.',
'下载 vae 和 audio_vae 文件夹。'),
}
diff --git a/freevideo_engine/model_repair.py b/freevideo_engine/model_repair.py
index 421dad9..a78b7ec 100644
--- a/freevideo_engine/model_repair.py
+++ b/freevideo_engine/model_repair.py
@@ -41,8 +41,8 @@ BUSY = ('When the current task ends, a Repair button appears here; after you cli
'FreeVideo renames and keeps this file, then downloads the tested version.',
'当前任务结束后,这里会出现“修复”按钮;点击并确认后,FreeVideo 会把这个文件改名保留,再下载测试过的版本。')
OFFLINE = ('This offline-package installation cannot switch back in one step yet. Move or rename the file below, '
- 'then import the Text encoder package again on the Installation page.',
- '离线包安装暂时不能一键换回。请把下面这个文件移走或改名,再在“安装”页重新导入“文本编码器”包。')
+ 'then import the Prompt model package (FreeVideo-文本编码器.zip) again on the Installation page.',
+ '离线包安装暂时不能一键换回。请把下面这个文件移走或改名,再在“安装”页重新导入“提示词模型(FreeVideo-文本编码器.zip)”包。')
FIRST_INSTALL = (
'{file} differs from the version FreeVideo tests and was left unchanged. Click Retry installation below: '
'the confirmation page will list this file, and after you confirm, it is renamed and kept, '
diff --git a/freevideo_engine/model_status.py b/freevideo_engine/model_status.py
index fe3d748..70b75a9 100644
--- a/freevideo_engine/model_status.py
+++ b/freevideo_engine/model_status.py
@@ -3,7 +3,7 @@ import math
import threading
FAMILIES = ('video', 'text', 'decoder', 'sampling', 'image')
-NAMES = {'video': ('Video model', '视频模型'), 'text': ('Text encoder', '文本编码器'),
+NAMES = {'video': ('Video model', '视频模型'), 'text': ('Prompt model', '提示词模型'),
'decoder': ('Video & audio decoder', '视频与音频解码器'),
'sampling': ('Sampling caches', '采样缓存'),
'image': ('Image generation models', '图像生成模型')}
diff --git a/freevideo_engine/offline_packages.py b/freevideo_engine/offline_packages.py
index 62810c8..635bc40 100644
--- a/freevideo_engine/offline_packages.py
+++ b/freevideo_engine/offline_packages.py
@@ -71,7 +71,7 @@ def pack_name(path):
if 'sampling-cache' in parts:
return '采样缓存'
if path.startswith('models/encoder/') or 'latent_upscaler' in parts:
- return '文本编码器'
+ return '提示词模型(FreeVideo-文本编码器.zip)'
return '视频与音频解码器' if any(p in ('vae', 'audio_vae', 'vocoder') for p in parts) else '视频模型'
diff --git a/freevideo_engine/setup_progress.py b/freevideo_engine/setup_progress.py
index 29b6082..0ef9e5e 100644
--- a/freevideo_engine/setup_progress.py
+++ b/freevideo_engine/setup_progress.py
@@ -112,7 +112,7 @@ def transfer_parts(done, total, rate, decimal_sizes=False):
def progress_text(event, zh=False, *, decimal_sizes=False):
- """One activity line for the launcher, including known transfer and scan counts."""
+ """One activity line for the launcher, including known transfer counts."""
t = lambda en, cn: cn if zh else en
activity, name = event.get('activity'), event.get('name') or ''
# A Chinese name follows its verb directly; a Latin one (Python) keeps a space.
@@ -146,6 +146,8 @@ def progress_text(event, zh=False, *, decimal_sizes=False):
parts.extend(transfer_parts(done, total, event.get('rate'), decimal_sizes))
return ' · '.join(parts)
if activity == 'note':
+ if name in ('Finding existing models', '正在查找已有模型'):
+ return t('Finding files', '正在查找文件')
parts = [name]
scanned = event.get('scanned')
if number(scanned) and scanned > 0:
diff --git a/web/generation_progress.js b/web/generation_progress.js
index fa58b4a..aa4322f 100644
--- a/web/generation_progress.js
+++ b/web/generation_progress.js
@@ -268,8 +268,8 @@ export function encoderFileText(file, t) {
if (file.offline_installation === true) {
const target = encoderFilePath(file) ? t('the file below', '下面这个文件') : t('this file', '这个文件');
message += t(
- ` This offline-package installation cannot switch back in one step yet. Close FreeVideo, move or rename ${target}, then import the Text encoder package again on the Installation page of the launcher.`,
- `离线包安装暂时不能一键换回。请先关闭 FreeVideo,把${target}移走或改名,再在启动器的“安装”页重新导入“文本编码器”包。`);
+ ` This offline-package installation cannot switch back in one step yet. Close FreeVideo, move or rename ${target}, then import the Prompt model package (FreeVideo-文本编码器.zip) again on the Installation page of the launcher.`,
+ `离线包安装暂时不能一键换回。请先关闭 FreeVideo,把${target}移走或改名,再在启动器的“安装”页重新导入“提示词模型(FreeVideo-文本编码器.zip)”包。`);
} else if (file.launcher === true) message += t(
' Select "Repair" in the launcher under Settings > Environment to restore the tested file; the current file is kept.',
'可在启动器“设置 → 环境”中点“修复”恢复已验证的文件,原文件会保留。');
diff --git a/web/setup.js b/web/setup.js
index 3b3c745..1bc20e3 100644
--- a/web/setup.js
+++ b/web/setup.js
@@ -242,7 +242,7 @@ export async function openSetup() {
table.append(header);
for (const [family, rows] of Object.entries(measured.sources)) for (const row of rows) {
const tr = node('tr');
- const names = {'edge-models':t('Video model','视频模型'),'vdn-models':t('Decoder','解码器'),models:t('Text encoder','文本编码器'),pypi:t('Python packages','Python 依赖'),github:t('Tools','安装工具'),git:'Git',cuda:'CUDA'};
+ const names = {'edge-models':t('Video model','视频模型'),'vdn-models':t('Decoder','解码器'),models:t('Prompt model','提示词模型'),pypi:t('Python packages','Python 依赖'),github:t('Tools','安装工具'),git:'Git',cuda:'CUDA'};
if (family.startsWith('torch-')) names[family] = t('GPU packages','GPU 依赖');
const rate = row.bytes_per_second / 2**20;
const speed = !row.ok ? t('Unavailable','未连通') : row.speed_measured === false || !Number.isFinite(rate) || rate <= 0 ?