Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easier installation? #525

Open
jakobroehrl opened this issue Oct 28, 2021 · 6 comments
Open

Easier installation? #525

jakobroehrl opened this issue Oct 28, 2021 · 6 comments
Labels

Comments

@jakobroehrl
Copy link

This is such a great app and extension to nextcloud photos.
But it's hard to get it running.
Is there a way (docker, ...?) to get it up and running for an average user?

@matiasdelellis
Copy link
Owner

Hi @jakobroehrl
Sorry the delay..

There is no easy way to install it, because it is inherently complex. However the only difficult thing can be install PDlib and we try to simplify it a lot (And until now, there is no better alternative for that).

About docker you have:

On the other hand, nextcloud's "official" virtual machine, also has easy support for the application.

If you are a beginner, it is recommended to install the virtual version. Not only for that application, It is intended for full automation, and regular updates without worrying about a lot of other issues.

... and I guess I can officially recommend it. Thanks for reminding me that I have to. 😬

@jakobroehrl
Copy link
Author

There is no easy way to install it, because it is inherently complex. However the only difficult thing can be install PDlib and we try to simplify it a lot (And until now, there is no better alternative for that).

This sounds great, thanks a lot!
Is there are issue/PR I can follow?

@farhills
Copy link

farhills commented Nov 5, 2021

If you use the linuxserver nextcloud container, install is actually quite easy. I added the following script to the custom-cont-init.d folder. (Reference: https://www.linuxserver.io/blog/2019-09-14-customizing-our-containers)

This script simply runs the commands listed in the face recognition install instruction and initializes the models.

echo "*** Executing Custom Script facerecognition.sh ***"
echo "*** installing php7-pdlib (facerecognition dependency) ***"
apk update
apk add -X http://dl-cdn.alpinelinux.org/alpine/edge/testing php7-pdlib
echo "*** installing bzip (facerecognition dependency) ***"
apk add bzip2-dev
echo "*** initialize facerecognition, model 4 (requires models 1 and 3) ***"
occ face:setup -m 1
occ face:setup -m 3
occ face:setup -m 4
echo "*** facerecognition script complete ***"

edit: I should add I shamelessly copied this and modified it to suit my install from a post in another issue here and modified it to suit my install.

@code-sport
Copy link

code-sport commented Nov 24, 2021

Is there any plan for an manual how to add this to a docker based installation?

Nextcloud Container <-> facerecognition Container

@dayue1984
Copy link

can we setup up the models and memory things inside the nc app?

@KoMa1012
Copy link

KoMa1012 commented Apr 5, 2022

If you use the linuxserver nextcloud container, install is actually quite easy. I added the following script to the custom-cont-init.d folder. (Reference: https://www.linuxserver.io/blog/2019-09-14-customizing-our-containers)

This script simply runs the commands listed in the face recognition install instruction and initializes the models.

echo "*** Executing Custom Script facerecognition.sh ***"
echo "*** installing php7-pdlib (facerecognition dependency) ***"
apk update
apk add -X http://dl-cdn.alpinelinux.org/alpine/edge/testing php7-pdlib
echo "*** installing bzip (facerecognition dependency) ***"
apk add bzip2-dev
echo "*** initialize facerecognition, model 4 (requires models 1 and 3) ***"
occ face:setup -m 1
occ face:setup -m 3
occ face:setup -m 4
echo "*** facerecognition script complete ***"

edit: I should add I shamelessly copied this and modified it to suit my install from a post in another issue here and modified it to suit my install.

Do you mind letting us know where you shamelesly copied? This isn't working since an update a montha ago or so, or if you have a solution this would be awesome.

[05-Apr-2022 09:26:19] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'pdlib.so' (tried: /usr/lib/php8/modules/pdlib.so (Error relocating /usr/lib/php8/modules/pdlib.so: _ZSt28__throw_bad_array_new_lengthv: symbol not found), /usr/lib/php8/modules/pdlib.so.so (Error loading shared library /usr/lib/php8/modules/pdlib.so.so: No such file or directory)) in Unknown on line 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants