Giter Club home page Giter Club logo

utensor's Introduction

uTensor

Introduction

uTensor is an extreme light-weight Deep-Learning Inference framework built on mbed and Tensorflow.

This project is under going constant development.

Requirement

  • Mbed CLI
  • Tensorflow
  • tf-node-viewer (Optional, for graph-weight extraction)
  • Mbed-os 5.6+ compatiable boards with at least 256kb of RAM
  • SD Card (Must be LESS than 32 GB)
  • SD Card reader for the board (Optional if built into the board)

Finding your target name

mbed detect to see which target is connect to the board

mbedls -l to list all supported targets

Configure

See mbed_app.json

Build Steps

  1. Clone the repository
  2. Run mbed deploy to download all referenced libraries
  3. Insert the prepared SD card to the board (see SD Card Preparation Section)
  4. Use mbed compile -t GCC_ARM -m NUCLEO_F767ZI --profile=./build_profile/release.json to build for ST NUCLEO F767ZI. Or, mbed compile -t GCC_ARM -m NUCLEO_F767ZI --profile=./build_profile/release.json -f to compile and flash

SD Card Preparation

The test data has to be loaded to the SD card for the default binary to run:

  1. Install python dependencies pip install -r requirements.txt (Note: may have to use pip3)
  2. Go to the [project]\TESTS\scripts folder
  3. Run python3 compileTestData.py. This will create [project]\TESTS\scripts\testData directory.
  4. Copy [project]\TESTS\scripts\testData to the root of your SD card.

Expected Output

The quantized weight and input data are stored in the SD. Setting the serial baud rate to 115200, here is what you should see:

Deep MLP on Mbed (Trained with Tensorflow)

running deep-mlp...
PASSED 0.00000000

prediction: 7

Currently, the binary runs the first sample of the MNIST dataset which contains a handwritten digit of number 7. Ths network architecture is a 3-layer Relu based MLP, as shown below:

alt text

The related Tensorflow training script please refer to the node-viewer project.

utensor's People

Contributors

knight-x avatar mbartling avatar neil-tan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.