nextcloud icon indicating copy to clipboard operation
nextcloud copied to clipboard

Doesn't work

Open marlemion opened this issue 3 years ago • 3 comments

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 avatar Jul 29 '22 14:07 marlemion

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 avatar Jul 29 '22 14:07 marlemion

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

marlemion avatar Jul 29 '22 15:07 marlemion

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

lorvent avatar Oct 16 '22 15:10 lorvent