Too few faces recognized
Hey, Thanks for reporting issues back to Nextcloud Face Recognition. Please, try to complete this report in detail so we can help you easier. :smile:
Make sure you read all the documentation, and the FAQ, and that the issue has not been reported before. :wink:
Expected behaviour
Afetr the analysis, ask the user to recognize the faces
Actual behaviour
Not all the faces discovered are available for recognization
Steps to reproduce
- Launch analysis occ face:background_job
- Waith for ending
- Check how many faces are discovered with occ face:stats
- Start recognize your friend with the gui
- Check the difference, actually I have 7136 faces found, but recognized only 289
Server configuration
-
Operating system: Ubuntu 22.04.2 LTS
-
Pdlib version:
-
How is DLib installed: Make sure it is working correctly with this tool apt install php8.1-pdlib
-
PHP version: 8.1
-
Web server: Apache 2
-
Database: 10.6.14-MariaDB
-
Nextcloud version: 27.0
Client configuration
-
Browser: any
-
Operating system: Window 10 Pro 22H2
Logs
Background task log with debug.
sudo -u apache php occ -vvv face:background_job
1/8 - Executing task CheckRequirementsTask (Check all requirements) System: Linux System memory: 16723877888 PHP Memory Limit: Unknown 2/8 - Executing task CheckCronTask (Check that service is started from either cron or from command) 3/8 - Executing task DisabledUserRemovalTask (Purge all the information of a user when disable the analysis.) yielding yielding yielding yielding yielding yielding yielding yielding 4/8 - Executing task StaleImagesRemovalTask (Crawl for stale images (either missing in filesystem or under .nomedia) and remove them from DB) Skipping stale images removal for user User1 as there is no need for it Skipping stale images removal for user User2 as there is no need for it Skipping stale images removal for user User3 as there is no need for it Skipping stale images removal for user User4 as there is no need for it Skipping stale images removal for user User5 as there is no need for it Skipping stale images removal for user User6 as there is no need for it Skipping stale images removal for user User1 as there is no need for it Skipping stale images removal for user backups as there is no need for it 5/8 - Executing task CreateClustersTask (Create new persons or update existing persons) Found 0 faces without associated persons for user User1 and model 1 Clusters already exist, estimated there is no need to recreate them yielding Skipping cluster creation, not enough data (yet) collected. For cluster creation, you need either one of the following: * have 1000 faces already processed * or you need to have 95% of you images processed Use stats command to track progress yielding Skipping cluster creation, not enough data (yet) collected. For cluster creation, you need either one of the following: * have 1000 faces already processed * or you need to have 95% of you images processed Use stats command to track progress yielding Skipping cluster creation, not enough data (yet) collected. For cluster creation, you need either one of the following: * have 1000 faces already processed * or you need to have 95% of you images processed Use stats command to track progress yielding Skipping cluster creation, not enough data (yet) collected. For cluster creation, you need either one of the following: * have 1000 faces already processed * or you need to have 95% of you images processed Use stats command to track progress yielding Skipping cluster creation, not enough data (yet) collected. For cluster creation, you need either one of the following: * have 1000 faces already processed * or you need to have 95% of you images processed Use stats command to track progress yielding Found 0 faces without associated persons for user User1 and model 1 Clusters already exist, estimated there is no need to recreate them yielding Skipping cluster creation, not enough data (yet) collected. For cluster creation, you need either one of the following: * have 1000 faces already processed * or you need to have 95% of you images processed Use stats command to track progress yielding 6/8 - Executing task AddMissingImagesTask (Crawl for missing images for each user and insert them in DB) Skipping full image scan for user User1 Skipping image scan for user User2 that has disabled the analysis Skipping image scan for user User3 that has disabled the analysis Skipping image scan for user User4 that has disabled the analysis Skipping image scan for user User5 that has disabled the analysis Skipping image scan for user User6 that has disabled the analysis Skipping full image scan for user User1 Skipping image scan for user backups that has disabled the analysis 7/8 - Executing task EnumerateImagesMissingFacesTask (Find all images which don't have faces generated for them) yielding 8/8 - Executing task ImageProcessingTask (Process all images to extract faces) NOTE: Starting face recognition. If you experience random crashes after this point, please look FAQ at https://github.com/matiasdelellis/facerecognition/wiki/FAQInsert your background log here
related to https://github.com/matiasdelellis/facerecognition/issues/651 ?
You might try slowly dialing back the Confidence until you get the right balance of accuracy and clustering. The difficulty is that if you lower confidence, you might end up with more clusters that have more than one person, and especially young children.