commit | 8c1f6ee68f27ad21726862949ab8dabc58774070 | [log] [tgz] |
---|---|---|
author | Alex Van Damme <atv@google.com> | Wed Jul 26 16:17:06 2023 -0700 |
committer | Alex Van Damme <atv@google.com> | Mon Aug 07 11:26:47 2023 -0700 |
tree | a6b6eefb0012978ea393d6a22d92e063c08a8554 | |
parent | 36ca2056a27d6810fcf1698ba4ee7a6002822456 [diff] |
TFLM Person Detection - Add WORKSPACE imports for Tensorflow Lite for Microcontrollers, some python support repos, and patches to build for Kelvin. - Add a sample application that executes the sample person detection model on a fixed input. Change-Id: Iee176e48b5316758c610b4a72a00e9ee041a4537
This project contains the BSP to build the SW artifact that can run on the Kelvin core, and integrated as part of the Shodan repository.
The project supports two build systems -- Bazel and CMake -- for OSS integration reasons. Bazel is used by TFLM flow, while CMake is the build system for IREE.
If you get this project from Project Shodan manifest, you are all set. If not, you need to have following projects as well to build the project successfully.
<dir>/cache/toolchain_kelvin
This project needs to be at <dir>/sw/kelvin
.
The project uses Bazel 5.1.1, to align with OpenTitan build system requirements.
bazel build //...
To run the unit tests (with the kelvin_sim ISS)
bazel test --test_env=ROOTDIR=${ROOTDIR} //...
TODO: Add CMake flow
The binaries can be simulated with the kelvin simulator, located at <dir>/sim/kelvin
.
sim_kelvin <elf location>
Load the generated .bin
binaries to the FPGA emulator/Renode simulator.