goodspb / pdlib

PHP extension for Dlib.
MIT License
71 stars 19 forks source link

Scanning photos does not seem to be using GPU. #15

Closed santacl4ws closed 5 years ago

santacl4ws commented 5 years ago

I have passed through a gpu to my vm (quadro 4000) although it doesnt seem to be using it. How can i check that it is indeed using it?

santacl4ws commented 5 years ago

using nvidia-smi -l 1 i can see that it is indeed not using the GPU.

santacl4ws commented 5 years ago

I now have everything setup and complied to use my GPU. When i run sudo -u www-data php occ face:background_job i get an error "illegal instruction".

root@larsh:/var/www/nextcloud# sudo -u www-data php occ face:background_job -u lewis -t 0 -vv
1/10 - Executing task CheckRequirementsTask (Check all requirements)
        Found 5998 MB available to PHP.
        Capping used memory to maximum of 4GB
        Applying the memory limit to 1024MB configured in settings.
2/10 - Executing task CheckCronTask (Check that service is started from either cron or from command)
3/10 - Executing task LockTask (Acquire lock so that only one background task can run)
4/10 - Executing task DisabledUserRemovalTask (Purge all the information of a user when disable the analysi                                 s.)
yielding
5/10 - 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 lewis as there is no need for it
6/10 - Executing task CreateClustersTask (Create new persons or update existing persons)
        0 faces found for clustering
        0 persons found after clustering
yielding
7/10 - Executing task AddMissingImagesTask (Crawl for missing images for each user and insert them in DB)
        Skipping full image scan for user lewis
8/10 - Executing task EnumerateImagesMissingFacesTask (Find all images which don't have faces generated for                                  them)
yielding
9/10 - 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
yielding
        Processing image /mnt/ncdata/lewis/files/Photos/20160904_184555(1).jpg
        Image scaled from 1944x2592 to 768x1024 (since max image area is 786432 pixels^2)
**Illegal instruction**