fix(packaging): 负例判据 8 的失败详情补全(M249 自查)
原来只在「有 renderer= 行」时给详情;只有 `[shot] WxH` 行、没有 renderer 行的 日志会打出一条没有原因的 `[fail] 8.`——正是本脚本承诺不做的事。改成把两样 多余的出图痕迹都列出来(`存在出图行:renderer=…、[shot] 1180x760`)。 向量与真实样本复跑结论不变(16 条向量红 13 / 绿 3,A1/A2/A4 0、A3/A5/A6 1)。
This commit is contained in:
1 parent
1f7dfd7bdd
commit
d7a9ae15a5
1 file changed
+4
-1
@@ -235,7 +235,10 @@ def judge_refuse(log_path: Path, png_path: Path | None) -> Report:
|
|||||||
|
|
||||||
renderers = list(dict.fromkeys(shot_renderers(text)))
|
renderers = list(dict.fromkeys(shot_renderers(text)))
|
||||||
size = shot_size(text)
|
size = shot_size(text)
|
||||||
report.add(8, not renderers and size is None, "存在出图行:renderer=" + "/".join(renderers) if renderers else "")
|
surplus = (["renderer=" + "/".join(renderers)] if renderers else []) + (
|
||||||
|
[f"[shot] {size[0]}x{size[1]}"] if size is not None else []
|
||||||
|
)
|
||||||
|
report.add(8, not surplus, "存在出图行:" + "、".join(surplus) if surplus else "")
|
||||||
|
|
||||||
if png_path is None:
|
if png_path is None:
|
||||||
return report
|
return report
|
||||||
|
|||||||
Reference in new issue
Block a user