Show SV metadata for postprocess results
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user