Phase 3: confidence calibration fit + quality re-score #91

Merged
ilia merged 2 commits from feature/face-accuracy-phase3-recalibrate into master 2026-08-05 10:39:07 -05:00
Owner

Summary

  • Fit distance→confidence knots from same/different identified pairs (+ match_decisions when present)
  • calibrate_confidence uses fitted JSON when present; otherwise legacy empirical curve
  • Scripts: fit_confidence_calibration.py, rescore_face_quality.py (sharpness backfill without re-detect)
  • Docs: docs/FACE_CONFIDENCE_CALIBRATION.md; tests in tests/test_confidence_calibration_phase3.py

Test plan

  • pytest tests/test_confidence_calibration_phase3.py (+ Phase 1/2) with --noconftest
  • CI green
  • After merge on DEV: rescore_face_quality.py (dry-run then full); optional fit_confidence_calibration.py --dry-run
## Summary - Fit distance→confidence knots from same/different identified pairs (+ `match_decisions` when present) - `calibrate_confidence` uses fitted JSON when present; otherwise legacy empirical curve - Scripts: `fit_confidence_calibration.py`, `rescore_face_quality.py` (sharpness backfill without re-detect) - Docs: `docs/FACE_CONFIDENCE_CALIBRATION.md`; tests in `tests/test_confidence_calibration_phase3.py` ## Test plan - [x] `pytest tests/test_confidence_calibration_phase3.py` (+ Phase 1/2) with `--noconftest` - [ ] CI green - [ ] After merge on DEV: `rescore_face_quality.py` (dry-run then full); optional `fit_confidence_calibration.py --dry-run`
ilia added 1 commit 2026-08-05 10:33:17 -05:00
Add confidence fit + quality re-score tooling (Phase 3).
CI / skip-ci-check (pull_request) Successful in 30s
CI / docker-ci (pull_request) Successful in 31s
CI / python-lint (pull_request) Failing after 32s
CI / secret-scan (pull_request) Successful in 38s
CI / admin-unit (pull_request) Successful in 50s
CI / e2e (pull_request) Successful in 3m11s
CI / viewer-unit (pull_request) Successful in 3m33s
b68d7d6507
Support distance→confidence knots from identified pairs and match_decisions, keep legacy curve until a knots file is applied, and re-score face quality without re-detecting.
ilia added 1 commit 2026-08-05 10:33:50 -05:00
Fix unused Sequence import for ruff.
CI / skip-ci-check (pull_request) Successful in 33s
CI / docker-ci (pull_request) Successful in 33s
CI / python-lint (pull_request) Successful in 35s
CI / secret-scan (pull_request) Successful in 38s
CI / viewer-unit (pull_request) Successful in 2m49s
CI / e2e (pull_request) Successful in 2m43s
CI / admin-unit (pull_request) Successful in 3m19s
7f883cf6ff
ilia scheduled this pull request to auto merge when all checks succeed 2026-08-05 10:37:06 -05:00
ilia merged commit e57a4101ae into master 2026-08-05 10:39:07 -05:00
ilia deleted branch feature/face-accuracy-phase3-recalibrate 2026-08-05 10:39:08 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ilia/punimtag#91