pdf-icon

Immich

Immich 是一个开源的自托管照片和视频管理平台,支持自动备份、智能搜索和跨设备访问。

  1. 手动下载程序 并上传到 AI Pyramid,或者通过以下命令拉取模型仓库。
提示
如果没有安装 git lfs,先参考git lfs 安装说明进行安装。
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
  1. 导入 docker 镜像
cd immich
docker load -i ax-immich-server-aarch64.tar.gz
  1. 准备工作目录
提示
如果没有安装 unzip,先使用 apt install zip -y 命令进行安装。
unzip docker-deploy.zip
cp example.env .env
  1. 启动容器
提示
如果是 4GB 版本的 AI Pyramid,先参考增加虚拟内存以保证程序能够正常运行。
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 
  1. 安装依赖包
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 # 预编译包可能升级,以实际文件名为准。
  1. 创建 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.

在浏览器中输入 AI Pyramid 的 IP地址和 2283 端口,例如 192.168.20.105:2283

注意,第一次访问需要注册管理员账户,帐号密码保存在本地。

配置完成,即可上传照片和视频,第一次需要配置机器学习服务器,参考下图进入配置

URL 填写为 AI Pyramid 的 IP地址和 3003 端口,例如 192.168.20.118:3003

CLIP 模型如果使用中文搜索,填写为 ViT-L-14-336-CN__axera 如果使用英文搜索填写为 ViT-L-14-336__axera 设置完成后,保存。

提示
如果显示服务器离线,检查客户端是否开启代理,关闭之后再刷新网页。

第一次需要手动进入 Jobs 选项,在 SMART SEARCH 中手动触发

immich_ml 服务会自动下载模型

在搜索栏输入图片的描述,即可检索相关的图片

On This Page