HPS uses Tensorflow Lite for Microcontrollers.
The instructions for building a TfLM library are in the TfLM documentation. We use the person_detection_int8
example as our reference.
To update the version of tflm used:
make -f tensorflow/lite/micro/tools/make/Makefile generate_projects
Copy tensorflow/lite/micro/tools/make/gen/linux_x86_64/prj/person_detection_int8/make
into the third_party/tflm_gen
directory.
Update the README_VERSION.md
file to third_party/tflm_gen
explicitly identifying the TfLM version used.
Merge the Makefile changes, so that TfLM is built with the RISCV toolchain.
The litex_shim directory contains additional files to allow TfLM to work with the hps_soc.
In particular, it contains example data files for the pdti8 person detection model.