mirror of
https://github.com/immich-app/immich.git
synced 2025-01-21 00:52:43 -05: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:
parent
a24f3805c9
commit
fab19a8583
1 changed files with 2 additions and 2 deletions
|
@ -410,8 +410,8 @@ export class PersonService {
|
||||||
});
|
});
|
||||||
|
|
||||||
// `matches` also includes the face itself
|
// `matches` also includes the face itself
|
||||||
if (matches.length <= 1) {
|
if (machineLearning.facialRecognition.minFaces > 1 && matches.length <= 1) {
|
||||||
this.logger.debug(`Face ${id} has no matches`);
|
this.logger.debug(`Face ${id} only matched the face itself, skipping`);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue