iamklaus / nextcloud

Nextcloud docker file including cron via supervisor and all dependencies to install the face recognition app.
17 stars 9 forks source link

Doesn't work #11

Open marlemion opened 2 years ago

marlemion commented 2 years ago

Latest docker build. Get this in the face recognition settings:

Configuration information

Current model: Not installed

Maximum memory assigned for image processing: Not configured.

Seems that you still have to configure the assigned memory for image processing.

I have set MEMORY_LIMIT to 1G and it is also reported correctly by phpinfo.

phpinfo also correctly reports pdlib to be available.

face recognition app is 0.9.5

marlemion commented 2 years ago

sudo -u www-data php occ app:enable facerecognition

Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 442368 bytes) in /var/www/html/3rdparty/composer/autoload_real.php on line 35

free -h total used free shared buff/cache available Mem: 7.4Gi 3.1Gi 218Mi 85Mi 4.1Gi 4.0Gi Swap: 1.0Gi 1.0Gi 12Mi

marlemion commented 2 years ago

Ok, so one needs to set the MEMORY LIMIT and the model by hand:

sudo -u www-data PHP_MEMORY_LIMIT=1G php occ face:setup -M 1G sudo -u www-data PHP_MEMORY_LIMIT=1G php occ face:setup -m 3

lorvent commented 1 year ago

Ok, so one needs to set the MEMORY LIMIT and the model by hand:

sudo -u www-data PHP_MEMORY_LIMIT=1G php occ face:setup -M 1G sudo -u www-data PHP_MEMORY_LIMIT=1G php occ face:setup -m 3

where to keep those settings? run in terminal or put it in docker-compose file?

thanks