CharlesCNorton
Image-level person classification on EUPE-ViT-B features with a single free parameter
f5498f9 Download tests/conftest.py from phanerozoic/1-parameter-classifier: direct link, hf CLI and curl.
- Browser
- Download file 603 Bytes
-
https://huggingface.co/phanerozoic/1-parameter-classifier/resolve/main/tests/conftest.py
- Command line
-
hf download hf://phanerozoic/1-parameter-classifier/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/phanerozoic/1-parameter-classifier/resolve/main/tests/conftest.py
603 Bytes
| """Shared fixtures and helpers 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 classifier() -> dict: | |
| return load('classifier.json') | |
| def tight() -> dict: | |
| return load('classifier_tight_fpr.json') | |