Web Analytics

immich-all-in-one

⭐ 2 stars French by eric-gitta-moore

Immich + cn-clip + RapidOCR + InsightFace

version version version version version version version version version version version version version version version version version

~~Le plan est de migrer vers ente-io/ente, car j'ai besoin de s3 pour stocker les photos~~
ente a encore trop peu de fonctionnalités
Changement pour utiliser juicedata/juicefs pour monter s3

Présentation du projet

Ce projet est une solution d'amélioration IA pour le système de gestion de photos Immich. Il étend principalement les fonctionnalités natives d’Immich via les composants suivants :

Fonctionnalités principales

1. Reconnaissance et recherche de texte OCR

2. Traitement des vecteurs d’image CLIP

3. Retraitement AI des données d’un média

Architecture système

┌─────────────┐      ┌──────────────────┐      ┌───────────────┐
│             │      │                  │      │               │
│   Immich    │─────▶│ inference-gateway│─────▶│  Immich ML    │
│   Server    │      │    (Go网关)      │      │   Server      │
│             │      │                  │      │               │
└─────────────┘      └──────────────────┘      └───────────────┘
                              │
                              │ OCR/CLIP请求
                              ▼
                     ┌──────────────────┐
                     │                  │
                     │   mt-photos-ai   │
                     │  (Python服务)    │
                     │                  │
                     └──────────────────┘

Détails des composants

inference-gateway

Service passerelle écrit en Go, principales responsabilités :

mt-photos-ai

Service IA écrit en Python et FastAPI, fournit :

Instructions de déploiement

Prérequis

Explication de la configuration

Principales variables d’environnement :

IMMICH_API=http://localhost:3003  # Immich API地址
MT_PHOTOS_API=http://localhost:8060  # mt-photos-ai服务地址
MT_PHOTOS_API_KEY=mt_photos_ai_extra  # API密钥
PORT=8080  # 网关监听端口
Principales variables d'environnement :

CLIP_MODEL=ViT-B-16  # CLIP模型名称
CLIP_DOWNLOAD_ROOT=./models/clip  # 模型下载路径
DEVICE=cuda  # 或 cpu,推理设备
HTTP_PORT=8060  # 服务监听端口

Étapes de déploiement

git clone https://github.com/你的用户名/immich-all-in-one.git
cd immich-all-in-one
docker-compose up -d

Instructions d'utilisation

Dans le fichier de configuration d'Immich, pointez l'adresse du service de machine learning vers inference-gateway :

MACHINE_LEARNING_URL=http://inference-gateway:8080

Guide de développement

inference-gateway (Go)

Compiler et exécuter :

cd inference-gateway
go build
./inference-gateway

mt-photos-ai (Python)

Configuration de l'environnement de développement :

cd mt-photos-ai
pip install -r requirements.txt
python -m app.main

Licence

Ce projet est open source sous licence MIT.

Remerciements

--- Tranlated By Open Ai Tx | Last indexed: 2025-07-17 ---