Web Analytics

immich-all-in-one

⭐ 2 stars Korean 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

~~향후 ente-io/ente로 이전할 계획이었으나, 사진 저장을 위해 s3가 필요해서~~
ente는 여전히 기능이 너무 적다
juicedata/juicefs를 사용하여 s3를 마운트하는 방식으로 변경

프로젝트 소개

본 프로젝트는 Immich 사진 관리 시스템의 AI 기능 확장 솔루션입니다. 주요 구성요소를 통해 Immich의 기본 기능을 다음과 같이 확장하였습니다:

주요 기능

1. OCR 문자 인식 및 검색

2. CLIP 이미지 벡터 처리

3. 단일 미디어 AI 데이터 재처리

시스템 아키텍처

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

组件详解

inference-gateway

Go 언어로 작성된 게이트웨이 서비스, 주요 역할:

mt-photos-ai

Python과 FastAPI로 작성된 AI 서비스, 제공 기능:

배포 설명

환경 요구 사항

구성 설명

주요 환경 변수:

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  # 网关监听端口
주요 환경 변수:

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

배포 단계

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

사용 설명

Immich의 구성 파일에서 머신러닝 서비스 주소를 inference-gateway로 지정합니다:

MACHINE_LEARNING_URL=http://inference-gateway:8080

개발 가이드

inference-gateway (Go)

컴파일 및 실행:

cd inference-gateway
go build
./inference-gateway

mt-photos-ai (Python)

개발 환경 설정:

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

라이선스

이 프로젝트는 MIT 라이선스를 기반으로 오픈소스입니다.

감사의 말씀

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