Repository navigation
修复分镜候选丢失、气泡轮廓排字及条漫加载竞态 - #111
Merged
Merged
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.
原主分支中,包含式去重会删除真实子分镜;长页先缩后切会丢失局部信息;有轮廓时译文仍可能进入气泡外接矩形的空角;前台可能复用已取消的预加载。本 PR 保留真实父子/嵌套候选,以局部窗口和整页几何互补,使用轮廓内安全排字区,并保护加载任务的取消、完成和缓存提交。
按固定源码报告 F01–F16 实现:分镜面积相近去重、50% 重叠局部几何窗口及跨窗大框补充;原图先裁片 OCR、有界备用图、闭合浅色气泡轮廓恢复;轮廓内保守排字、离线安全区保留、字号文案/缓存和全文辅助阅读;加载任务 ID 保护、OCR 缓存先查后解码及冻结源修订;CBZ 头部提前停止、懒 PDF 页、条漫 compositor tiles 和低余量预算;上传头部认证、AI 响应上限及模型权重哈希校验。
完整逐项实现和验收边界见 docs/comic-audit-remediation.md。
验证针对提交
341d1aedbb150cd3e9d91c816d7377348f6d024f,由 CI #820 实际执行,整轮通过:单测跳过原因:真实验证页素材未进入仓库 1 项,未启用真实页 OCR 基线 1 项、真机性能 6 项、真机最终门禁 1 项、模拟器生产复核 1 项。UI 跳过的是未启用的真机最终 smoke。均不计为通过。
长页模拟器测试只作一次计量,日志中的 Memory Peak Physical 为 196303.296 kB;没有原主分支对照,也未从 stdout 得到 hitch 数值,不能据此宣称内存/卡顿改善比例或无卡顿。
限制:本地模型输出及权重不变;闭合浅色轮廓失败时保守降级,复杂/彩色/透明气泡不保证恢复;解码源仍有界整页,compositor tiles 不等同于压缩源区域解码。合成回归不能替代真实页面人工 gold、Python/Swift 实图 parity 和真机 Instruments;F15 的这些验收仍须执行。未恢复四等分导航、扩大分镜框或放大镜按钮。