From d7a9ae15a54cb4b1acf679a32bc34e8349805308 Mon Sep 17 00:00:00 2001 From: worker-gpushot Date: Wed, 11 Nov 2026 13:03:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(packaging):=20=E8=B4=9F=E4=BE=8B=E5=88=A4?= =?UTF-8?q?=E6=8D=AE=208=20=E7=9A=84=E5=A4=B1=E8=B4=A5=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E8=A1=A5=E5=85=A8=EF=BC=88M249=20=E8=87=AA=E6=9F=A5=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原来只在「有 renderer= 行」时给详情;只有 `[shot] WxH` 行、没有 renderer 行的 日志会打出一条没有原因的 `[fail] 8.`——正是本脚本承诺不做的事。改成把两样 多余的出图痕迹都列出来(`存在出图行:renderer=…、[shot] 1180x760`)。 向量与真实样本复跑结论不变(16 条向量红 13 / 绿 3,A1/A2/A4 0、A3/A5/A6 1)。 --- packaging/check_gpu_shot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packaging/check_gpu_shot.py b/packaging/check_gpu_shot.py index 1d220c4..16a666e 100644 --- a/packaging/check_gpu_shot.py +++ b/packaging/check_gpu_shot.py @@ -235,7 +235,10 @@ def judge_refuse(log_path: Path, png_path: Path | None) -> Report: renderers = list(dict.fromkeys(shot_renderers(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: return report