1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00

fix(server): recognize faces when min. faces is set to 1 (#7144)

* fix(server): recognize face when min. faces is set to 1

* update logic

* clarified log

---------

Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
This commit is contained in:
Michel Heusschen 2024-02-17 04:32:11 +01:00 committed by GitHub
parent a24f3805c9
commit fab19a8583
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -410,8 +410,8 @@ export class PersonService {
});
// `matches` also includes the face itself
if (matches.length <= 1) {
this.logger.debug(`Face ${id} has no matches`);
if (machineLearning.facialRecognition.minFaces > 1 && matches.length <= 1) {
this.logger.debug(`Face ${id} only matched the face itself, skipping`);
return true;
}