nghianguyenandClaude Fable 5 13eacc4ab2 ANSFR: persist explicit recognizer-model choice across restarts
SetANSRFRecognizerModel now records the choice in the face database
(SETTINGS key RECOGNIZER_MODEL_PREF), and LoadEngine restores it when no
explicit choice was made in the current session - so a runtime switch to
ArcFace (or AdaFace) survives server restarts without re-calling the API.

Kept separate from EMBEDDING_MODEL on purpose: only an actual API call is
recorded as a preference. An automatic ArcFace fallback (pre-v1.4 zip
without adafacerecognizer.onnx) is not persisted, so upgrading such a
deployment to the v1.4 pack still gets the AdaFace default.

ANSFR-UnitTest: TestModelSwitchV14 (now also runnable via --test) gains a
simulated restart - release handle, recreate on the same database, and
assert the persisted ArcFace choice is restored and still recognizes the
enrolled user. Verified ALL PASSED.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-26 11:47:32 +10:00
2026-04-22 16:52:40 +10:00
2026-05-14 17:48:09 +10:00
2026-06-18 05:55:31 +10:00
2026-06-12 14:13:26 +10:00
2026-03-29 14:10:05 +11:00
2026-06-18 05:55:31 +10:00
2026-05-01 11:16:47 +10:00
2026-03-29 14:10:05 +11:00
2026-03-28 16:54:11 +11:00
2026-03-29 14:10:05 +11:00
2026-03-29 14:10:05 +11:00
2026-03-29 14:10:05 +11:00
2026-06-18 05:55:31 +10:00
2026-03-28 13:13:41 +11:00
S
Description
No description provided
13 MiB
Languages
C 55.3%
C++ 43.4%
Python 0.5%
CMake 0.3%
Objective-C++ 0.2%
Other 0.2%