Show SV metadata for postprocess results

This commit is contained in:
admin
2026-06-10 17:57:54 +08:00
parent ec5b25d2d0
commit 75ab895ba2
5 changed files with 160 additions and 14 deletions

View File

@@ -130,9 +130,12 @@ def _run_default_batch_job(log, payload: dict[str, Any]) -> dict[str, Any]:
baidu_output = pipeline.run_dehaze_method(filename, "Baidu_API", {}, log)
auto_output = pipeline.post_result_path(filename, "Baidu_API", "auto_sv", {})
if skip_existing and auto_output.exists():
auto_meta = pipeline.post_metadata_path(auto_output)
if skip_existing and auto_output.exists() and auto_meta.exists():
log(f"[自动 S/V] 已存在,跳过: {pipeline.relpath(auto_output)}")
else:
if auto_output.exists() and not auto_meta.exists():
log("[自动 S/V] 已有图片但缺少 S/V 元数据,重新计算")
outputs = pipeline.run_postprocessors_for_source(
filename,
"Baidu_API",