I
Immich•2y ago
ik0n

Facial Recognition not working

I'm having issues getting facial recognition to work. I'm running 1.56.2 but I don't have a Faces section under Explore. I manually ran the Recognize Faces job and it seems to process all of my photos, but nothing changes in the UI. I do see the following errors: immich_machine_learning: INFO: xxx.xxx.xxx.xxx:40294 - "POST /facial-recognition/detect-faces HTTP/1.1" 404 Not Found immich_microservices: [Nest] 1 - 05/22/2023, 7:54:58 PM ERROR [FacialRecognitionService] Unable run facial recognition pipeline: fff48122-e5cf-47c5-8ea0-1805a540fd4f Error: Request failed with status code 404 at createError (/usr/src/app/node_modules/axios/lib/core/createError.js:16:15) at settle (/usr/src/app/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/usr/src/app/node_modules/axios/lib/adapters/http.js:322:11) at IncomingMessage.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1359:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
17 Replies
ik0n
ik0nOP•2y ago
Here is my docker-compose.yml
ik0n
ik0nOP•2y ago
Here is my .env: DB_HOSTNAME=immich_postgres DB_USERNAME=postgres DB_PASSWORD=[xxxx] DB_DATABASE_NAME=immich REDIS_HOSTNAME=immich_redis UPLOAD_LOCATION=/Volumes/Media/Photos/Immich LOG_LEVEL=simple TYPESENSE_API_KEY=[xxxx] PUBLIC_LOGIN_PAGE_MESSAGE="photos and videos" IMMICH_WEB_URL=http://immich-web:3000 IMMICH_SERVER_URL=http://immich-server:3001 IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
Alex Tran
Alex Tran•2y ago
Hmm looks very standard to me Can you use the command line to docker-compose down and docker-compose up and monitor the log? Which version of the server are you running on? Hmm
ik0n
ik0nOP•2y ago
It's Docker Desktop on a Mac. Version details below. I have Immich installed through Portainer if that makes any difference.
No description
Alex Tran
Alex Tran•2y ago
Can you attach to the microservices container and run apk add curl then curl http://immich_machine_learning:3003/ and see what is the response?
ik0n
ik0nOP•2y ago
@Alex here is the response:
No description
Alex Tran
Alex Tran•2y ago
So it can communicate with the machine learning container I've never had any instance running on docker for mac so I don't know if there is any catch here šŸ¤”
ik0n
ik0nOP•2y ago
Does this error give any clues? immich_machine_learning: INFO: xxx.xxx.xxx.xxx:40294 - "POST /facial-recognition/detect-faces HTTP/1.1" 404 Not Found
Alex Tran
Alex Tran•2y ago
Not really šŸ¤”
ik0n
ik0nOP•2y ago
Is there any critical data stored in the immich_model-cache volume or can I delete that and redeploy the immich_mchine_learning container? I get a duplicate mount point error when trying to re-deploy immich_mchine_learning.
Alex Tran
Alex Tran•2y ago
No they are just machine learning model What version are you on?
ik0n
ik0nOP•2y ago
1.56.2 I figured I would try re-deploying the two containers throwing errors at the moment just to make sure they are using the latest images.
Alex Tran
Alex Tran•2y ago
Yeah can you delete the container then redeploy wait a few mins then run the job
ik0n
ik0nOP•2y ago
Surprisingly, that worked! I deleted the immich_model-cache volume and then redeployed immich_mchine_learning and immich_microservices, ran the job again and now I have Faces under Explore!
Alex Tran
Alex Tran•2y ago
I assume the model didn't download correctly
ik0n
ik0nOP•2y ago
For next time, could that have been something I did incorrectly during a recent update? Thanks for your help @Alex!
Alex Tran
Alex Tran•2y ago
We try to download the model upon the container start up I am not sure what happened ion your case

Did you find this page helpful?