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

Possible used CompareFace docker on Raspberry PI ? #610

Closed
antonbek89 opened this issue Oct 1, 2021 · 14 comments · Fixed by #1018
Closed

Possible used CompareFace docker on Raspberry PI ? #610

antonbek89 opened this issue Oct 1, 2021 · 14 comments · Fixed by #1018
Labels

Comments

@antonbek89
Copy link

The linux version
Linux raspberrypi 5.10.60-v8+ #1449 SMP PREEMPT Wed Aug 25 15:01:33 BST 2021 aarch64 GNU/Linux

pi@raspberrypi:~ $ sudo docker-compose up
Starting compreface-postgres-db ... done
Starting compreface-core        ... done
Starting compreface-api         ... done
Starting compreface-admin       ... done
Starting compreface-ui          ... done
Attaching to compreface-postgres-db, compreface-core, compreface-api, compreface-admin, compreface-ui
compreface-api            | standard_init_linux.go:228: exec user process caused: exec format error
compreface-core           | standard_init_linux.go:228: exec user process caused: exec format error
compreface-admin          | standard_init_linux.go:228: exec user process caused: exec format error
compreface-api exited with code 1
compreface-postgres-db    | 2021-10-01 01:09:45.036 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
compreface-postgres-db    | 2021-10-01 01:09:45.037 UTC [1] LOG:  listening on IPv6 address "::", port 5432
compreface-postgres-db    | 2021-10-01 01:09:45.103 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
compreface-postgres-db    | 2021-10-01 01:09:45.297 UTC [25] LOG:  database system was shut down at 2021-10-01 00:50:59 UTC
compreface-core exited with code 1
compreface-ui             | standard_init_linux.go:228: exec user process caused: exec format error
compreface-postgres-db    | 2021-10-01 01:09:45.600 UTC [1] LOG:  database system is ready to accept connections
compreface-admin exited with code 1
compreface-ui exited with code 1
^CGracefully stopping... (press Ctrl+C again to force)
Stopping compreface-postgres-db ...
^C^CERROR: Aborting.
@pospielov
Copy link
Collaborator

Hi, unfortunately not yet, I described all the problems here:
#519 (comment)

@Nigma1337
Copy link

Also, another problem would be that the raspberry pi's dont have AVX support, atleast not mine.

@pospielov
Copy link
Collaborator

Any ARM device supports the AVX, but it's not a problem.
If we take precompiled Tensorflow for ARM, it won't require AVX.

@Nigma1337
Copy link

Any ARM device supports the AVX, but it's not a problem. If we take precompiled Tensorflow for ARM, it won't require AVX.

well this guy asked about the raspberry pi, which has a cpu without AVX support out of the box.

@pospielov
Copy link
Collaborator

Raspberry pi has an ARM CPU, this is why I mentioned it.
As soon as we build CompreFace for ARM, it should start working on all ARM devices, including Raspberry pi

@antonbek89
Copy link
Author

@pospielov Any updates with ARM version?

@pospielov
Copy link
Collaborator

Unfortunately no, I can't find a contributor for this, and I don't have time either

@LordNex
Copy link

LordNex commented Aug 31, 2022

Unfortunately no, I can't find a contributor for this, and I don't have time either

What do you need?

I have a Jetson Nano 4gig I'd like to use this on. It was running DeepStack but even with CUDA support it does do near what the version of CompreFace I have installed in Home Assistant using just lots of CPU (40 core PowerEdge R620 running VMWare)

@pospielov
Copy link
Collaborator

The biggest problem with running CompreFace on an ARM is that it uses libraries not compiled for ARM devices.
For example, Tensorflow. When I last checked, Pillow wasn't supported as, well. But it looks like it supports now.
So we need somebody who checks all the dependencies if they are supported by ARM.
Then fix somehow all dependencies that don't support ARM.
Make a new dockerfile (or update the old one)
and finally, use Docker Buildx to set up CompreFace build for ARM devices.

This was referenced Sep 2, 2022
@LordNex
Copy link

LordNex commented Jan 22, 2023

The biggest problem with running CompreFace on an ARM is that it uses libraries not compiled for ARM devices.

For example, Tensorflow. When I last checked, Pillow wasn't supported as, well. But it looks like it supports now.

So we need somebody who checks all the dependencies if they are supported by ARM.

Then fix somehow all dependencies that don't support ARM.

Make a new dockerfile (or update the old one)

and finally, use Docker Buildx to set up CompreFace build for ARM devices.

I have all the hardware. But don't know enough programming to do all of that. Although I'm no slouch at the cli and I'm not afraid to experiment. You'd have to walk me through it step by step.

@pospielov
Copy link
Collaborator

@LordNex Could you test this build on your ARM device?
#1018

@LordNex
Copy link

LordNex commented Jan 27, 2023

@LordNex Could you test this build on your ARM device?

#1018

Yea it'll take me a bit. I've got to take the case apart to get the SD card out so I can load it back up. But yea I'll get it tested as soon as I can.

@pierluigizagaria
Copy link

pierluigizagaria commented May 16, 2023

What are the performance? Raspberry Pi 4 4gb is enough?

@rajdey1
Copy link

rajdey1 commented Sep 5, 2024

I’m currently running Compreface on a system with an AArch64 (ARM 64-bit) architecture and encountered compatibility issues with some services. Specifically, I am having trouble running the compreface-core service on this architecture.

I’ve successfully managed to run other containers on my AArch64 setup by using multi-platform support via docker buildx, but I am unsure if compreface-core is compatible or if there are any known issues or requirements for running it on ARM-based systems.

Could you please provide information on the following:

AArch64 Support: Does Compreface officially support ARM 64-bit architecture? Are there specific steps or configurations required to run compreface-core on an AArch64 system?

Docker Images: Are there pre-built Docker images for ARM 64-bit architecture for Compreface services? If not, are there recommended practices or solutions for building these images from source?

Known Issues: Are there any known issues or limitations when running Compreface services on ARM-based systems?

Documentation: Is there any additional documentation or community resources for running Compreface on non-x86 architectures?

Any guidance or assistance would be greatly appreciated as it will help in ensuring compatibility and smooth operation of Compreface on ARM-based systems.

Thank you for your time and support!

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

Successfully merging a pull request may close this issue.

6 participants