Skip to content
TensorFlow package for Cortex-M4 and Cortex-M7 CPUs with hardware floating point.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
libm Add double math library - weakly linked May 4, 2019
models Remove extra lines May 4, 2019
tensorflow @ b070944 Working build that compiles into the OpenMV Cam firmware now May 4, 2019
.gitignore Add library building script Apr 19, 2019
.gitmodules Select branch Apr 19, 2019
LICENSE Building a valid lib finally working May 4, 2019
README.md
libtf-mobilenet.h Building a valid lib finally working May 4, 2019
libtf.cc Building a valid lib finally working May 4, 2019
libtf.h Redo how the build system works Apr 30, 2019
make.py Update make.py May 4, 2019

README.md

tensorflow-lib

TensorFlow package for Cortex-M4 and Cortex-M7 CPUs with hardware floating point.

Instructions for building

  1. Clone this repo recursively:

    git clone --recursive https://github.com/openmv/tensorflow-lib.git
    
  2. Run these commands:

    sudo apt-get remove gcc-arm-none-eabi
    sudo apt-get autoremove
    sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
    sudo apt-get update
    sudo apt-get install gcc-arm-embedded
    sudo apt-get install libc6-i386
    
  3. In /, do:

    ./make.py
    

Prebuilt Files

You can find libtf pre-built in the lib folder for the OpenMV Cam 1/2/cortex-m4 and OpenMV Cam 3/4/cortex-m7. Additionally, the smallest version of MobileNet V1 is included too.

If you'd like to run larger MobileNet V1 models you can download them from here and then you just need to do xxd -i model.tflite > model.c to convert the model to a c file. Finally, you will then need to manually fix variable types in the c file afterwards to make the c file compatible with our header file.

You can’t perform that action at this time.