feat: enable LivePortrait WebGPU pipeline

This commit is contained in:
haixin.yang committed 2026-07-10 19:09:15 +08:00
1 parent 16c0bf7f2e
commit 32e8a0fbb4
10 files changed
+200 -81

No files matched your search

+18 -18
View File
@@ -145,25 +145,25 @@ export const UI_COPY = {
avatarSupported: "浏览器已就绪",
avatarDescription: "使用正脸照片与当前 AI 配音生成会说话的人像。首版采用浏览器端 ONNX 路径,模型将在首次生成时按需下载。",
avatarPortrait: "正脸照片",
avatarWebgpu: "WASM 稳定路径",
avatarWebgpu: "全链路 WebGPU",
avatarAudio: "当前配音",
avatarCheck: "检查浏览器支持",
avatarRecheck: "重新检查浏览器",
avatarOfficial: "完整模型路线",
avatarWebPort: "Web 移植中",
avatarWebPort: "WebGPU 已跑通",
avatarService: "官方推理服务",
avatarServiceNeeded: "LivePortrait Web 移植中",
avatarServiceHint: "浏览器单帧与画面轨替换已通过验收;3D 形变当前使用较慢的 WASM 正确性路径,下一阶段接入音频驱动 ONNX 并进行 WebGPU 加速。",
avatarPortingStatus: "模型工程 · 阶段 2/3",
avatarServiceHint: "JoyVASA 音频运动与 LivePortrait 神经渲染已完成全 WebGPU 端到端验收;5D GridSample 已等价改写为 WebGPU 支持的 4D 采样与深度插值。",
avatarPortingStatus: "模型工程 · 阶段 3/3",
avatarModelSource: "锁定模型",
avatarStagePinned: "模型版本已锁定",
avatarStageGrid: "3D 形变单帧已跑通",
avatarStageAudio: "音频驱动 ONNX",
avatarStageGrid: "5D 形变已改写验证",
avatarStageAudio: "音频驱动 + WebGPU",
avatarChecking: "正在检测浏览器…",
avatarPreparing: "准备肖像",
avatarGenerateAcceptance: "生成单帧并替换画面轨",
avatarAcceptanceDone: "单帧验收完成",
avatarTrackReplaced: "LivePortrait 单帧已替换到画面轨",
avatarAcceptanceDone: "口型视频已生成并替换画面轨",
avatarTrackReplaced: "LivePortrait 口型视频已替换到画面轨",
avatarGenerationFailed: "数字人生成失败",
avatarOpen: "打开数字人控制台",
avatarLipSyncTitle: "字幕口型同步",
@@ -176,7 +176,7 @@ export const UI_COPY = {
avatarNeedsCaptions: "请先生成或添加字幕",
avatarSyncMode: "同步方式",
avatarSyncModeCaption: "字幕 + 配音精确对齐",
avatarGenerationNote: "已锁定 Hugging Face 模型提交与生成器校验值;兼容性验证不会下载 421MB 生成器。",
avatarGenerationNote: "模型已随项目按 50MB 分片托管并由服务工作线程缓存;首次运行需要下载,后续直接复用本地缓存。",
avatarGenerate: "生成口型视频",
avatarGenerating: "正在生成数字人视频",
avatarGenerationHint: "首次运行会下载模型;请保持此页面打开。",
@@ -389,25 +389,25 @@ export const UI_COPY = {
avatarSupported: "Browser ready",
avatarDescription: "Generate a talking portrait from a front-facing photo and the current AI voiceover. The browser ONNX model will download on first use.",
avatarPortrait: "Front-facing photo",
avatarWebgpu: "Stable WASM path",
avatarWebgpu: "Full WebGPU pipeline",
avatarAudio: "Current voiceover",
avatarCheck: "Check browser support",
avatarRecheck: "Recheck browser",
avatarOfficial: "Full-model path",
avatarWebPort: "Web port in progress",
avatarWebPort: "WebGPU validated",
avatarService: "Official inference service",
avatarServiceNeeded: "LivePortrait Web port in progress",
avatarServiceHint: "Browser single-frame inference and visual-track replacement have passed. The 3D warping path currently uses the slower WASM correctness path; audio-driver ONNX and WebGPU acceleration are next.",
avatarPortingStatus: "Model engineering · Stage 2/3",
avatarServiceHint: "JoyVASA audio motion and LivePortrait neural rendering passed full WebGPU end-to-end acceptance. Native 5D GridSample was equivalently rewritten as supported 4D sampling plus depth interpolation.",
avatarPortingStatus: "Model engineering · Stage 3/3",
avatarModelSource: "Pinned model",
avatarStagePinned: "Model revision pinned",
avatarStageGrid: "3D browser frame passed",
avatarStageAudio: "Audio driver ONNX",
avatarStageGrid: "5D warping rewrite validated",
avatarStageAudio: "Audio driver + WebGPU",
avatarChecking: "Checking browser…",
avatarPreparing: "Preparing portrait",
avatarGenerateAcceptance: "Generate frame and replace visual track",
avatarAcceptanceDone: "Single-frame acceptance complete",
avatarTrackReplaced: "LivePortrait frame replaced the visual track",
avatarAcceptanceDone: "Lip-sync video generated and placed on the visual track",
avatarTrackReplaced: "LivePortrait lip-sync video replaced the visual track",
avatarGenerationFailed: "Avatar generation failed",
avatarOpen: "Open avatar controls",
avatarLipSyncTitle: "Caption lip sync",
@@ -420,7 +420,7 @@ export const UI_COPY = {
avatarNeedsCaptions: "Generate or add captions first",
avatarSyncMode: "Sync method",
avatarSyncModeCaption: "Captions + voiceover alignment",
avatarGenerationNote: "The Hugging Face revision and generator checksum are pinned. Compatibility diagnostics do not download the 421 MB generator.",
avatarGenerationNote: "Models ship with the project in 50 MB chunks and are cached by the service worker. First use downloads them; later runs reuse the local cache.",
avatarGenerate: "Generate lip-sync video",
avatarGenerating: "Generating avatar video",
avatarGenerationHint: "First use downloads models. Keep this page open.",