Skip to content

Commit 4abcc57

Browse files
committed
add match_top_k and max_faces_per_person to the example config
Both were only documented in the README table, not in the file users actually copy - and match_top_k is the single biggest lever on recognition quality.
1 parent df80e5e commit 4abcc57

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

docs/example-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ faceid:
2020
# in between -> uncertain; goes to the review queue only
2121
match_threshold: 0.50
2222
unknown_threshold: 0.35
23+
# A match score is the mean of the top-k most similar reference photos of a person.
24+
# Higher resists a single lucky photo, but drags down people whose references cover
25+
# many angles — their own less similar photos pull the mean. Measure before changing:
26+
# scripts/measure-recognition.py --top-k N. On one real gallery, 1 nearly doubled
27+
# correct recognitions over 3 with no misassignments.
28+
match_top_k: 3
29+
max_faces_per_person: 40 # soft cap; the most redundant photo is set aside
2330
min_face_px: 48 # minimum face size in the snapshot (pixels)
2431
det_size: 640 # detection input size (higher = better far faces, slower)
2532
max_attempts: 6 # recognition attempts per Frigate event

0 commit comments

Comments
 (0)