Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

michelheusschen
Copy link
Contributor

In #6961 there was an optimization to face recognition, but it overlooks the scenario where machineLearning.facialRecognition.minFaces is set to 1, resulting in no person being created.

Has been tested in an empty instance by setting MIN RECOGNIZED FACES to 1 and then uploading an image with a single face and match

@mertalev
Copy link
Contributor

You're right that this check undermines a min face count of 1 in the sense that it behaves the same as a min face count of 2.

But the optimization here effectively becomes reverted if the check is set to 0. It'd be better to have this condition check for whether the min face count is 1 and only allow a match length of 1 if so.

@mertalev mertalev enabled auto-merge (squash) February 17, 2024 03:29
@mertalev mertalev merged commit fab19a8 into immich-app:main Feb 17, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants