Copyright (c) 2021 Antmicro
This repository, developed in collaboration between Antmicro and Google's TF Lite Micro team, contains sources, tests, Google colabs and other material which use TF Lite Micro and Renode to enable easily running TF Lite Micro demos.
.github/workflows
- GH actions filesgenerate_ipynb_files.yml
- generatingipynb
files frompy
sourcestest_examples.yml
- building and testing examples
examples
- scripts and tests for specific TensorFlow Lite examples
Clone the repository and submodules:
git clone https://github.com/antmicro/tensorflow-zephyr-vexriscv-examples
cd tensorflow-zephyr-vexriscv-examples
Export Zephyr configuration:
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
export ZEPHYR_SDK_INSTALL_DIR=/opt/zephyr-sdk
Install dependecies (tested on Ubuntu 18.04):
sudo ./install_dependencies.sh
Export Tensorflow path:
export TENSORFLOW_PATH=tflite-micro
Build the Hello World
demo with:
./build.sh hello_world
The resulting binaries can be found in the tensorflow/lite/micro/tools/make/gen/zephyr_vexriscv_x86_64_default/hello_world/build/zephyr
folder.
Build the Magic Wand
demo with:
./build.sh magic_wand
The resulting binaries can be found in the tensorflow/lite/micro/tools/make/gen/zephyr_vexriscv_x86_64_default/magic_wand/build/zephyr
folder.