fix: batch_grow_v2.py 的 hr_options 从 HR_OPTIONS 动态生成,不再硬编码两档

旧代码硬编码 hr_options=[hr,nohr],导致仅非高清批量跑完后 meta 仍含 hr 档,
报告脚本取 hr_opts[0]=hr 与实际结果的 nohr 不匹配,结果图全部渲染不出来。
This commit is contained in:
xsl
2026-07-12 00:08:01 +08:00
parent e17677158a
commit 3fe5f6cf0d
+1 -1
View File
@@ -139,7 +139,7 @@ def main():
"total": total, "ok": ok, "fail": fail, "total": total, "ok": ok, "fail": fail,
"elapsed_sec": round(elapsed, 1), "concurrency": CONCURRENCY, "elapsed_sec": round(elapsed, 1), "concurrency": CONCURRENCY,
"hairstyles": [{"id": h, "cn": c} for h, c in HAIRSTYLES], "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], "faces": [os.path.splitext(f)[0] for f in faces],
"generated_at": time.strftime("%Y-%m-%d %H:%M:%S"), "generated_at": time.strftime("%Y-%m-%d %H:%M:%S"),
} }