[Bug]: Face detection with negative score : Unable to handle embeddings request too many values to unpack #20456
Replies: 3 comments
-
The issue you're experiencing appears to be related to how Frigate handles face recognition file naming when faces receive negative scores. Based on the error message and the file naming pattern you've shown, this is a bug where the face recognition system is creating filenames with additional dashes that break the expected parsing format. The face recognition system expects face files to follow a specific naming convention for processing (1). When the system encounters faces with negative scores, it appears to be generating filenames that don't conform to the expected 5-part format (separated by dashes), causing the "too many values to unpack" error during reprocessing. For face recognition to work properly, you need to ensure that To troubleshoot this issue:
face_recognition:
enabled: true
model_size: large
The face recognition system is designed to save face recognition attempts for training purposes, with a default of 100 saved attempts (1). If the file naming is corrupted due to negative scores, this can prevent proper reprocessing of faces. This appears to be a software bug that should be reported to the Frigate development team, as the face recognition system should handle negative scores gracefully without breaking the file naming convention. 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
Thanks, I believe this has already been fixed for 0.17 |
Beta Was this translation helpful? Give feedback.
-
Are you sure @NickM-27 ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
Describe the problem you are having
Reprocess a face fails with "Unable to handle embeddings request too many values to unpack"
Happens mostly with new faces or with a new installation.
The names in clips/faces/train are wrongly named with double dash:

The split fails because there is 6 instead of 5 values https://github.com/blakeblackshear/frigate/blob/v0.16.1/frigate/data_processing/real_time/face.py#L402
The problem is most likely because write_face_attempt get a negative score
Steps to reproduce
Version
0.16.1
In which browser(s) are you experiencing the issue with?
Chromium 140.0.7339.127
Frigate config file
docker-compose file or Docker CLI command
podman systemd
Relevant Frigate log output
Relevant go2rtc log output
Operating system
Other Linux
Install method
Docker CLI
Network connection
Wired
Camera make and model
Amcrest AD410
Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions