1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-23 02:06:15 +02:00

docs(ml): update hardware acceleration doc (#8700)

* update docs

* formatting
This commit is contained in:
Mert 2024-04-11 03:39:18 -04:00 committed by GitHub
parent e421fe9860
commit 8c9a092561
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 7 deletions

View File

@ -27,8 +27,6 @@ services:
count: 1
capabilities:
- gpu
- compute
- video
openvino:
device_cgroup_rules:

View File

@ -43,7 +43,8 @@ You do not need to redo any machine learning jobs after enabling hardware accele
1. If you do not already have it, download the latest [`hwaccel.ml.yml`][hw-file] file and ensure it's in the same folder as the `docker-compose.yml`.
2. In the `docker-compose.yml` under `immich-machine-learning`, uncomment the `extends` section and change `cpu` to the appropriate backend.
3. Redeploy the `immich-machine-learning` container with these updated settings.
3. Still in `immich-machine-learning`, add one of -[armnn, cuda, openvino] to the `image` section's tag at the end of the line.
4. Redeploy the `immich-machine-learning` container with these updated settings.
#### Single Compose File
@ -60,8 +61,6 @@ deploy:
count: 1
capabilities:
- gpu
- compute
- video
```
You can add this to the `immich-machine-learning` service instead of extending from `hwaccel.ml.yml`:
@ -69,6 +68,7 @@ You can add this to the `immich-machine-learning` service instead of extending f
```yaml
immich-machine-learning:
container_name: immich_machine_learning
# Note the `-cuda` at the end
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}-cuda
# Note the lack of an `extends` section
deploy:
@ -79,8 +79,6 @@ immich-machine-learning:
count: 1
capabilities:
- gpu
- compute
- video
volumes:
- model-cache:/cache
env_file: