Code Monkey home page Code Monkey logo

embedded-ai-torch-to-tflite-on-esp32's Introduction

Embedded AI Torch to TFLite on ESP32

We provide an example to train a Conv model with Pytorch and convert to Tensorflow Lite (Micro) and then deploy it on ESP32-S3-DevKitC-1-N8R8.

Qucik start

You can play the notebook Open In Colab in Google Colab.

How does it work?

There is a gap between deep models and resource-limited devices. From Kb-level microcontroller to powerful Edge devices with hardware accelerator, the on-board resource varies. It requires model compression and lightweight model designs.

We take the deployment of a simple CNN model on ESP32 as an example. We implement a tiny CNN model with Pytorch and train it on MNIST for epochs, and then convert it to ONNX and then take ONNX-Tensorflow to perform conversion and full-integer quantization. The well-quantized model is exported to a .CC model file.

To deploy TFlite model to ESP32, we implement an inference program for ESP32-S3 and flash it into board with ESP-IDF.

(We will release this part soon)

embedded-ai-torch-to-tflite-on-esp32's People

Contributors

nanguoyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

neoxharsh

embedded-ai-torch-to-tflite-on-esp32's Issues

Inference program on ESP32-S3

"
To deploy TFlite model to ESP32, we implement an inference program for ESP32-S3 and flash it into board with ESP-IDF.

(We will release this part soon)
"

Is this still going to happen?

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.