I
Immich•2y ago
rardxyz

Unable to run Facial Recognition

I have tried running the Recognize Face job, but immich_microservices container shows this error log. All other containers are running with no error.
[Nest] 1 - 05/20/2023, 11:34:53 AM ERROR [FacialRecognitionService] Unable run facial recognition pipeline: fffb57fd-1a96-4096-9613-13b54f755e5f

Error: connect EADDRNOTAVAIL ::1:80 - Local (:::0)

at internalConnect (node:net:1066:16)

at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18)

at node:net:1250:9

at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
[Nest] 1 - 05/20/2023, 11:34:53 AM ERROR [FacialRecognitionService] Unable run facial recognition pipeline: fffb57fd-1a96-4096-9613-13b54f755e5f

Error: connect EADDRNOTAVAIL ::1:80 - Local (:::0)

at internalConnect (node:net:1066:16)

at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18)

at node:net:1250:9

at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
9 Replies
bo0tzz
bo0tzz•2y ago
Is machine_learning also running? Can you post its logs, and your docker-compose.yml and .env?
rardxyz
rardxyzOP•2y ago
Machine Learning logs
INFO: Started server process [1]

INFO: Waiting for application startup.

Could not find image processor class in the image processor config or the model config. Loading based on pattern matching with the model's feature extractor configuration.

The `max_size` parameter is deprecated and will be removed in v4.26. Please specify in `size['longest_edge'] instead`.

Could not find image processor class in the image processor config or the model config. Loading based on pattern matching with the model's feature extractor configuration.

/opt/venv/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py:54: UserWarning: Specified provider 'CUDAExecutionProvider' is not in available provider names.Available providers: 'CPUExecutionProvider'

warnings.warn(

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}

model ignore: /cache/models/buffalo_l/1k3d68.onnx landmark_3d_68

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}

model ignore: /cache/models/buffalo_l/2d106det.onnx landmark_2d_106

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}

find model: /cache/models/buffalo_l/det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}

model ignore: /cache/models/buffalo_l/genderage.onnx genderage

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}

find model: /cache/models/buffalo_l/w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5

set det-size: (640, 640)

INFO: Application startup complete.

INFO: Uvicorn running on http://0.0.0.0:3003 (Press CTRL+C to quit)
INFO: Started server process [1]

INFO: Waiting for application startup.

Could not find image processor class in the image processor config or the model config. Loading based on pattern matching with the model's feature extractor configuration.

The `max_size` parameter is deprecated and will be removed in v4.26. Please specify in `size['longest_edge'] instead`.

Could not find image processor class in the image processor config or the model config. Loading based on pattern matching with the model's feature extractor configuration.

/opt/venv/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py:54: UserWarning: Specified provider 'CUDAExecutionProvider' is not in available provider names.Available providers: 'CPUExecutionProvider'

warnings.warn(

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}

model ignore: /cache/models/buffalo_l/1k3d68.onnx landmark_3d_68

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}

model ignore: /cache/models/buffalo_l/2d106det.onnx landmark_2d_106

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}

find model: /cache/models/buffalo_l/det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}

model ignore: /cache/models/buffalo_l/genderage.onnx genderage

Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}

find model: /cache/models/buffalo_l/w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5

set det-size: (640, 640)

INFO: Application startup complete.

INFO: Uvicorn running on http://0.0.0.0:3003 (Press CTRL+C to quit)
rardxyz
rardxyzOP•2y ago
docker compose
rardxyz
rardxyzOP•2y ago
.env
DB_HOSTNAME=immich_postgres
DB_USERNAME=
DB_PASSWORD=
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis
UPLOAD_LOCATION=/mnt/sda/srv/immich/upload
TYPESENSE_API_KEY=
IMMICH_WEB_URL=http://immich-web:3000
IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
THUMB_LOCATION=/srv/immich/upload/thumbs
IMMICH_MACHINE_LEARNING_URL=true
DB_HOSTNAME=immich_postgres
DB_USERNAME=
DB_PASSWORD=
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis
UPLOAD_LOCATION=/mnt/sda/srv/immich/upload
TYPESENSE_API_KEY=
IMMICH_WEB_URL=http://immich-web:3000
IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
THUMB_LOCATION=/srv/immich/upload/thumbs
IMMICH_MACHINE_LEARNING_URL=true
bo0tzz
bo0tzz•2y ago
IMMICH_MACHINE_LEARNING_URL=true
This is the problem, can you remove that and restart the stack?
rardxyz
rardxyzOP•2y ago
thankss, now machine learning shows this error
bo0tzz
bo0tzz•2y ago
Is it showing this for every request or just one? @jrasm91 fyi. Weird error 🤔
rardxyz
rardxyzOP•2y ago
its for every request this is now fixed, just need to add the thumb location to machine learning container thanks for the help 🙂
bo0tzz
bo0tzz•2y ago
Ah you have it split out I should've caught that, sorry Glad it works now!

Did you find this page helpful?