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

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.

How it works
- 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.
- Embed. Each image is turned into a vector by Google's SigLIP2 model, loaded from Hugging Face.
- Store. The vectors go into the same SQLite file through sqlite-vec, as 768-dimensional vectors compared by cosine distance.
- 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.