A small, client-side food photo tracker. Choose an image, review the detected food and its estimated nutrition, adjust the portion in grams, then add it to the local log.
The shipped Swin Food-101 model identifies one of 101 food categories in the browser. The app then uses a local reference nutrition profile for that food. It does not measure calories or portion size directly from a photograph. Always review the detected food and grams before logging; this is not medical or dietary advice.
No photo, food log, or model inference is sent to an application server. The model is downloaded from Hugging Face and cached by the browser for later use.
Serve the repository over HTTP, then open the local address in a browser:
python -m http.server 8000npm ci
npm testThe browser test uses a deterministic ONNX Runtime stub. It verifies upload, inference flow, portion editing, logging, cache/session invalidation, and the browser unit suite without downloading the production model.
The default model is
onnx-community/swin-finetuned-food101-ONNX
(Apache-2.0). The application loads its quantized ONNX file directly from
Hugging Face.