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:
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
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue