The Immich machine-learning service provides smart search (CLIP),
duplicate detection, facial recognition and OCR (text search in
images) for an Immich server. It is a FastAPI application that
executes ONNX models with onnxruntime on the CPU. Models are
downloaded automatically on first use into the cache directory.
The service listens on port 3003 by default and is consumed by
www/immich; point the Immich server at it via its machine-learning
URL setting.
www/immich-ml: Update to 3.3.5
The machine learning models were re-exported in a faster and more memory
efficient format, and the PP-OCRv6 model family was added, which is more
accurate than PP-OCRv5 and multilingual throughout. Both are opt-in via
MACHINE_LEARNING_MODEL_REVISION, which immich-ml.env.sample now mentions;
upstream intends to make it the default in a later release. Model outputs
are numerically equivalent, so no job needs to be re-run.
Follow upstream's dependency set: aiocache is gone since 3.3.0, immich-model
is new, and onnx is declared directly. Drop ftfy, insightface and
ml-dtypes, none of which upstream declares or imports, and which no longer
need to stand in for a gap in misc/py-onnx.
Changelog: https://github.com/immich-app/immich/releases/tag/v3.3.5
Sponsored by: Netzkommune GmbH
www/immich-ml: Use ONLY_FOR_ARCHS for the 64-bit gate
powerpc64 and powerpc64le stay enabled. A whitelist keeps architectures
that nobody has built yet, riscv64 among them, out.
Sponsored by: Netzkommune GmbH
www/immich-ml: Stop logging to syslog
The lines already go to /var/log/immich, which newsyslog rotates, and
syslog repeated them under the tag "daemon". The process now carries
its own name in ps.
Differential Revision: https://reviews.freebsd.org/D60277
Sponsored by: Netzkommune GmbH
www/immich-ml: Add optical character recognition
Text in photos is now read by graphics/py-rapidocr, which makes the search
find words that appear inside an image.
The rc script gained an environment file, a child pid file and a umask of
027, the log file is rotated by newsyslog, and pkg-message is substituted
from files/pkg-message.in.
Sponsored by: Netzkommune GmbH
www/immich-ml: Update to 3.2.0
Adds cluster groups, which identify people across the shared assets of
trusted users. Enabling them requires resetting the existing facial
recognition data.
Changes: https://github.com/immich-app/immich/releases/tag/v3.2.0
Sponsored by: Netzkommune GmbH
www/immich-ml: Add New Port
Machine-learning service for Immich providing smart search (CLIP),
duplicate detection and facial recognition via onnxruntime on the
CPU. Models are downloaded on first use into the cache directory.
OCR is not yet available as rapidocr has no FreeBSD port.
WWW: https://immich.app/
Sponsored by: Netzkommune GmbH