优化通用视频多模态解析与本地模型总结#2
Draft
Entropy-R wants to merge 1 commit into
Draft
Conversation
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.
改动内容
--with-vision多模态解析模式。原因与影响
原流程只依赖字幕或 Whisper,容易遗漏 PPT、代码、图表和操作步骤。旧视觉链路还存在固定采样、重复画面、上下文冗余和本地模型批次超限问题。本次调整使用通用的时长与内容自适应策略,不包含针对单个视频的规则。
默认行为保持不变:未传
--with-vision时不下载或分析画面。启用多模态模式后,语音/字幕与画面均作为重要证据;本地测试样本的完整视觉链路耗时由约 20 分 36 秒降低至约 9 分 43 秒。验证
python3 -m py_compile video_summary.pypython3 -m unittest discover -s tests -v(32 项通过)docker compose config -qgit diff --check