From 3fe5f6cf0d1a3de7eeb7348895683760f1d73e9c Mon Sep 17 00:00:00 2001 From: xsl Date: Sun, 12 Jul 2026 00:08:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20batch=5Fgrow=5Fv2.py=20=E7=9A=84=20hr=5F?= =?UTF-8?q?options=20=E4=BB=8E=20HR=5FOPTIONS=20=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E7=94=9F=E6=88=90=EF=BC=8C=E4=B8=8D=E5=86=8D=E7=A1=AC=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E4=B8=A4=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 旧代码硬编码 hr_options=[hr,nohr],导致仅非高清批量跑完后 meta 仍含 hr 档, 报告脚本取 hr_opts[0]=hr 与实际结果的 nohr 不匹配,结果图全部渲染不出来。 --- scripts/batch_grow_v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/batch_grow_v2.py b/scripts/batch_grow_v2.py index 75902f6..5534016 100644 --- a/scripts/batch_grow_v2.py +++ b/scripts/batch_grow_v2.py @@ -139,7 +139,7 @@ def main(): "total": total, "ok": ok, "fail": fail, "elapsed_sec": round(elapsed, 1), "concurrency": CONCURRENCY, "hairstyles": [{"id": h, "cn": c} for h, c in HAIRSTYLES], - "hr_options": [{"is_hr": True, "tag": "hr"}, {"is_hr": False, "tag": "nohr"}], + "hr_options": [{"is_hr": is_hr, "tag": tag} for is_hr, tag in HR_OPTIONS], "faces": [os.path.splitext(f)[0] for f in faces], "generated_at": time.strftime("%Y-%m-%d %H:%M:%S"), }