You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have many photos that I want to import into Immich that have already been tagged with faces using Digikam. To get these into Immich, I initially tried to do it with just this setting changed:
The result is that there are no person thumbnails that are generated. Instead of a face thumbnail, this is displayed:
The OS that Immich Server is running on
Manjaro
Version of Immich Server
Latest image pulled 2024-12-29
Version of Immich Mobile App
Not relevant
Platform with the issue
Server
Web
Mobile
Your docker-compose.yml content
## WARNING: Make sure to use the docker-compose.yml of the current release:## https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml## The compose file on main may not be compatible with the latest release.#name: immichservices:
immich-server:
container_name: immich_serverimage: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}# extends:# file: hwaccel.transcoding.yml# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcodingvolumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- /home/kevin/Pictures:/mnt/Pictures:roenv_file:
- .envgroup_add:
- videodeploy:
resources:
reservations:
devices:
- capabilities: [gpu]runtime: nvidiadevices:
- /dev/nvidia0:/dev/nvidia0
- /dev/nvidiactl:/dev/nvidiactl
- /dev/nvidia-uvm:/dev/nvidia-uvm
- /dev/nvidia-uvm-tools:/dev/nvidia-uvm-toolsports:
- '2283:2283'depends_on:
- redis
- databaserestart: alwayshealthcheck:
disable: falseimmich-machine-learning:
container_name: immich_machine_learning# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.# Example tag: ${IMMICH_VERSION:-release}-cudaimage: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}-cudaextends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-accelerationfile: hwaccel.ml.ymlservice: cuda # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicablevolumes:
- model-cache:/cacheenv_file:
- .envrestart: alwayshealthcheck:
disable: falseredis:
container_name: immich_redisimage: docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8healthcheck:
test: redis-cli ping || exit 1restart: alwaysdatabase:
container_name: immich_postgresimage: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}POSTGRES_USER: ${DB_USERNAME}POSTGRES_DB: ${DB_DATABASE_NAME}POSTGRES_INITDB_ARGS: '--data-checksums'volumes:
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
- ${DB_DATA_LOCATION}:/var/lib/postgresql/datahealthcheck:
test: >- pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1; Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1interval: 5mstart_interval: 30sstart_period: 5mcommand: >- postgres -c shared_preload_libraries=vectors.so -c 'search_path="$$user", public, vectors' -c logging_collector=on -c max_wal_size=2GB -c shared_buffers=512MB -c wal_compression=onrestart: unless-stoppedvolumes:
model-cache:
Your .env content
# 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=./immich_data
# The location where your database files are stored
DB_DATA_LOCATION=./postgres_data
# 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/Denver
# 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=asdf8sdf769asdf8
# Added for NVidia# See https://github.com/immich-app/immich/discussions/12544#discussioncomment-10603023
NVIDIA_VISIBLE_DEVICES=all
NVIDIA_DRIVER_CAPABILITIES=all
# The values below this line do not need to be changed###################################################################################
DB_USERNAME=xxxxxx
DB_DATABASE_NAME=immich
Reproduction steps
docker compose up
complete the onboarding
go to the Administration page
change the metadata option
change the machine learning option (optional). Same result regardless of this setting.
add an external library that contains images with facial data. This data is stored in the image, and in an XMP sidecar
scan the external library
View the people thumbnails. They will have the person's name, but no image
...
Relevant log output
immich_server | [Nest] 7 - 12/30/2024, 9:49:49 AM ERROR [Microservices:PersonService] Could not generate person thumbnail: person 65cad71a-c579-41dd-9be8-d5f62d28e59a has no face asset
immich_server | [Nest] 7 - 12/30/2024, 9:49:49 AM ERROR [Microservices:PersonService] Could not generate person thumbnail: person dfce822a-72f3-4b5e-a651-46e91d057225 has no face asset
immich_server | [Nest] 7 - 12/30/2024, 9:49:50 AM ERROR [Microservices:PersonService] Could not generate person thumbnail: person e8f84012-7f1a-45c0-a9ba-b9449175394f has no face asset
immich_server | [Nest] 7 - 12/30/2024, 9:49:50 AM ERROR [Microservices:PersonService] Could not generate person thumbnail: person 28c50b40-89be-427d-b8d6-82e54ad813b4 has no face asset
immich_server | [Nest] 7 - 12/30/2024, 9:49:50 AM ERROR [Microservices:PersonService] Could not generate person thumbnail: person 48d0d1b0-d4d4-4c69-b19b-c906b62387dd has no face asset
immich_server | [Nest] 7 - 12/30/2024, 9:49:51 AM ERROR [Microservices:PersonService] Could not generate person thumbnail: person ab335181-f63d-4bb3-a4f2-ec583bd4efb3 has no face asset
Additional information
I have also tried it with CUDA enabled/disabled in docker-compose, and I have tried it with Machine Learning enabled and disabled. The results are the same.
As a workaround, I can run it with Machine Learning enabled, and then go and merge the faces together. This is not a great solution as there are hundreds of unique people.
The bug
I have many photos that I want to import into Immich that have already been tagged with faces using Digikam. To get these into Immich, I initially tried to do it with just this setting changed:
The result is that there are no person thumbnails that are generated. Instead of a face thumbnail, this is displayed:
The OS that Immich Server is running on
Manjaro
Version of Immich Server
Latest image pulled 2024-12-29
Version of Immich Mobile App
Not relevant
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
docker compose up
...
Relevant log output
Additional information
I have also tried it with CUDA enabled/disabled in docker-compose, and I have tried it with Machine Learning enabled and disabled. The results are the same.
As a workaround, I can run it with Machine Learning enabled, and then go and merge the faces together. This is not a great solution as there are hundreds of unique people.
Sample XMP file
The text was updated successfully, but these errors were encountered: