From ffaa08e7ea3de2f6bfc95bdfbe4d856a1020bb5c Mon Sep 17 00:00:00 2001 From: Mert <101130780+mertalev@users.noreply.github.com> Date: Wed, 6 Mar 2024 22:20:38 -0500 Subject: [PATCH] chore(server): lower default max recognition distance for facial recognition (#7689) lower default to 0.5 --- server/src/domain/person/person.service.spec.ts | 2 +- server/src/domain/system-config/system-config.core.ts | 2 +- server/src/domain/system-config/system-config.service.spec.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/domain/person/person.service.spec.ts b/server/src/domain/person/person.service.spec.ts index 0419fc0561..deb7474e2a 100644 --- a/server/src/domain/person/person.service.spec.ts +++ b/server/src/domain/person/person.service.spec.ts @@ -709,7 +709,7 @@ describe(PersonService.name, () => { }, { enabled: true, - maxDistance: 0.6, + maxDistance: 0.5, minScore: 0.7, minFaces: 3, modelName: 'buffalo_l', diff --git a/server/src/domain/system-config/system-config.core.ts b/server/src/domain/system-config/system-config.core.ts index 1699f7131d..644d5c3cbb 100644 --- a/server/src/domain/system-config/system-config.core.ts +++ b/server/src/domain/system-config/system-config.core.ts @@ -75,7 +75,7 @@ export const defaults = Object.freeze({ enabled: true, modelName: 'buffalo_l', minScore: 0.7, - maxDistance: 0.6, + maxDistance: 0.5, minFaces: 3, }, }, diff --git a/server/src/domain/system-config/system-config.service.spec.ts b/server/src/domain/system-config/system-config.service.spec.ts index 7721182152..91c095cb75 100644 --- a/server/src/domain/system-config/system-config.service.spec.ts +++ b/server/src/domain/system-config/system-config.service.spec.ts @@ -76,7 +76,7 @@ const updatedConfig = Object.freeze({ enabled: true, modelName: 'buffalo_l', minScore: 0.7, - maxDistance: 0.6, + maxDistance: 0.5, minFaces: 3, }, },