[BUG] <No machine learning happening on RPi4 4GB> #260

Closed
opened 2026-02-04 19:09:46 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @darrylgibbs on GitHub (Sep 7, 2022).

Describe the bug
I've made a fresh install of IMMICH, and backed up the images from my Android phone to the server. All of this was flawless. Now, according to the features list, at least from the Android app, I should be able to see some THINGS and PLACES that should have been discovered by the machine-learning container. It's been about 2 hours now, and there is no action from any of the containers, they are all sitting idle.

P L E A S E N O T E
I had to set the docker-compose.yml VERSION to VERSION 3.5 or the containers refused to load up.

version: "3.5"

services:
  immich-server:
    image: altran1502/immich-server:release
    entrypoint: ["/bin/sh", "./start-server.sh"]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
    env_file:
      - .env
    environment:
      - NODE_ENV=production
    depends_on:
      - redis
      - database
    restart: always

  immich-microservices:
    image: altran1502/immich-server:release
    entrypoint: ["/bin/sh", "./start-microservices.sh"]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
    env_file:
      - .env
    environment:
      - NODE_ENV=production
    depends_on:
      - redis
      - database
    restart: always

  immich-machine-learning:
    image: altran1502/immich-machine-learning:release
    entrypoint: ["/bin/sh", "./entrypoint.sh"]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
    env_file:
      - .env
    environment:
      - NODE_ENV=production
    depends_on:
      - database
    restart: always

  immich-web:
    image: altran1502/immich-web:release
    entrypoint: ["/bin/sh", "./entrypoint.sh"]
    env_file:
      - .env
    restart: always

  redis:
    container_name: immich_redis
    image: redis:6.2
    restart: always

  database:
    container_name: immich_postgres
    image: postgres:14
    env_file:
      - .env
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      PG_DATA: /var/lib/postgresql/data
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: always

  immich-proxy:
    container_name: immich_proxy
    image: altran1502/immich-proxy:release
    ports:
      - 2283:80
    logging:
      driver: none
    depends_on:
      - immich-server
    restart: always

volumes:
  pgdata:
###################################################################################
# Database
###################################################################################

DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_PASSWORD=passwordsandsuch
DB_DATABASE_NAME=immich

# Optional Database settings:
# DB_PORT=5432




###################################################################################
# Redis
###################################################################################

REDIS_HOSTNAME=immich_redis

# Optional Redis settings:
# REDIS_PORT=6379
# REDIS_DBINDEX=0
# REDIS_PASSWORD=
# REDIS_SOCKET=





###################################################################################
# Upload File Config
###################################################################################

UPLOAD_LOCATION=/mnt/shares/backup/immich




###################################################################################
# JWT SECRET
###################################################################################

JWT_SECRET=longasssecret




###################################################################################
# MAPBOX
####################################################################################

# ENABLE_MAPBOX is either true of false -> if true, you have to provide MAPBOX_KEY
ENABLE_MAPBOX=false
MAPBOX_KEY=


####################################################################################
# WEB - Optional
####################################################################################

# Custom message on the login page, should be written in HTML form.
# For example PUBLIC_LOGIN_PAGE_MESSAGE="This is a demo instance of Immich.<br><br>Email: <i>demo@demo.de</i><br>Password: <i>demo</i>"

PUBLIC_LOGIN_PAGE_MESSAGE=

Environment

  • Raspberry Pi4 4GB
  • Raspberry Pi OS Lite 64bit, on a 32GB UHS 1 SD Card
  • Docker version 20.10.5+dfsg1, build 55c4c88

Expected behavior
I expect to see suggested PLACES and THINGS in the mobile app.

System

  • Android: Android 9, Samsung S8
  • Server Version: 1.27
  • Mobile App Version: 1.26.0 build.36

Additional context
Add any other context about the problem here.

Originally created by @darrylgibbs on GitHub (Sep 7, 2022). <!-- Note: Please search to see if an issue already exists for the bug you encountered. --> **Describe the bug** I've made a fresh install of IMMICH, and backed up the images from my Android phone to the server. All of this was flawless. Now, according to the features list, at least from the Android app, I should be able to see some THINGS and PLACES that should have been discovered by the machine-learning container. It's been about 2 hours now, and there is no action from any of the containers, they are all sitting idle. **P L E A S E N O T E** I had to set the docker-compose.yml VERSION to VERSION 3.5 or the containers refused to load up. ```yaml version: "3.5" services: immich-server: image: altran1502/immich-server:release entrypoint: ["/bin/sh", "./start-server.sh"] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload env_file: - .env environment: - NODE_ENV=production depends_on: - redis - database restart: always immich-microservices: image: altran1502/immich-server:release entrypoint: ["/bin/sh", "./start-microservices.sh"] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload env_file: - .env environment: - NODE_ENV=production depends_on: - redis - database restart: always immich-machine-learning: image: altran1502/immich-machine-learning:release entrypoint: ["/bin/sh", "./entrypoint.sh"] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload env_file: - .env environment: - NODE_ENV=production depends_on: - database restart: always immich-web: image: altran1502/immich-web:release entrypoint: ["/bin/sh", "./entrypoint.sh"] env_file: - .env restart: always redis: container_name: immich_redis image: redis:6.2 restart: always database: container_name: immich_postgres image: postgres:14 env_file: - .env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} PG_DATA: /var/lib/postgresql/data volumes: - pgdata:/var/lib/postgresql/data restart: always immich-proxy: container_name: immich_proxy image: altran1502/immich-proxy:release ports: - 2283:80 logging: driver: none depends_on: - immich-server restart: always volumes: pgdata: ``` ``` ################################################################################### # Database ################################################################################### DB_HOSTNAME=immich_postgres DB_USERNAME=postgres DB_PASSWORD=passwordsandsuch DB_DATABASE_NAME=immich # Optional Database settings: # DB_PORT=5432 ################################################################################### # Redis ################################################################################### REDIS_HOSTNAME=immich_redis # Optional Redis settings: # REDIS_PORT=6379 # REDIS_DBINDEX=0 # REDIS_PASSWORD= # REDIS_SOCKET= ################################################################################### # Upload File Config ################################################################################### UPLOAD_LOCATION=/mnt/shares/backup/immich ################################################################################### # JWT SECRET ################################################################################### JWT_SECRET=longasssecret ################################################################################### # MAPBOX #################################################################################### # ENABLE_MAPBOX is either true of false -> if true, you have to provide MAPBOX_KEY ENABLE_MAPBOX=false MAPBOX_KEY= #################################################################################### # WEB - Optional #################################################################################### # Custom message on the login page, should be written in HTML form. # For example PUBLIC_LOGIN_PAGE_MESSAGE="This is a demo instance of Immich.<br><br>Email: <i>demo@demo.de</i><br>Password: <i>demo</i>" PUBLIC_LOGIN_PAGE_MESSAGE= ``` **Environment** - Raspberry Pi4 4GB - Raspberry Pi OS Lite 64bit, on a 32GB UHS 1 SD Card - Docker version 20.10.5+dfsg1, build 55c4c88 **Expected behavior** I expect to see suggested PLACES and THINGS in the mobile app. **System** - Android: Android 9, Samsung S8 - Server Version: `1.27` - Mobile App Version: `1.26.0 build.36` **Additional context** Add any other context about the problem here.
Author
Owner

@alextran1502 commented on GitHub (Sep 7, 2022):

Please update your mobile app to the latest version. It should be fixed then

@alextran1502 commented on GitHub (Sep 7, 2022): Please update your mobile app to the latest version. It should be fixed then
Author
Owner

@alextran1502 commented on GitHub (Sep 7, 2022):

You will not get the Places result if you don't have MAPBOX enable

@alextran1502 commented on GitHub (Sep 7, 2022): You will not get the Places result if you don't have `MAPBOX` enable
Author
Owner

@darrylgibbs commented on GitHub (Sep 7, 2022):

It's the latest version that the Google Play store gave me when I downloaded it today, but I checked again and an update was waiting. I added MAPBOX too and all is well. Thanks.

The image recognition accuracy will improve with time?

@darrylgibbs commented on GitHub (Sep 7, 2022): It's the latest version that the Google Play store gave me when I downloaded it today, but I checked again and an update was waiting. I added MAPBOX too and all is well. Thanks. The image recognition accuracy will improve with time?
Author
Owner

@alextran1502 commented on GitHub (Sep 7, 2022):

There is no retrain functionality at this time. So unfortunately the accuracy will not improve. We will do something about it though

@alextran1502 commented on GitHub (Sep 7, 2022): There is no retrain functionality at this time. So unfortunately the accuracy will not improve. We will do something about it though
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#260