Facial Recognition re-processes lots of assets #6571
Replies: 7 comments 8 replies
-
This isn't a bug. "Missing" queues faces with no associated person. It needs to process all of these to see if any are eligible to be grouped into people. |
Beta Was this translation helpful? Give feedback.
-
I see. This is due to "min recognized faces" set to >1? This is a little unsatisfactory, because every time I take a picture, the server now processes thousands of images (which takes roughly 15min now, avg. 50% cpu for all my 4 cores). And the number of assets to process potentially grows with every image I take... |
Beta Was this translation helpful? Give feedback.
-
It's possible to reduce the number of faces processed by only checking the faces of new assets, but this would lower the quality of the clustering algorithm. If you set min faces to 1, the behavior will resemble the old algorithm: all faces will be associated with a person and the clustering for new assets will be quick. The other side of that is that the quality will also be closer to the old algorithm (but still somewhat better). |
Beta Was this translation helpful? Give feedback.
-
Thx for the fast response. Maybe, "only checking the faces of new assets" can be provided as option and the user can decide. For my assets, I cannot see an overall improvement of the new clustering algorithm. Therefore, I would prefer speed (and less ressources) over quality 😄 Edit: Nevertheless, I would like to still use "min faces >1"... |
Beta Was this translation helpful? Give feedback.
-
Oh, and I realised that the facial recognition job is triggered as well for a new image without detected faces. Edit: rephrasing... |
Beta Was this translation helpful? Give feedback.
-
That's a good point. We can optimize that to only trigger facial recognition when a face is detected. |
Beta Was this translation helpful? Give feedback.
-
What do you think, are there any other optimization options? Should we open a discussion topic for this? Or discuss it in Discord? E.g.: I would expect, that the facial recognition for a new picture with e.g. two faces (which are already clusterd) is fast - given that their points are right in the middle of their already known cluster. |
Beta Was this translation helpful? Give feedback.
-
The bug
When I click "Missing" on the "Facial Recognition" job, thousands of assets are re-processed. When the job finishes and I click "Missing" again, the same amount of assets are processed again.
The OS that Immich Server is running on
Docker on Debian Bookworm
Version of Immich Server
v1.93.3
Version of Immich Mobile App
v1.93.2
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions