Immich 是一个开源的自托管照片和视频管理平台,支持自动备份、AI 智能搜索和跨设备访问。借助 AI Pyramid 的算力加速,可实现高效的图像识别和语义搜索功能。
选择以下任一方式获取 Immich 部署资源:
方式一:手动下载
访问 Immich 资源仓库 进行下载,随后上传到 AI Pyramid 设备。
方式二:命令行克隆
git clone https://huggingface.co/AXERA-TECH/immich 克隆完成后,目录结构如下:
root@m5stack-AI-Pyramid:~/rsp/immich# ls -lh
total 421M
drwxrwxr-x 2 axera axera 4.0K Dec 23 17:23 asset
-rw-rw-r-- 1 axera axera 421M Dec 23 17:23 ax-immich-server-aarch64.tar.gz
-rw-rw-r-- 1 axera axera 0 Dec 23 17:22 config.json
-rw-rw-r-- 1 axera axera 7.6K Dec 23 17:23 docker-deploy.zip
-rw-rw-r-- 1 axera axera 104K Dec 23 17:23 immich_ml-1.129.0-py3-none-any.whl
-rw-rw-r-- 1 axera axera 9.4K Dec 23 17:22 README.md
-rw-rw-r-- 1 axera axera 177 Dec 23 17:22 requirements.txt cd immich
docker load -i ax-immich-server-aarch64.tar.gz apt install zip -y 命令进行安装。unzip docker-deploy.zip
cp example.env .env docker compose -f docker-compose.yml -f docker-compose.override.yml up -d 启动成功后输出示例:
root@m5stack-AI-Pyramid:~/rsp/immich# docker compose -f docker-compose.yml -f docker-compose.override.yml up -d
WARN[0000] /root/rsp/immich/docker-compose.override.yml: `version` is obsolete
[+] Running 3/3
✔ Container immich_redis Running 0.0s
✔ Container immich_postgres Running 0.0s
✔ Container immich_server Running 0.0s pip install https://github.com/AXERA-TECH/pyaxengine/releases/download/0.1.3.rc2/axengine-0.1.3-py3-none-any.whl
pip install -r requirements.txt
pip install immich_ml-1.129.0-py3-none-any.whl 创建 Python 软连接并启动 immich_ml 服务:
ln -s /usr/bin/python3 /usr/bin/python
IMMICH_HOST=0.0.0.0 IMMICH_PORT=3003 python3 -m immich_ml 服务启动成功示例输出:
root@m5stack-AI-Pyramid:~/rsp/immich# IMMICH_HOST=0.0.0.0 IMMICH_PORT=3003 python3 -m immich_ml
[12/30/25 10:59:50] INFO Starting gunicorn 23.0.0
[12/30/25 10:59:50] INFO Listening at: http://0.0.0.0:3003 (14537)
[12/30/25 10:59:50] INFO Using worker: immich_ml.config.CustomUvicornWorker
[12/30/25 10:59:50] INFO Booting worker with pid: 14546
2025-12-30 10:59:52.776738850 [W:onnxruntime:Default, device_discovery.cc:164 DiscoverDevicesForPlatform] GPU device discovery failed: device_discovery.cc:89 ReadFileContents Failed to open file: "/sys/class/drm/card1/device/vendor"
[INFO] Available providers: ['AxEngineExecutionProvider']
/usr/local/lib/python3.10/dist-packages/immich_ml/models/clip/cn_vocab.txt
[12/30/25 11:00:06] INFO Started server process [14546]
[12/30/25 11:00:06] INFO Waiting for application startup.
[12/30/25 11:00:06] INFO Created in-memory cache with unloading after 300s of inactivity.
[12/30/25 11:00:06] INFO Initialized request thread pool with 8 threads.
[12/30/25 11:00:06] INFO Application startup complete. 使用浏览器访问 Immich 管理界面,在地址栏输入 AI Pyramid 的 IP 地址和 2283 端口:
http://192.168.x.x:2283
配置完成后,进入设置界面配置机器学习服务器。点击左侧菜单进入配置界面:
在 URL 字段填入 AI Pyramid 的 IP 地址和 3003 端口:
http://192.168.x.x:3003 根据需要选择 CLIP 模型:
ViT-L-14-336-CN__axeraViT-L-14-336__axera配置完成后点击保存:
第一次使用需要手动触发索引任务。进入 Jobs 选项,在 SMART SEARCH 中手动启用:
immich_ml 服务将自动下载并初始化 CLIP 模型:
在搜索栏输入照片的文字描述,系统将使用 AI 语义搜索技术自动检索相关的照片和视频:
