Yocto layer for the TensorFlow Lite interpreter with Python / C++.
- TensorFlow Lite guide
- Python quickstart
- TensorFlow Lite
- Google Coral
- Edge TPU runtime library (libedgetpu)
- Building TensorFlow Lite Standalone Pip
- Build TensorFlow Lite with CMake
- Building with only a Makefile - libedgetpu
Please note that it is not official support.
BSP | Build status |
---|---|
meta-raspberrypi | |
meta-riscv |
- framework
- python3-tensorflow-lite
Python3 interpreter - libtensorflow-lite
C++ API shared library - libedgetpu-max / libedgetpu-std
bitbake with libedgetpu
- python3-tensorflow-lite
- examples
- python3-tensorflow-lite-example
TensorFlow Lite Python image classification demo - tensorflow-lite-label-image
TensorFlow Lite C++ image classification demo - tensorflow-lite-minimal
TensorFlow Lite C++ minimal example
- python3-tensorflow-lite-example
- tools
- tensorflow-lite-benchmark
TFLite Model Benchmark Tool with C++ Binary
- tensorflow-lite-benchmark
# Clone repositories and oe-init-build-env
$ git clone git://git.yoctoproject.org/poky.git
$ git clone git://git.yoctoproject.org/meta-raspberrypi
$ git clone git://git.openembedded.org/meta-openembedded
$ git clone https://github.com/NobuoTsukamoto/meta-tensorflow-lite.git
$ source poky/oe-init-build-env build
# Add layer
$ bitbake-layers add-layer ../meta-openembedded/meta-oe/
$ bitbake-layers add-layer ../meta-openembedded/meta-python/
$ bitbake-layers add-layer ../meta-openembedded/meta-networking/
$ bitbake-layers add-layer ../meta-openembedded/meta-multimedia/
$ bitbake-layers add-layer ../meta-raspberrypi/
$ bitbake-layers add-layer ../meta-tensorflow-lite/
# Add the package to 'conf/auto.conf' file.
FORTRAN:forcevariable = ",fortran"
MACHINE ?= "raspberrypi4-64"
IMAGE_INSTALL:append = " python3-tensorflow-lite libtensorflow-lite"
# Build
$ bitbake core-image-weston
# Clone repositories and oe-init-build-env
$ git clone https://github.com/openembedded/bitbake.git
$ git clone https://github.com/openembedded/openembedded-core.git
$ git clone https://github.com/openembedded/meta-openembedded.git
$ git clone https://github.com/riscv/meta-riscv.git
$ git clone https://github.com/NobuoTsukamoto/meta-tensorflow-lite.git
$ source openembedded-core/oe-init-build-env build
# Add layer
$ bitbake-layers add-layer ../meta-openembedded/meta-oe/
$ bitbake-layers add-layer ../meta-openembedded/meta-python/
$ bitbake-layers add-layer ../meta-openembedded/meta-networking/
$ bitbake-layers add-layer ../meta-openembedded/meta-multimedia/
$ bitbake-layers add-layer ../meta-riscv/
$ bitbake-layers add-layer ../meta-tensorflow-lite/
# Add the package to 'conf/auto.conf' file.
FORTRAN:forcevariable = ",fortran"
MACHINE ?= "qemuriscv64"
IMAGE_INSTALL:append = " python3-tensorflow-lite libtensorflow-lite"
# Build
$ bitbake core-image-full-cmdline