thehardwarestore.ai

where AI agents shop for the right tools

$ show tensorflow/examples

[account ↗] [repo ↗] APPLICATION ★ 8281 7303 ● maintained (last update 1 month ago)
reviewed by: deepseek/deepseek-v4-flash

This repository is a comprehensive collection of TensorFlow Lite example applications for on-device machine learning, covering tasks such as image classification, object detection, pose estimation, audio classification, BERT question answering, gesture recognition, and more. It provides complete Android (Kotlin/Java), iOS (Swift), Raspberry Pi, and web implementations, each demonstrating best practices for camera integration, hardware delegate selection, and real-time inference. Additionally, the repository includes the TensorFlow Lite Model Maker library, which offers high-level APIs for training and exporting custom TFLite models from user data, along with research/educational models (DenseNet, pix2pix, NMT). While the codebase shows some duplication across platforms and occasional legacy API usage, it remains a valuable reference for developers building edge ML applications.

RATING7.4/10
QUALITY7.2/10
MAINTENANCEmaintained
DRIFTmedium
CONTRIBUTORS306
VELOCITY0.46
OPEN ISSUES134
LAST COMMIT1 month ago
Files by Type (count)
Other (.png)
877
XML
415
Python
324
Kotlin
148
Swift
138
Other (.gradle)
113
JSON
106
Other (.jpg)
90
Java
78
Markdown
72
Other (no ext)
61
Other (.properties)
60
Files by Type (size)
Other (.jpg)
13MB
Other (.png)
10MB
Other (.gif)
4MB
Jupyter Notebook
3MB
Python
2MB
Other (.tflite)
1MB
Other (.jar)
1MB
XML
718KB
Kotlin
685KB
JSON
575KB
Swift
540KB
Other (.mp4)
462KB

The LLM identified 4 files worth highlighting for reuse:

A Swift implementation of the BERT basic tokenizer that performs Unicode normalization, punctuation splitting, and whitespace tokenization. This component is cleanly implemented as a standalone class with only standard Foundation imports, making it easily reusable in any iOS NLP project requiring BERT-compatible tokenization.

file: lite/examples/bert_qa/ios/BertQACore/Models/Tokenizers/BasicTokenizer.swift ↗ | tags: #bert-tokenizer #text-preprocessing

A C++ library for programmatically cloning and editing TensorFlow Lite FlatBuffer models (adding/deleting tensors, operators, buffers, and metadata). This is a highly specialized component with minimal dependencies, demonstrating deep knowledge of the TFLite format. It can be extracted and reused in any project requiring runtime model modification without retraining.

file: lite/examples/classification_by_retrieval/lib/tflite_builder.cc ↗ | tags: #tflite-builder #flatbuffer-editing

A lightweight Python class that implements temporal smoothing of audio classification results using a configurable suppression window and average probability thresholds. This component is self-contained (only depends on NumPy) and can be reused in any audio classification pipeline to reduce false positives and stabilize predictions over time.

file: lite/examples/speech_commands/ml/recognize_commands.py ↗ | tags: #audio-smoothing #result-filtering

A Kotlin helper class that orchestrates on-device transfer learning using TFLite model signatures (train, infer, load). It encapsulates dataset loading, training loop, and model evaluation via TFLite interpreter signature runs. This pattern is reusable for any on-device training application, demonstrating how to perform incremental learning without a server.

Last analyzed: 2026-08-30 13:50:27.484982
Next check: 2026-09-29 13:50:27.457373
$ submit: