Skip to content

Config default FACE_RECOGNITION_MODEL=Facenet (128-dim) contradicts EMBEDDING_DIMENSION=512 #158

Description

@ahmetabdullahgultekin

From the 2026-05-31 code-quality audit (parent archive). app/core/config.py:107 defaults FACE_RECOGNITION_MODEL="Facenet" (128-dim) while EMBEDDING_DIMENSION is 512 — violates the model↔dimension invariant. Prod overrides both (safe), but any default/dev/test run writes 128-dim into a 512 schema. Fix: default to Facenet512, or add a @model_validator mapping model→dim (one already exists for the aged-threshold inversion; none for this).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsurface/biobiometric-processor (FastAPI/Python)

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions