matiasdelellis / facerecognition

Nextcloud app that implement a basic facial recognition system.
GNU Affero General Public License v3.0
505 stars 46 forks source link

Too few faces recognized #686

Open delumerlino opened 1 year ago

delumerlino commented 1 year ago

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

  1. Launch analysis occ face:background_job
  2. Waith for ending
  3. Check how many faces are discovered with occ face:stats
  4. Start recognize your friend with the gui
  5. Check the difference, actually I have 7136 faces found, but recognized only 289

Server configuration

Client configuration

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/FAQ ``` Insert your background log here ```
sirdrakeistda commented 11 months ago

related to https://github.com/matiasdelellis/facerecognition/issues/651 ?

vwbusguy commented 3 weeks ago

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.