RaspPI5 Facial Rec not working?

Im new to this i just started this program today and i have hardware acc enabled but there no faces coming up anywhere in the app and i dont understand it.. Please @ me if your able to but ill check this frequently
135 Replies
Immich
Immich5d ago
:wave: Hey @Defanoux, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :blue_square: reviewed the FAQs for known issues. 4. :blue_square: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
Tempest
Tempest5d ago
Check the job tab in server administration. I'm assuming you're still running facial jobs
Defanoux
DefanouxOP5d ago
i ran it, it ended/stopped i dont know how to tell i ran both at first it took awhile because of my mass photos but now its done
Tempest
Tempest5d ago
Then you'll need to provide what the bot asked for
Defanoux
DefanouxOP5d ago
i hit the 1-7 reactions to check each box right
Tempest
Tempest5d ago
Correct
Defanoux
DefanouxOP5d ago
how do i provide the docker compose logs because theres a lot theres a hell lot of this "creaing new person for face"
Tempest
Tempest5d ago
Have you tried looking in the web browser or just in app so far (to find faces)? Generally copy&paste
Defanoux
DefanouxOP5d ago
but theres like a lot
Defanoux
DefanouxOP5d ago
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
674c3c154f76 ghcr.io/immich-app/immich-server:release "tini -- /bin/bash s…" 2 hours ago Up 2 hours (healthy) 0.0.0.0:2283->2283/tcp, :::2283->2283/tcp immich_server
22a1ced00408 ghcr.io/immich-app/immich-machine-learning:release-armnn "tini -- python -m i…" 2 hours ago Up 2 hours (healthy) immich_machine_learning
92bc4c1edf60 tensorchord/pgvecto-rs:pg14-v0.2.0 "docker-entrypoint.s…" 2 hours ago Up 2 hours (healthy) 5432/tcp immich_postgres
acfef34669bc valkey/valkey:8-bookworm "docker-entrypoint.s…" 2 hours ago Up 2 hours (healthy) 6379/tcp immich_redis
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
674c3c154f76 ghcr.io/immich-app/immich-server:release "tini -- /bin/bash s…" 2 hours ago Up 2 hours (healthy) 0.0.0.0:2283->2283/tcp, :::2283->2283/tcp immich_server
22a1ced00408 ghcr.io/immich-app/immich-machine-learning:release-armnn "tini -- python -m i…" 2 hours ago Up 2 hours (healthy) immich_machine_learning
92bc4c1edf60 tensorchord/pgvecto-rs:pg14-v0.2.0 "docker-entrypoint.s…" 2 hours ago Up 2 hours (healthy) 5432/tcp immich_postgres
acfef34669bc valkey/valkey:8-bookworm "docker-entrypoint.s…" 2 hours ago Up 2 hours (healthy) 6379/tcp immich_redis
heres my docker compose >
Defanoux
DefanouxOP5d ago
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=./library

# The location where your database files are stored. Network shares are not supported for the database
DB_DATA_LOCATION=./postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=America/New_York

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=postgres

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=./library

# The location where your database files are stored. Network shares are not supported for the database
DB_DATA_LOCATION=./postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=America/New_York

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=postgres

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
Tempest
Tempest5d ago
All looks good so far
Defanoux
DefanouxOP5d ago
i guess what else is that im using a rasp pi 5 on desktop OS (not only terminal) and i have a android s24+ and a windows 11 pc with a i5 11600kf and 7800xt everything is LAN pi is lan and i use ssh to connect and do all this stuff i dont like the streaming version i also run pihole for my whole wifi pivpn for wifi and nextcloud for a google drive typa service
Tempest
Tempest5d ago
^
Defanoux
DefanouxOP5d ago
oh sorry i thought i responded to that i tried both the app and the web for faces i dont know where to look exactly
Tempest
Tempest5d ago
Under "explore" Magnifying glass icon
Defanoux
DefanouxOP5d ago
all it shows is places and then 1 option which is correct location lol but still no faces Lemme censor that rq
Tempest
Tempest5d ago
Can you run "missing" on facial recognition? It should go super fast as all should've been done already (jobs tab) Could do the same for face detection Did you change any settings under machine learning -> facial recognition?
Defanoux
DefanouxOP5d ago
i dont believe so ill make a obs video rq just to make it work or show all the proof im doing what your telling me lol
Tempest
Tempest5d ago
Have you tried an incognito web browser tab?
Defanoux
DefanouxOP5d ago
Defanoux
DefanouxOP5d ago
not yet shows nothing different from the normal tab
Tempest
Tempest5d ago
Odd. Are faces detected in your images? If you open an image, does it have people assigned?
Defanoux
DefanouxOP5d ago
people assigned where would i find this in mobile or desktop
Tempest
Tempest5d ago
If you click on the image, then the i with a circle around it
Defanoux
DefanouxOP5d ago
No description
Defanoux
DefanouxOP5d ago
shows nothing more on pc you saw the logs though right its doing something?? creating new person for face...
Tempest
Tempest5d ago
Can you run docker logs immich_server -f And then re-run the jobs? Are there any errors?
Defanoux
DefanouxOP5d ago
re-run as in
Tempest
Tempest5d ago
It needs minimum 3 of the same face to make a person based on your settings "missing"
Defanoux
DefanouxOP5d ago
yeah i have like 20gb of pictures on here pretty sure theres enough faces for it to rec wrong vid
Defanoux
DefanouxOP5d ago
Defanoux
DefanouxOP5d ago
nothing happened in the logs
Defanoux
DefanouxOP5d ago
No description
Defanoux
DefanouxOP5d ago
something wierd happening with the "transcode videos" app wait a second wouldnt i do docker logs immich_machine_learning
Tempest
Tempest5d ago
This needs attention. It should in theory be falling back to cpu but it's having some issues
immich-machine-learning:
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}-armnn
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
volumes:
- model-cache:/cache
env_file:
- .env
restart: always
healthcheck:
disable: false
immich-machine-learning:
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}-armnn
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
volumes:
- model-cache:/cache
env_file:
- .env
restart: always
healthcheck:
disable: false
Defanoux
DefanouxOP5d ago
what exactly do i need to do im confused what your telling me
Tempest
Tempest5d ago
You only partly enabled hardware acceleration. You need to uncomment the lines below and download the hwaccel.ml.yml file
Defanoux
DefanouxOP5d ago
oh.. wait which lines do i un comment
Defanoux
DefanouxOP5d ago
No description
Defanoux
DefanouxOP5d ago
oh i see
Defanoux
DefanouxOP5d ago
No description
Defanoux
DefanouxOP5d ago
so like that do i set the service: cpu to armnn?
Defanoux
DefanouxOP5d ago
No description
Defanoux
DefanouxOP5d ago
what about the one near the top the one under immich server how do i get something again
Tempest
Tempest5d ago
Correct
Defanoux
DefanouxOP5d ago
nvm i got the thing the file
Defanoux
DefanouxOP5d ago
No description
Defanoux
DefanouxOP5d ago
heres the machine learning now
Tempest
Tempest5d ago
Looks right
Defanoux
DefanouxOP5d ago
No description
Defanoux
DefanouxOP5d ago
should i do anything with the blue stuff there up near the immich server the # extends for accelerated transcoding
Tempest
Tempest5d ago
If you want, you can
Defanoux
DefanouxOP5d ago
what service does it use and do i need a hwaccel transcoding ml (nvm got it) what does the service use for rasp pi gpus or cpus i guess
Tempest
Tempest5d ago
No idea, sorry
Defanoux
DefanouxOP5d ago
ill ask gemini and then i should just redeply the docker compose?
Tempest
Tempest5d ago
Yep. docker compose down And docker compose up Should do it
Defanoux
DefanouxOP5d ago
for the extends in the immich machine learning should it be in the same space as image
Defanoux
DefanouxOP5d ago
No description
Defanoux
DefanouxOP5d ago
like image extends or image extends
Tempest
Tempest5d ago
However it was setup I believe, sorry on mobile atm
Defanoux
DefanouxOP5d ago
idk how it was setup its just like i removed the # but that only bumped the whole thing back 1 # space worth yk what i mean
Tempest
Tempest5d ago
I'd try a small indent (2 spaces)
Defanoux
DefanouxOP5d ago
okay i figured it out it gave me yaml error but i fixed it
defanoux@raspberrypi:/mnt/nextcloud_data/immich-app $ docker compose up -d
[+] Running 4/5
✔ Network immich_default Created 0.2s
⠼ Container immich_machine_learning Starting 2.7s
✔ Container immich_redis Started 2.6s
✔ Container immich_postgres Started 2.7s
✔ Container immich_server Created 0.2s
Error response from daemon: error gathering device information while adding custom device "/dev/mali0": no such file or directory
defanoux@raspberrypi:/mnt/nextcloud_data/immich-app $
defanoux@raspberrypi:/mnt/nextcloud_data/immich-app $ docker compose up -d
[+] Running 4/5
✔ Network immich_default Created 0.2s
⠼ Container immich_machine_learning Starting 2.7s
✔ Container immich_redis Started 2.6s
✔ Container immich_postgres Started 2.7s
✔ Container immich_server Created 0.2s
Error response from daemon: error gathering device information while adding custom device "/dev/mali0": no such file or directory
defanoux@raspberrypi:/mnt/nextcloud_data/immich-app $
Tempest
Tempest5d ago
Are you sure you used the correct ml?
Defanoux
DefanouxOP5d ago
ml? i dont know what that means
Tempest
Tempest5d ago
Machine learning tag
Defanoux
DefanouxOP5d ago
im pretty sure for which one the transcoding or the ml
Tempest
Tempest5d ago
Ml is failing, not server
Defanoux
DefanouxOP5d ago
arent my options armnn and nothing else because cuda is nvidia i know that
Tempest
Tempest5d ago
Sorry I'm not sure
Defanoux
DefanouxOP5d ago
seems removing the "extends" section entirely worked
Tempest
Tempest5d ago
It likely won't work in the ml container, run docker logs immich_server -f to confirm
Defanoux
DefanouxOP5d ago
should i run the facial rec thing again to see if anything changes same as last time? to be clear im pressing missing right
Tempest
Tempest5d ago
Sure
Defanoux
DefanouxOP5d ago
wouldnt the logs for the machine learning run on the machine learning app for the docker compose??
Tempest
Tempest5d ago
Yes sorry I mistyped
Defanoux
DefanouxOP5d ago
defanoux@raspberrypi:/mnt/nextcloud_data/immich-app $ docker logs immich_machine_learning -f
[04/25/25 21:22:06] INFO Starting gunicorn 23.0.0
[04/25/25 21:22:06] INFO Listening at: http://[::]:3003 (8)
[04/25/25 21:22:06] INFO Using worker: immich_ml.config.CustomUvicornWorker
[04/25/25 21:22:06] INFO Booting worker with pid: 9
[04/25/25 21:22:08] INFO Started server process [9]
[04/25/25 21:22:08] INFO Waiting for application startup.
[04/25/25 21:22:08] INFO Created in-memory cache with unloading after 300s
of inactivity.
[04/25/25 21:22:08] INFO Initialized request thread pool with 4 threads.
[04/25/25 21:22:08] INFO Application startup complete.
defanoux@raspberrypi:/mnt/nextcloud_data/immich-app $ docker logs immich_machine_learning -f
[04/25/25 21:22:06] INFO Starting gunicorn 23.0.0
[04/25/25 21:22:06] INFO Listening at: http://[::]:3003 (8)
[04/25/25 21:22:06] INFO Using worker: immich_ml.config.CustomUvicornWorker
[04/25/25 21:22:06] INFO Booting worker with pid: 9
[04/25/25 21:22:08] INFO Started server process [9]
[04/25/25 21:22:08] INFO Waiting for application startup.
[04/25/25 21:22:08] INFO Created in-memory cache with unloading after 300s
of inactivity.
[04/25/25 21:22:08] INFO Initialized request thread pool with 4 threads.
[04/25/25 21:22:08] INFO Application startup complete.
this is everything in there literally if i press missing nothing happens
Tempest
Tempest5d ago
It's not getting the request. Try logs for immich_server
Defanoux
DefanouxOP5d ago
more of the same green text now the hardware transcoding isnt working
Defanoux
DefanouxOP5d ago
No description
Defanoux
DefanouxOP5d ago
giving me a bunch of red text when i hit the transcode videos missing stuff
Tempest
Tempest5d ago
If you set it all to cpu I'm sure it'd work, not the answer you were looking for, but I'm not exactly sure what settings you require for a pi, might need to do some googling
Defanoux
DefanouxOP5d ago
i set it all to cpu but i dont know if it changed anything i still dont see a change
Tempest
Tempest5d ago
Can you share your new compose?
Defanoux
DefanouxOP5d ago
No description
Defanoux
DefanouxOP5d ago
i still get all this when trying to do the hardware transcoding i havent seen anything different when trying to run the machine learning
Tempest
Tempest5d ago
You no longer need extends. What's shm_size?
Defanoux
DefanouxOP5d ago
i added that because it was giving me a missing memory i dont?
Tempest
Tempest5d ago
Not on cpu. Cpu is default docker compose
Defanoux
DefanouxOP5d ago
so i remove the shm siz
Tempest
Tempest5d ago
I'd try to figure out why, I don't think it's necessary
Defanoux
DefanouxOP5d ago
No description
Defanoux
DefanouxOP5d ago
i changed it to this does this goona do anything and what about the image where the image tag says -armnn
Tempest
Tempest5d ago
Remove the armnn from ML image
Defanoux
DefanouxOP5d ago
okay do i replace anything with it
Tempest
Tempest5d ago
Nope just get rid of it. So it ends with the curly bracket
Defanoux
DefanouxOP5d ago
gotcha i restarted the compose
Defanoux
DefanouxOP5d ago
No description
Defanoux
DefanouxOP5d ago
this is what it gives me when i try to transcode videos
Defanoux
DefanouxOP5d ago
No description
Defanoux
DefanouxOP5d ago
and this does nothing either
Tempest
Tempest5d ago
Can we docker compose down
Defanoux
DefanouxOP5d ago
done
Tempest
Tempest5d ago
Docker ps to ensure they're not running, prune, and then docker compose up
Defanoux
DefanouxOP5d ago
ps check, how do i prunt prune
Tempest
Tempest5d ago
Docker container prune Docker image prune It'll remove all stopped
Defanoux
DefanouxOP5d ago
exactly how thats type
Tempest
Tempest5d ago
With a lower case d I believe
Defanoux
DefanouxOP5d ago
yeah i know that lol okay done i gained a gb back lmao
Tempest
Tempest5d ago
Hah nice
Defanoux
DefanouxOP5d ago
doing compose up nwo is it goona reset anything
Tempest
Tempest5d ago
Shouldn't
Defanoux
DefanouxOP5d ago
phew
Tempest
Tempest5d ago
That's what backups are for 😂
Defanoux
DefanouxOP5d ago
ttrue true
Tempest
Tempest5d ago
Any luck?
Defanoux
DefanouxOP5d ago
mb was taking a break running face detection now with logs open
Defanoux
DefanouxOP5d ago
No description
Defanoux
DefanouxOP5d ago
same stuff on transcode videos and nothing new in the logs for immich_machine learning nothing new in the other two docker images either
Tempest
Tempest5d ago
Sorry I think I'm going to call it a night. You could try increasing your logging level but I don't see what that would benefit you at this point
Defanoux
DefanouxOP5d ago
loggin level? oh from what to what
Tempest
Tempest5d ago
There's a setting in administration
Defanoux
DefanouxOP5d ago
i see what tier
Tempest
Tempest5d ago
You can make it more verbose if you want
Defanoux
DefanouxOP5d ago
defanoux@raspberrypi:/mnt/nextcloud_data/immich-app $ docker logs immich_machine_learning -f
[04/25/25 22:03:27] INFO Starting gunicorn 23.0.0
[04/25/25 22:03:27] INFO Listening at: http://[::]:3003 (9)
[04/25/25 22:03:27] INFO Using worker: immich_ml.config.CustomUvicornWorker
[04/25/25 22:03:27] INFO Booting worker with pid: 10
[04/25/25 22:03:30] INFO Started server process [10]
[04/25/25 22:03:30] INFO Waiting for application startup.
[04/25/25 22:03:30] INFO Created in-memory cache with unloading after 300s
of inactivity.
[04/25/25 22:03:30] INFO Initialized request thread pool with 4 threads.
[04/25/25 22:03:30] INFO Application startup complete.
[04/25/25 23:22:38] INFO Loading visual model 'ViT-B-32__openai' to memory
[04/25/25 23:22:38] INFO Setting execution providers to
['CPUExecutionProvider'], in descending order of
preference
[04/25/25 23:27:29] INFO Loading detection model 'buffalo_l' to memory
[04/25/25 23:27:29] INFO Setting execution providers to
['CPUExecutionProvider'], in descending order of
preference
[04/25/25 23:27:30] INFO Loading recognition model 'buffalo_l' to memory
[04/25/25 23:27:30] INFO Setting execution providers to
['CPUExecutionProvider'], in descending order of
preference
defanoux@raspberrypi:/mnt/nextcloud_data/immich-app $ docker logs immich_machine_learning -f
[04/25/25 22:03:27] INFO Starting gunicorn 23.0.0
[04/25/25 22:03:27] INFO Listening at: http://[::]:3003 (9)
[04/25/25 22:03:27] INFO Using worker: immich_ml.config.CustomUvicornWorker
[04/25/25 22:03:27] INFO Booting worker with pid: 10
[04/25/25 22:03:30] INFO Started server process [10]
[04/25/25 22:03:30] INFO Waiting for application startup.
[04/25/25 22:03:30] INFO Created in-memory cache with unloading after 300s
of inactivity.
[04/25/25 22:03:30] INFO Initialized request thread pool with 4 threads.
[04/25/25 22:03:30] INFO Application startup complete.
[04/25/25 23:22:38] INFO Loading visual model 'ViT-B-32__openai' to memory
[04/25/25 23:22:38] INFO Setting execution providers to
['CPUExecutionProvider'], in descending order of
preference
[04/25/25 23:27:29] INFO Loading detection model 'buffalo_l' to memory
[04/25/25 23:27:29] INFO Setting execution providers to
['CPUExecutionProvider'], in descending order of
preference
[04/25/25 23:27:30] INFO Loading recognition model 'buffalo_l' to memory
[04/25/25 23:27:30] INFO Setting execution providers to
['CPUExecutionProvider'], in descending order of
preference
whenever hitting the reset button it would do this holy cow i figured it out It works now Or i guess it always worked
Mraedis
Mraedis5d ago
So what was it?
Defanoux
DefanouxOP4d ago
Switched the account to another so technically the image rec was working but how do we know if the machine hardware accelleration was working
Mraedis
Mraedis4d ago
You check the processing speed, some gpu monitoring tool, or the logs will show that HWA was tried and whether it failed
Defanoux
DefanouxOP3d ago
have you ran it on a pi 5? i wanna know if it works at all
Mraedis
Mraedis3d ago
I haven't myself, no

Did you find this page helpful?