← Projectswrite-up

OpenPhoto

A self-hosted photo classifier and search tool for an NVIDIA Jetson, a group project with James McDonald.

ravicorrie.com/projects/openphotowrite-up
Type
write-up
Status
In progress
Stack
python · computer-vision · sqlite
Likes
0

OpenPhoto is a self-hosted photo classifier and search tool, a group project with James McDonald, built to run on an NVIDIA Jetson. It scans a folder of photos, embeds each image with Google's SigLIP2 model from Hugging Face, stores the vectors, and finds similar photos or photos that match a label.

It's still in progress. Code not public yet.

Architecture diagram: a photos folder feeds SigLIP2 embeddings, which go into a SQLite + sqlite-vec store, which powers similarity search and label scoring.

How it works

  1. Scan. The pipeline scans a photo folder and records each photo in a SQLite database, with its EXIF data and a sha256 hash. Photos stay where they are on disk. Rescans are incremental: only new or changed photos are processed again.
  2. Embed. Each image is turned into a vector by Google's SigLIP2 model, loaded from Hugging Face.
  3. Store. The vectors go into the same SQLite file through sqlite-vec, as 768-dimensional vectors compared by cosine distance.
  4. Search. A KNN query finds the photos most similar to a given one. Label scoring compares every photo against a set of labels (25 are seeded, such as dog, beach and receipt) and stores each photo's score for each label.

Status

In progress. The database layer is on a branch that hasn't been merged yet, and the pieces aren't connected end to end yet. Code not public yet.

Comments (0)

Log in or sign up to comment.