matiasdelellis / facerecognition

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

too few faces recognized #729

Open delumerlino opened 3 months ago

delumerlino commented 3 months 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

Recognizing process recognizes too few faces 15208 images analyzed and only 5 faces recognized for a total of 283 grouped images

Actual behaviour

Running facerecognition and wait for discovery

Steps to reproduce

  1. Set options on facerecognion
  2. forcing recognition from command line for first run sudo -u www-data php -f /var/www/html/nextcloud/occ face:background_job -t 900
  3. Go on personal page on nextcloud and starting to name the faces

Server configuration

Client configuration

Logs

Background task log with debug.

sudo -u apache php occ -vvv face:background_job ``` PHP 8.1.27 (cli) (built: Dec 21 2023 20:19:54) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.27, Copyright (c) Zend Technologies with Zend OPcache v8.1.27, Copyright (c), by Zend Technologies root@ubuntusrv:~# sudo -u www-data php -f /var/www/html/nextcloud/occ face:background_job -vvv 1/8 - Executing task CheckRequirementsTask (Check all requirements) System: Linux System memory: 16710606848 PHP Memory Limit: Unknown Clustering backend: pdlib Image Backend: Imagick 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 admin 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 admin 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 ```
delumerlino commented 3 months ago

Is there someone here? here is my recognition stats: image

and what found:

image

matiasdelellis commented 2 months ago

Hi @delumerlino If there are 2760 clusters it means that there are enough people, but by default it does not show clusters with less than 10 faces. Can you try reducing this option in the preferences?

matiasdelellis commented 1 month ago

HI @delumerlino Did you have any progress?

Test forse recreate clusters.:

I.e.

matias@nube:/var/www/html/nextcloud$ sudo -u apache php occ user:setting user facerecognition recreate_clusters true
matias@nube:/var/www/html/nextcloud$
matias@nube:/var/www/html/nextcloud$ sudo -u apache php occ face:background_job -u user
1/8 - Executing task CheckRequirementsTask (Check all requirements)
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.)
4/8 - Executing task StaleImagesRemovalTask (Crawl for stale images (either missing in filesystem or under .nomedia) and remove them from DB)
5/8 - Executing task CreateClustersTask (Create new persons or update existing persons)
    Clusters already exist, but there was some change that requires recreating the clusters
    6165 faces found for clustering
    3203 clusters found after clustering
6/8 - Executing task AddMissingImagesTask (Crawl for missing images for each user and insert them in DB)
7/8 - Executing task EnumerateImagesMissingFacesTask (Find all images which don't have faces generated for them)
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