Run face detection or body pose estimation on an Android or iPhone without sending video to a server.
Deploy the same trained AI model across Android, iOS, and Linux from a single C++ codebase.
Use TNN's text recognition demo to read printed or handwritten characters in photos directly on device.
Convert a model from another framework and benchmark it across CPU, GPU, and dedicated AI chip backends.
| tencent/tnn | zufuliu/notepad4 | multimc/launcher | |
|---|---|---|---|
| Stars | 4,631 | 4,633 | 4,625 |
| Language | C++ | C++ | C++ |
| Setup difficulty | hard | easy | easy |
| Complexity | 4/5 | 1/5 | 2/5 |
| Audience | developer | vibe coder | general |
Figures from each repo's GitHub metadata at analysis time.
Requires Android NDK or Xcode plus device-specific build configuration for each target platform.
TNN is a framework from Tencent that lets you run AI models on phones, computers, and servers. The problem it solves is this: AI models are usually trained on powerful computers in the cloud, but you often want them to run locally on a device, such as detecting faces in a camera feed on a phone without sending video to a server. TNN takes a trained model and runs it as fast as possible on whatever hardware is available. The framework supports many different types of processors and chips, including the standard CPU inside any phone, graphics chips (GPUs), and specialized AI chips made by companies like Huawei and Apple. This means the same AI model can be deployed across Android phones, iPhones, desktop computers, and servers, with the framework choosing the best available chip on each device to keep things fast. Tencent uses TNN in several of its own apps, including mobile QQ and the photo editing app Pitu. The kinds of tasks it handles include detecting faces in images, estimating body poses, reading text in photos (including Chinese characters at odd angles), and identifying objects in a scene. Demos for all of these are included in the repository with links to the model files. For developers, TNN accepts models in several common formats and provides tools to convert models from other frameworks. The library is written in C++ and includes example code for Android, iOS, and Linux. The README has a large compatibility table showing which demos work on which hardware backends. The full README is longer than what was shown.
A Tencent framework for running AI models on phones and computers at high speed, supporting CPUs, GPUs, and specialized AI chips across Android, iOS, and Linux, no cloud required.
Mainly C++. The stack also includes C++, Android, iOS.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.