Repository navigation
feat(mujiang): 分镜生成 - H3 提示词编译、自动选模式与重试策略 - #17
Open
Kim759-sev wants to merge 4 commits into
Open
Kim759-sev wants to merge 4 commits into
Kim759-sev wants to merge 4 commits into
Conversation
… into feat/mujiang-h3-compiler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
H3 分镜编译
本 PR 在 web 端提供纯函数。每个分镜行编译为一个连续镜头,输出提示词、有效时长、连续性、生成模式和 QC 策略。三字段用于编译器内部表示。T2VA 从 integrated_multimodal_description 开始,Ref2VA 从 subject_definitions 开始并输出规范六段。I2VA、FL2VA、L2VA 使用规范对齐句。逐字台词写在 标签内,画外音和无开口要求写入画面描述。调用方可传入独立的环境音和配乐。
编译器直接把原始 Picture、Subject、Video、Audio 引用、首帧状态和工作流能力传给 #14 的 resolveVideoUsage。明确绑定的首帧须指向有内容的图像节点。可用首帧或单张 Picture 使用 IV2;无首帧的单张 Subject 使用 fasth3-omni-r2v-8step,输出六段身份参考提示。仅有音视频时按 R2V 工作流声明的能力判断是否可用。编译器保留路由原因,并按 ignoreSubjects 从返回的 references 中移除当前 IV2 无法消费的身份参考。主角无锚点时阻止文生。
首尾帧或精确终点镜记录目标 FL2VA 和“未接入”的降级原因,缺可用绑定首帧时提示补帧。插件档位来自 presets.json,显式帧档优先,否则按 #14 的 nodeDuration 取向上档,超出最大值取最高档。
Shot JSON 字段对照
待接入位置
本次文件均在 web/src/mujiang/h3。插件运行时与画布调用点未接入。插件档位和 #14 的已有合同均以导入方式复用。
验证
web 类型检查和 lint 通过。相关 Bun 测试 35 项通过、0 项失败,既有 M9 待办 1 项。结构预算通过,修改文件及 PR 文本机密扫描零命中。
《既往》镜 01–05 实际编译输出
输入取自第一场《无风的大泽》分镜表和五张对应的迁移首帧 PNG。离线逐镜读取首帧内容、构造视频与图像节点绑定并运行编译器。每镜原文 3 秒,生成档 124 帧、24 fps,提示词按 5.17 秒分前后段安排原有动作。镜 04 留黑。以下为文本编译结果,真实出片和音轨验收留待后续接入。
镜 01 · 原文 3 秒 · 生成档 5.17 秒 · I2VA
镜 02 · 原文 3 秒 · 生成档 5.17 秒 · I2VA
镜 03 · 原文 3 秒 · 生成档 5.17 秒 · I2VA
镜 04 · 原文 3 秒 · 生成档 5.17 秒 · I2VA
镜 05 · 原文 3 秒 · 生成档 5.17 秒 · I2VA
🤖 Generated with Claude Code