Skip to content

Yocto layer for TensorFlow Lite interpreter with Python / C++.

License

Notifications You must be signed in to change notification settings

NobuoTsukamoto/meta-tensorflow-lite

Repository files navigation

meta-tensorflow-lite

Yocto layer for the TensorFlow Lite interpreter with Python / C++.

The official website is:

Reference

Available BSP

Please note that it is not official support.

BSP Build status
meta-raspberrypi Bitbake raspberrypi
meta-riscv Bitbake qemuriscv

Available recipes

Support version

Recipe Version
TensorFlow Lite v2.18.0
libedgetpu e35aed18fea2e2d25d98352e5a5bd357c170bd4d
FlatBuffers v23.5.26

How to

Quick start for the Raspberry Pi AArch64 (core-image-weston)

# 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

Quick start for the qemuriscv64

# 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

About

Yocto layer for TensorFlow Lite interpreter with Python / C++.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published