Giter Club home page Giter Club logo

tinyml_tflm_lab's Introduction

This project is base on AAML_MCU_TinyML_Lab

Lab 1~4 Images Classification

Train the tf model with cifir10

  1. import train_with_cifar10.ipynb on colab
  2. run the code and it will start training
  3. after training , download resnet_v1_eembc.tflite & resnet_v1_eembc_quant.tflite

basic / cmsis

  1. import Lab1_2_3/basic_compile.ipynb(basic) or Lab3_4/cmsis_compile.ipynb (cmsis)
  2. upload the model (cmsis can only run with quant model)
  3. modify the model_path = "" to your model path
  4. run the code and it will compile the project
  5. after compile , download the .bin file

inference on F767ZI

  1. connect the F767ZI with your computer
  2. download termite
  3. open termite & set the baod rate 115200
  4. copy the .bin file into F767ZI
  5. see the output in termite

inference time with Lab 1~4 Images Classification & arena size

NUCLEO_F767ZI TFLM TFLM + int8 Quant TFLM + int8 Quant + cmsis
Time(us) 4,634,854 4,672,161 437,600
Arena Size(bytes) 201,696 54,452 55,108
DISCO_F746NG TFLM TFLM + int8 Quant TFLM + int8 Quant + cmsis
Time(us) 4,625,590 5,747,635 428,668
Arena Size(bytes) 201,696 54,452 55,108

Hw1 : Images Classification

  1. change the model architecture (add / remove some layer) in train_with_cifar10.ipynb
  2. compare the new model's(add/remove) Inference Time , Arena size , Model size with origin one in non-quant / quant / quant + CMSIS condition

you need to complete the following table

Method Time(us) Model size Arena Size
remove layer float - - -
remove layer quant - - -
remove layer quant + CMSIS - - -
origin float - - -
origin quant - - -
origin quant + CMSIS - - -
add layer float - - -
add layer quant - - -
add layer quant + CMSIS - - -

TODO complete the table

Method Time(us) Model size Arena Size
float - - -
quant - - -
quant + CMSIS - - -

tinyml_tflm_lab's People

Contributors

yui-arthur avatar

Watchers

 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.