New reference store. Every learned face now lives as one set under refquelle/<ref_id>/ (original
image, 112 px crop, fingerprint, origin) with one catalog refquelle/katalog.jsonl that records the
person binding, status, quality verdicts and export marks per set. Everything that reads or writes
references (recognition, live watchers, enrollment, the unknown pool, learning runs, Review & sync to
Frigate, renaming, deleting a person, photo upload and Frigate import, the stock QS, backup and restore,
the support area) goes through this one module. The person folder faces/ is no longer a source: on an
installation without an old stock the module builds it as a derived view, on an installation coming from
0.1.1.010 it stays exactly as it was (see "Going back to 0.1.1.010" below).
One-time migration at the first start of this version, as its own step before the worker starts. If the
old stock is present, the service runs the migration script as a separate process and waits for it
(setting migration_timeout_s, factory value 600 s; when the deadline passes, the process is ended, the
migration stays pending and the next start resumes it). The script first counts the old stock (numbers
in the log), records the target state and copies every old store into
state/archiv/vor_refquelle_<date>/kopie/ byte for byte before anything new is written, writes the sets
(resumable after a crash, no duplicate lines), rebuilds the matrices and compares them bit for bit
against the old values, and only then marks the migration done. The old files stay where they are;
nothing is moved and nothing is deleted. If the comparison fails, the service keeps recognising on the untouched
old stock, /health turns red and the next start tries again. Damaged lines of the old catalog are
counted and reported loudly (log, /health); they do not stop the migration. Measured as a script: 46 seconds on the
owner's installation (553 sets of 23 persons, Intel Core Ultra 9); 382 seconds on a copy of a larger tester
stock (2,967 sets of 37 persons) in a container with 4 CPU cores, plus 57 seconds for missing fingerprints.
At the first start, step 6 of the start check runs before the migration; it now reports "faces of the
previous version found — migrating them after this check, the count follows when it is done" as info
instead of warning about an empty face master.
Going back to 0.1.1.010. Set the image back to 0.1.1.010 and restart; there is nothing to do in the data
folder. 0.1.1.010 finds its faces as they were on the day of the update. Faces this version learned since
the update are missing there, and what 0.1.1.010 learns afterwards is not taken over by a later update.
Tested before the release with the same migration code on the owner's installation and on a copy of a
tester stock: the old files stayed byte for byte the same, and 0.1.1.010 started again with the same faces.
A backup before the update is still recommended: /backup_voll plus a copy of clips/refcache.npz, which
the full backup does not contain.
Missing fingerprints. A face whose old stock holds no fingerprint gets one
computed from its stored image, on the CPU, once, right after the migration and before the worker starts
(same process, same deadline). Everything the old stock already had is taken over as it is; nothing else
is recomputed. A set whose image shows no face or cannot be read is marked and left without a
fingerprint; it is not retried. /health shows the compute step (open, computed, without face, errors)
and turns red if the step failed. The computed value carries the checksum of the model's source file, so
CUDA installations accept it as well.
Start and saving. The worker reads the references once at start, not at the first event, and re-reads
only when the store changes. When the worker saves a recognised face, it stores the numbers of the
recognition itself; the second computation at the end of the event is gone. The background trial
recalculation of 0.1.1.012 (state/refquelle_nachrechnung.json) is removed.
Start order. At every start the worker now builds its video geometries before anything else. To read the
references at start it only needs the model identity (model name and the checksum of the model's source
file), which it takes from the registry without building anything on the accelerator; the full engine
identity is fetched only when a set is saved after the first event. A start that still builds the image
path first stops the worker loudly, like a compilation mismatch (/health red, no verdicts), and the
short start proof does not run before the process has built a geometry; it runs again at the next occasion. Reason: on Intel iGPUs the compiled pose
model depends on what was compiled before it; reading the engine identity at start built the recognition
model first, which shifted the pose model and sieved every face on a fresh installation.
Unknown faces. The worker now groups the unknown faces of a clip by similarity (two faces in the same
frame are never one group) and keeps the best images per group (settings unbekannt_latte,
unbekannt_bilder_je_gruppe, unbekannt_rahmen_max; unbekannt_rahmen_max 0 switches this off). A
consumer in the service takes each group after the event and compares it with the unknown identities you
already have: if it matches one (setting unbekannt_latte), the faces are added there, otherwise a new
unknown identity is created. The alert for an unknown person (MQTT szene_unbekannt with the identity,
Telegram with the best image; switched by the alert category fremd_verdacht) now goes out once per pass
over the property and identity, after the scene grace szene_karenz_s. It is also sent when a known
person was recognised in the same pass; their names are listed in the alert as information. No alert for
re-analyses, for events older than 15 minutes, for visitors and objects. /health shows the consumer
under unbekannt.
Probably recognized. An unknown identity whose faces clearly point to one known person gets the mark
"probably ": at least two faces, most of them closest to that person, a median similarity to that
person of at least 0.30 and a median lead of at least 0.10 over the next person (settings
aehnlich_latte, aehnlich_abstand, aehnlich_min_gesichter). Visitors and objects are left out. On the
Unknown page these identities are collected per person under "Probably recognized"; there you can assign
a selection to the person or say that it is not them. Such an identity sends no unknown alert. /health
shows the classification under aehnlich.
What's new box. The entry of this version links to the new chapter "New in this version" on the "Read me
first" page, which also explains going back to 0.1.1.010.
/backup_voll and the restore carry the new store; the support area faces delivers the store and the
catalog. The older flat data layout from before July 2026 is no longer renamed at service start; the
migration adopts it. The duplicate check of the enrollment takeover asks the module instead of the
folder, so earlier takeovers still count after the migration.
Internal: a new coverage rule in the release checks (rule D: path words of the reference stores only
inside the module) and an invariant that binds it to the project rules; the migration script returns 4
when the migration is green but the compute step red.
gpu-legacy: not load-tested before this release (no test machine for this variant).
rocm: not load-tested before this release (no test machine for this variant); a field installation last confirmed this variant on 0.1.0.511.
Known issues, accepted for this release:
- cuda: after the update from 0.1.1.010, the worker writes two warning lines ("matrix with N rows, M with a foreign engine") every time it re-reads the reference matrix. The rows are fingerprints that the migration computed once on the CPU; they are kept and used for recognition. In the release test all events were booked once and the same persons were recognised as in the reference run, so the lines are log noise only. The gpu image shows the same lines.
- cuda: only the first of the two load tests ran for this image (one worker thread, one live watcher). The second test (two worker threads, no live watcher) was not run, because the first one was marked red for the warning lines above.