Drop real template library; keep CDN-only matching.
Remove build_library and runtime artifacts, ignore regenerable outputs, and add README/AGENTS/DESIGN/CHANGELOG for the simplified project. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-7
@@ -4,13 +4,11 @@ Labels live in samples/labels.json as {frame filename: 10 hero keys}, '?' for
|
||||
slots nobody has identified yet. Those slots are skipped, not counted wrong.
|
||||
|
||||
Usage:
|
||||
python evaluate.py # use the full template library
|
||||
python evaluate.py --cdn-only # ignore templates/real, measure the fallback layer
|
||||
python evaluate.py
|
||||
"""
|
||||
|
||||
import json
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import cv2
|
||||
|
||||
@@ -22,7 +20,6 @@ RAW_DIR = ROOT / "samples" / "raw"
|
||||
|
||||
|
||||
def main() -> None:
|
||||
cdn_only = "--cdn-only" in sys.argv
|
||||
if not LABELS_PATH.is_file():
|
||||
sys.exit(f"missing {LABELS_PATH}")
|
||||
frames = json.loads(LABELS_PATH.read_text(encoding="utf-8"))["frames"]
|
||||
@@ -31,9 +28,7 @@ def main() -> None:
|
||||
if not cfg["slots"]:
|
||||
sys.exit("config.json has no slots - run autocalibrate.py first")
|
||||
library = load_template_library()
|
||||
if cdn_only:
|
||||
library = [t for t in library if t[1] == "cdn"]
|
||||
print(f"library: {len(library)} templates{' (cdn only)' if cdn_only else ''}")
|
||||
print(f"library: {len(library)} CDN templates")
|
||||
|
||||
graded = correct = skipped = 0
|
||||
misses: list[str] = []
|
||||
|
||||
Reference in New Issue
Block a user