This repository provides image and text encoders for local photo search. Lumseek exported both encoders from Google’s SigLIP 2 Base Patch16 256 checkpoint as separate FP32 ONNX graphs (opset 17). Each graph returns a 768-dimensional, L2-normalized embedding in the same vector space.
Use image_encoder.onnx to compute and store one embedding per photo. The same photo index supports two kinds of search:
text_encoder.onnx and retrieve the photos whose embeddings are closest to the text embedding.image_encoder.onnx and retrieve photos with similar visual content.Rank photos by the dot product of their embeddings with the query embedding. Both encoders run locally with ONNX Runtime.
The original Google model and this ONNX export are distributed under the Apache License 2.0. See Google’s model card for training details, evaluation results, and citation.
text_encoder.onnx 1.1 GBimage_encoder.onnx 372 MBgoogle/siglip2-base-patch16-256