gitwtfhub

wtf is tflite-rocket?

gregordinary/tflite-rocket — explained in plain English

Analysis updated 2026-05-18

3C++Audience · developerComplexity · 5/5Setup · hard

TL;DR

A TensorFlow Lite plugin that speeds up object detection on Rockchip RK3588 boards by using their built-in NPU chip.

Mindmap

mindmap
  root((tflite-rocket))
    What it does
      NPU accelerated detection
      TensorFlow Lite delegate
      No proprietary toolkit
    Tech stack
      C++
      TensorFlow Lite
      Rockchip RK3588
    Use cases
      Frigate camera detection
      Multi camera throughput
      Embedded AI
    Audience
      Embedded developers
      Edge AI hobbyists

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Run object detection models faster on an RK3588 board's NPU instead of only the CPU.

REASON 2

Add NPU-accelerated detection to Frigate, a home security camera system.

REASON 3

Process multiple camera streams at once on embedded hardware without a proprietary toolkit.

REASON 4

Load an unmodified TensorFlow Lite model through a delegate plugin at runtime.

What's in the stack?

C++TensorFlow LiteRockchip RK3588

How it stacks up

gregordinary/tflite-rocketbong-water-water-bong/npu-gpu-cpucloudcompare/normals_hough
Stars333
LanguageC++C++C++
Last pushed2018-02-23
MaintenanceDormant
Setup difficultyhardhardmoderate
Complexity5/55/53/5
Audiencedeveloperresearcherresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · hard Time to first run · 1day+

Requires an RK3588 board with a specific mainline Linux driver, a separately built driver library, and a TensorFlow Lite model to test.

Wtf does this do

tflite-rocket lets certain small computer boards run AI object detection faster by using a special chip built into them, instead of relying only on the main processor. It specifically targets Rockchip RK3588 boards, which have a built-in NPU, a chip designed to speed up AI calculations. Normally, using that chip requires Rockchip's own proprietary software toolkit. This project lets you use the NPU through the open mainline Linux driver instead, without needing that proprietary toolkit. It works as a plugin, called a delegate, for TensorFlow Lite, a popular framework for running AI models on small devices. When an app using TensorFlow Lite loads this plugin, the plugin looks at the AI model it is asked to run and sends the parts it understands, mainly the image-processing steps used in object detection, to the NPU chip, while sending any parts it does not support to the regular processor instead. The README states this works with an unmodified AI model file, so an app does not need to be rewritten to take advantage of it, though some apps need a small adapter file to load the plugin correctly. The README walks through adding this support to Frigate, a popular home security camera system that watches for objects like people or vehicles in camera footage. According to the README's own benchmark numbers, using the NPU chip does not make a single detection much faster on its own, but it meaningfully increases how many camera streams can be processed at the same time, which is the situation Frigate is usually used in. The README reports the accuracy on the NPU is nearly identical to running the same detection on the regular processor. The README discloses that this project was built primarily by an AI coding assistant, with a person setting goals and providing access to the hardware, and describes it as a side project without guarantees of quality or ongoing updates. Building it requires an RK3588 board running a specific Linux driver, a sibling driver library built first, and a TensorFlow Lite model file to test against, so it is aimed at people already comfortable with embedded Linux and C++ builds.

Yoink these prompts

Prompt 1
Explain what a TensorFlow Lite delegate is and how tflite-rocket uses one for NPU acceleration.
Prompt 2
Walk me through building tflite-rocket and the rocket-userspace driver on an RK3588 board.
Prompt 3
How does tflite-rocket integrate with Frigate for camera-based object detection?
Prompt 4
What is the difference between the default and native_int8 quantization paths in this project?

Frequently asked questions

wtf is tflite-rocket?

A TensorFlow Lite plugin that speeds up object detection on Rockchip RK3588 boards by using their built-in NPU chip.

What language is tflite-rocket written in?

Mainly C++. The stack also includes C++, TensorFlow Lite, Rockchip RK3588.

How hard is tflite-rocket to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is tflite-rocket for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.