matiasdelellis / facerecognition

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

Unable to open mmod_human_face_detector.dat #680

Open delumerlino opened 1 year ago

delumerlino commented 1 year ago

Expected behaviour

Recognize faces from new images uploaded

Actual behaviour

After uploading new images, new faces are not detected. Running occ face:background_job returns the error _Unable to open /mnt/nc_data//appdata_oclm6369wrp2/facerecognition/models//1/mmod_human_facedetector.dat for reading.

Steps to reproduce

  1. Upload new images and wait for recognition
  2. After days of waiting, disable the cron job and run occ face:background_job manually and wait for the error

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 admin 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 user7 as there is no need for it 5/8 - Executing task CreateClustersTask (Create new persons or update existing persons) 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 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 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 full image scan for user user3 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 user6 Skipping image scan for user user7 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 Error during background task execution If error is not transient, this means that core component of face recognition is not working properly and that quantity and quality of detected faces and person will be low or suboptimal. You probably want to file an issue (please include exception below) to: https://github.com/matiasdelellis/facerecognition/issues In DlibCnnModel.php line 179: [Exception] Unable to open /mnt/nc_data//appdata_oclm6369wrp2/facerecognition/models//1/mmod_human_face_detector.dat for reading. Exception trace: at /var/www/html/nextcloud/apps/facerecognition/lib/Model/DlibCnnModel/DlibCnnModel.php:179 CnnFaceDetection->__construct() at /var/www/html/nextcloud/apps/facerecognition/lib/Model/DlibCnnModel/DlibCnnModel.php:179 OCA\FaceRecognition\Model\DlibCnnModel\DlibCnnModel->open() at /var/www/html/nextcloud/apps/facerecognition/lib/BackgroundJob/Tasks/ImageProcessingTask.php:113 OCA\FaceRecognition\BackgroundJob\Tasks\ImageProcessingTask->execute() at /var/www/html/nextcloud/apps/facerecognition/lib/BackgroundJob/BackgroundService.php:137 OCA\FaceRecognition\BackgroundJob\BackgroundService->execute() at /var/www/html/nextcloud/apps/facerecognition/lib/Command/BackgroundCommand.php:171 OCA\FaceRecognition\Command\BackgroundCommand->execute() at /var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php:298 Symfony\Component\Console\Command\Command->run() at /var/www/html/nextcloud/3rdparty/symfony/console/Application.php:1040 Symfony\Component\Console\Application->doRunCommand() at /var/www/html/nextcloud/3rdparty/symfony/console/Application.php:301 Symfony\Component\Console\Application->doRun() at /var/www/html/nextcloud/3rdparty/symfony/console/Application.php:171 Symfony\Component\Console\Application->run() at /var/www/html/nextcloud/lib/private/Console/Application.php:211 OC\Console\Application->run() at /var/www/html/nextcloud/console.php:100 require_once() at /var/www/html/nextcloud/occ:11
delumerlino commented 1 year ago

Now i get another error after disabling, removing and reinstalling:

_An error occurred while trying to read the first object from the file /mnt/ nc_data//appdata_oclm6369wrp2/facerecognition/models//1/dlib_face_recogniti on_resnet_model_v1.dat. ERROR: Error reading data while deserializing dlib::resizabletensor.

delumerlino commented 1 year ago

Anyone? Thanks

delumerlino commented 1 year ago

Restored from a backup, but after analyzing more than 11000 images, only 5 faces found.

ANYONE CAN HELP HERE???????