Gate YOLO tile labels by visible ratio
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-07-09 13:12:33 +02:00
parent c4a2e13d43
commit a20d9b70c7
8 changed files with 93 additions and 4 deletions
@@ -291,6 +291,7 @@ def build_audit(summary: dict[str, Any], summary_path: Path, args: argparse.Name
"negative_keep_ratio": summary.get("negative_keep_ratio"),
"background_negative_repeat": summary.get("background_negative_repeat"),
"min_label_px": summary.get("min_label_px"),
"min_label_visible_ratio": summary.get("min_label_visible_ratio"),
"tile_count": len(tiles),
"positive_tile_count": len(positive_tiles),
"negative_tile_count": len(negative_tiles),
@@ -348,6 +349,7 @@ def write_markdown(report: dict[str, Any], path: Path) -> None:
f"- Tiles: {report['tile_count']} ({report['positive_tile_count']} positive, {report['negative_tile_count']} negative)",
f"- Samples: {report['sample_count']} ({report['positive_sample_count']} positive, {report['background_sample_count']} background)",
f"- Repeated background negative share: {report['repeated_background_negative_share_of_negatives']:.3f}",
f"- Minimum visible label ratio: {format_optional_float(report.get('min_label_visible_ratio'))}",
"",
"## Label Quality",
"",