From 40d570f2c2b832a10ae2e78d9986ee0953c1dbe0 Mon Sep 17 00:00:00 2001 From: dtoro Date: Fri, 10 Apr 2026 11:09:43 +0200 Subject: [PATCH] fix: raise face detection threshold to 0.85, tighten clustering Eliminates false positives (dog faces, painting faces) by requiring score >= 0.85. Tighten cluster eps to 0.25 for better separation. Tested: 4 real faces from 2 photos, no false positives. Co-Authored-By: Claude Opus 4.6 (1M context) --- backend/app/config.py | 4 ++-- mulita.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/app/config.py b/backend/app/config.py index 0128606..de4adcb 100644 --- a/backend/app/config.py +++ b/backend/app/config.py @@ -50,8 +50,8 @@ class FacesSettings(BaseModel): """YuNet + SFace face detection/recognition settings""" enabled: bool = True min_face_size: int = 40 - recognition_threshold: float = 0.7 - cluster_eps: float = 0.35 + recognition_threshold: float = 0.85 + cluster_eps: float = 0.25 class VisionSettings(BaseModel): """AI vision pipeline settings. Disabled when running on SQLite diff --git a/mulita.yml b/mulita.yml index a5dcd80..dea7564 100644 --- a/mulita.yml +++ b/mulita.yml @@ -44,6 +44,6 @@ vision: faces: enabled: true min_face_size: 40 - recognition_threshold: 0.7 - cluster_eps: 0.35 + recognition_threshold: 0.85 + cluster_eps: 0.25 worker_concurrency: 2