High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
feat(server) Enable ML support for ARM CPUs (#1880)
Olly Welchab90b01122d5
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.ymlindex c96dbdbb9f..eaab97122e 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/docker.yml@@ -29,7 +29,7 @@ jobs:platforms: "linux/arm/v7,linux/amd64,linux/arm64"- context: "machine-learning"image: "immich-machine-learning"- platforms: "linux/amd64"+ platforms: "linux/amd64,linux/arm64"- context: "nginx"image: "immich-proxy"platforms: "linux/arm/v7,linux/amd64,linux/arm64"diff --git a/machine-learning/Dockerfile b/machine-learning/Dockerfileindex acf92053ba..8e07778fe9 100644--- a/machine-learning/Dockerfile+++ b/machine-learning/Dockerfile@@ -1,15 +1,16 @@FROM python:3.10-ENV TRANSFORMERS_CACHE=/cache-ENV PYTHONDONTWRITEBYTECODE 1-ENV PYTHONUNBUFFERED 1+ENV TRANSFORMERS_CACHE=/cache \+ PYTHONDONTWRITEBYTECODE=1 \+ PYTHONUNBUFFERED=1 \+ PIP_NO_CACHE_DIR=trueWORKDIR /usr/src/appRUN python -m venv /opt/venvENV PATH="/opt/venv/bin:$PATH"-RUN pip install --no-cache-dir torch==1.13.1+cpu -f https://download.pytorch.org/whl/torch_stable.html+RUN pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.htmlRUN pip install transformers tqdm numpy scikit-learn scipy nltk sentencepiece flask PillowRUN pip install --no-deps sentence-transformers