Package Details: immich-machine-learning 3.3.3-1

Git Clone URL: https://aur.archlinux.org/immich-machine-learning.git (read-only, click to copy)
Package Base: immich-machine-learning
Description: Machine learning server for the Immich photo management system
Upstream URL: https://github.com/immich-app/immich/tree/main/machine-learning
Licenses: AGPL-3.0-only
Submitter: aliu
Maintainer: aliu (CountMurphy)
Last Packager: CountMurphy
Votes: 3
Popularity: 0.044841
First Submitted: 2025-10-01 23:40 (UTC)
Last Updated: 2026-10-14 17:26 (UTC)

Pinned Comments

aliu commented on 2026-02-10 13:17 (UTC)

This package will update iff there is a change in the code between releases: https://github.com/immich-app/immich/commits/main/machine-learning

Latest Comments

1 2 3 4 Next › Last »

rossome commented on 2026-10-09 00:30 (UTC)

Sharing updated 3.3.1 packaging:

https://gist.github.com/likeaross/0a573c2a0834439fab59e6a145ef68c3/81bbd310e4d023d6c4dd13ab16156b28f568cb0d

Includes the pinned immich-model library and a fix for missing model metadata during check(). An enabled compatibility patch uses NumPy when OpenCV lacks cv2.convertFp16, while retaining OpenCV’s conversion when available. Please read the README for validation details and notes about relaxed dependency limits.

CountMurphy commented on 2026-10-05 17:35 (UTC)

I've created manual patch files to update to 3.2.4

PKGBUILD

diff --git a/PKGBUILD b/PKGBUILD
index 3d4b02c..d6e6e82 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: aliu <aaronliu 0 1 3 0  gmail com>
 # Contributor: pikl <me@pikl.uk>
 pkgname=immich-machine-learning
-pkgver=3.0.1
+pkgver=3.2.4
 pkgrel=1
 pkgdesc="Machine learning server for the Immich photo management system"
 arch=(any)
@@ -13,8 +13,8 @@ depends=('python>=3.11' # 'python<4' not recommended by python
    'python-fastapi<1.0'
    'gunicorn'
    'python-huggingface-hub'
-   'python-insightface<2.0'
-   'python-numpy'  # upstream recommends <2.4 for CPUs below x86-64-v2
+   'python-numpy>=2.4.0'
+   'python-onnx>=1.22.0'
    'python-opencv<6.0'
    'python-orjson'
    'python-pillow<13'
@@ -39,9 +39,9 @@ optdepends=(
 source=("immich-${pkgver}.tar.gz::https://github.com/immich-app/immich/archive/refs/tags/v${pkgver}.tar.gz"
    'immich-machine-learning.service'
    'opencv.patch')
-b2sums=('2fb4f53b8a4c7b7b4978598365aecc73367b8a7c9c70f0e72051afed4bc2f624449ee5b5421aba1310203478aac8b4f05e898f5e2eb860689118bc5702877b0e'
-       '2097cfbe79d07d32f696be0ec4998f987976cd3031ad5f693e84619a5da758c78a4a25171eb983b08a9b9ab567159e9be51f56226ad66ab0ea0c01d4d167d2f6'
-       'a444630fe3591d24daf733e436274b9cebb1b4efbe9f4fa9ce5acec324894107a0fd47abaca447e0eec9142a6c02a71900cd4d9f2a70c391695e9dde7fec11b2')
+b2sums=('7cf250b78000169632631552a36755227be5bf4a206ae274f82d2f3262607352d2df749fddef16d4fb45a21bd9d6c4cdde368b7283b903d3a556a420c3e56f08'
+        '2097cfbe79d07d32f696be0ec4998f987976cd3031ad5f693e84619a5da758c78a4a25171eb983b08a9b9ab567159e9be51f56226ad66ab0ea0c01d4d167d2f6'
+        '928b098b8273545dffb4667c2ed92944c6d2a69c7f7b861996aaea425cf850141055327ad1a025aca0de897be71d015161021d84842dd0ebe0765c7eca6994e7')

 prepare() {
    cd "${srcdir}/immich-${pkgver}/machine-learning"

Opencv

diff --git a/opencv.patch b/opencv.patch
index 5415594..2f39fc1 100644
--- a/opencv.patch
+++ b/opencv.patch
@@ -2,8 +2,8 @@
 +++ b/pyproject.toml
 @@ -12,7 +12,7 @@
      "huggingface-hub>=1.0,<2.0",
-     "insightface>=0.7.3,<2.0",
      "numpy>=2.4.0,<3.0",
+     "onnx>=1.22.0",
 -    "opencv-python-headless>=4.7.0.72,<5.0",
 +    "opencv-python-headless>=4.7.0.72,<6.0",
      "orjson>=3.9.5",

CountMurphy commented on 2026-09-23 17:15 (UTC)

Any chance we can get these packages updated? immich-machine-learning wont currently install due to python-insightface being newer than what this version of immich supports.

aliu commented on 2026-07-20 19:54 (UTC)

@deons Please read the pinned comment. 3.0.3 is identical to 3.0 as the only change was to mise dependencies and we don't use mise dependencies to package this. As such, I'm not bumping it.

musta_ruhtinas commented on 2026-07-06 08:24 (UTC)

@aliu So far so good, builds and runs fine. Not sure if relevant, still on older python-rapidocr, as dependencies not solved yet in official repos.

aliu commented on 2026-07-05 21:56 (UTC)

A niche situation prevents me from testing the newest commit I've pushed in a clean chroot (though it does work on my machine). Let me know if you have any issues.

musta_ruhtinas commented on 2026-07-05 18:22 (UTC)

python-opencv now at version 5.0.0, and so far <5 required upstream.

:: installing python-opencv (5.0.0-1) breaks dependency 'python-opencv<5.0' required by immich-machine-learning

musta_ruhtinas commented on 2026-05-28 18:18 (UTC)

no idea why, working now. perhaps cache held an older build with same version.

aliu commented on 2026-05-25 14:10 (UTC)

I did update the package for that. Is it not working?

musta_ruhtinas commented on 2026-05-25 08:56 (UTC)

python-insightface is now at version 1.0.1, not meeting the <1.0 requirement