CharlesCNorton
Image-level person classification on EUPE-ViT-B features with no free parameters
e8b8483 | """Shared fixtures for the consistency suite.""" | |
| import json | |
| import sys | |
| from pathlib import Path | |
| import pytest | |
| REPO = Path(__file__).resolve().parents[1] | |
| sys.path.insert(0, str(REPO)) | |
| def load(rel: str) -> dict: | |
| """Parse a repo-relative JSON file.""" | |
| return json.loads((REPO / rel).read_text(encoding='utf-8')) | |
| def repo() -> Path: | |
| return REPO | |
| def rules() -> dict: | |
| return load('rules.json') | |
| def evaluation() -> dict: | |
| return load('eval.json') | |