On-device dish recognition used by the Atwater app from Twistor Labs. It runs on the phone, only when the app's main food classifier is unsure, and scores a meal photo against a list of dish names. No photo ever leaves the device.
| File | What it is |
|---|---|
food-reranker.tflite |
SigLIP2 ViT-B/16 image encoder, int8 dynamic-range weights, 94.5 MB. Input [1,224,224,3] uint8 RGB (normalisation is inside the model). Output [1,768] float32, L2-normalised. Builtin TFLite ops only. |
dish-bank.json |
792 dish names with precomputed SigLIP2 text embeddings (float16, L2-normalised), plus scoring constants. Score per dish: sigmoid(logit_scale * dot(image, dish) + logit_bias). |
sha256 food-reranker.tflite: e95b94d879ba38c4a710f899553212eadb0d3de8884b3a9a7d5442f4ecd74307
Converted from timm/ViT-B-16-SigLIP2 (revision eee10eff6dd8cabae2d7f379d4e8cfcd352030aa), released by Google under the Apache License 2.0. This derivative is also Apache-2.0. Changes: image tower only, re-exported to TFLite with NHWC uint8 input and in-model normalisation, int8 dynamic-range weight quantisation. Text embeddings in dish-bank.json were computed with the matching SigLIP2 text tower using the prompt "a photo of {dish}, a type of food."
Embedding parity against the original PyTorch model: minimum cosine similarity 0.9985 on test images.
Dish names are a fixed list; dishes not on it cannot be named. Scores are similarities, not guarantees. The Atwater app always shows alternatives when it is unsure and takes nutrition values from USDA FoodData Central, never from this model.
Copyright 2026 Twistor Labs Private Limited. Model weights derived from Google SigLIP2 (Apache-2.0).
timm/ViT-B-16-SigLIP2