Face recognition only manual? "Only Missing" not working properly? #1169

Closed
opened 2026-02-05 00:43:29 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @titro on GitHub (Jul 31, 2023).

The bug

I'm not quite sure whether the face recognition should work automatically for via App uploaded pictures (but i guess so?) That is not the case in my installation.

If i'm i start the job manually with "Missing" immich is analyzing over 3000 images (my gallery with currently has 5150 images) not only the few images with the missing face recognition. Even after starting it again.. It does it again for 3000 images.

The OS that Immich Server is running on

Unraid with Docker

Version of Immich Server

v1.71.0

Version of Immich Mobile App

v1.71.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

version: "3.8"

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION}
    command: [ "start.sh", "immich" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /mnt/user/photos:/mnt/user/photos
    env_file:
      - stack.env
    depends_on:
      - redis
      - database
      - typesense
    restart: always

  immich-microservices:
    container_name: immich_microservices
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION}
    command: [ "start.sh", "microservices" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /mnt/user/photos:/mnt/user/photos
    env_file:
      - stack.env
    depends_on:
      - redis
      - database
      - typesense
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION}
    volumes:
      - /mnt/user/immich/model-cache:/cache
    env_file:
      - stack.env
    restart: always

  immich-web:
    container_name: immich_web
    image: ghcr.io/immich-app/immich-web:${IMMICH_VERSION}
    env_file:
      - stack.env
    restart: always

  typesense:
    container_name: immich_typesense
    image: typesense/typesense:0.24.1@sha256:9bcff2b829f12074426ca044b56160ca9d777a0c488303469143dd9f8259d4dd
    environment:
      - TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
      - TYPESENSE_DATA_DIR=/data
    logging:
      driver: none
    volumes:
      - /mnt/user/immich/typesense:/data
    restart: always

  redis:
    container_name: immich_redis
    image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3
    restart: always

  database:
    container_name: immich_postgres
    image: postgres:14-alpine@sha256:28407a9961e76f2d285dc6991e8e48893503cc3836a4755bbc2d40bcc272a441
    env_file:
      - stack.env
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      PG_DATA: /var/lib/postgresql/data
    volumes:
      - /mnt/user/immich/postgres:/var/lib/postgresql/data
    restart: always

  immich-proxy:
    container_name: immich_proxy
    image: ghcr.io/immich-app/immich-proxy:${IMMICH_VERSION}
    environment:
      # Make sure these values get passed through from the env file
      - IMMICH_SERVER_URL
      - IMMICH_WEB_URL
    ports:
      - 2283:8080
    depends_on:
      - immich-server
      - immich-web
    restart: always

Your .env content

n/a

Reproduction steps

1. check that some of the latest uploaded images have no face recognition
2. start job with "missing"
3. wondering why immich is doing this for thousand of images...

Additional information

No response

Originally created by @titro on GitHub (Jul 31, 2023). ### The bug I'm not quite sure whether the face recognition should work automatically for via App uploaded pictures (but i guess so?) That is not the case in my installation. If i'm i start the job manually with "Missing" immich is analyzing over 3000 images (my gallery with currently has 5150 images) not only the few images with the missing face recognition. Even after starting it again.. It does it again for 3000 images. ### The OS that Immich Server is running on Unraid with Docker ### Version of Immich Server v1.71.0 ### Version of Immich Mobile App v1.71.0 ### Platform with the issue - [X] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML version: "3.8" services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION} command: [ "start.sh", "immich" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /mnt/user/photos:/mnt/user/photos env_file: - stack.env depends_on: - redis - database - typesense restart: always immich-microservices: container_name: immich_microservices image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION} command: [ "start.sh", "microservices" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /mnt/user/photos:/mnt/user/photos env_file: - stack.env depends_on: - redis - database - typesense restart: always immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION} volumes: - /mnt/user/immich/model-cache:/cache env_file: - stack.env restart: always immich-web: container_name: immich_web image: ghcr.io/immich-app/immich-web:${IMMICH_VERSION} env_file: - stack.env restart: always typesense: container_name: immich_typesense image: typesense/typesense:0.24.1@sha256:9bcff2b829f12074426ca044b56160ca9d777a0c488303469143dd9f8259d4dd environment: - TYPESENSE_API_KEY=${TYPESENSE_API_KEY} - TYPESENSE_DATA_DIR=/data logging: driver: none volumes: - /mnt/user/immich/typesense:/data restart: always redis: container_name: immich_redis image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3 restart: always database: container_name: immich_postgres image: postgres:14-alpine@sha256:28407a9961e76f2d285dc6991e8e48893503cc3836a4755bbc2d40bcc272a441 env_file: - stack.env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} PG_DATA: /var/lib/postgresql/data volumes: - /mnt/user/immich/postgres:/var/lib/postgresql/data restart: always immich-proxy: container_name: immich_proxy image: ghcr.io/immich-app/immich-proxy:${IMMICH_VERSION} environment: # Make sure these values get passed through from the env file - IMMICH_SERVER_URL - IMMICH_WEB_URL ports: - 2283:8080 depends_on: - immich-server - immich-web restart: always ``` ### Your .env content ```Shell n/a ``` ### Reproduction steps ```bash 1. check that some of the latest uploaded images have no face recognition 2. start job with "missing" 3. wondering why immich is doing this for thousand of images... ``` ### Additional information _No response_
Author
Owner

@titro commented on GitHub (Jul 31, 2023):

ok seems there are two problems. face recognition is not working for newer images and "missing" job is running for more than only the latest images. I'll try do downgrade to check if face recognition functionality is working with v1.69.0 ( was running on 1.70 until today).

@titro commented on GitHub (Jul 31, 2023): ok seems there are two problems. face recognition is not working for newer images and "missing" job is running for more than only the latest images. I'll try do downgrade to check if face recognition functionality is working with v1.69.0 ( was running on 1.70 until today).
Author
Owner

@titro commented on GitHub (Aug 1, 2023):

With help from Alex:

image

I did a new reindex and it's working now.

And the "only missing" job for face recognition is reindexing all images without recognized faces. Not the optimal solution but that's how it's currently implemented.

@titro commented on GitHub (Aug 1, 2023): With help from Alex: ![image](https://github.com/immich-app/immich/assets/4005090/63fbeb44-53ea-4a72-a262-75cdeefbe021) I did a new reindex and it's working now. And the "only missing" job for face recognition is reindexing all images without recognized faces. Not the optimal solution but that's how it's currently implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1169