Giter Club home page Giter Club logo

code2k13 / cnn_circuit_python Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.18 MB

This repository contains code for running Convolutional Neural Networks (CNNs) on CircuitPython. It contains code to train models using Tensorflow on computers and convert them to CircuitPython.

Home Page: https://ashishware.com/2024/06/29/pipico_digit_classification_cnn/

License: Apache License 2.0

Python 61.32% Jupyter Notebook 38.68%
circuitpython convolutional-neural-networks edge-computing edgeai image-classification machine-learning rp2040 tinyml

cnn_circuit_python's Introduction

Running Convolutional Neural Networks on CircuitPython

The code in action

This repository contains code for running Convolutional Neural Networks (CNNs) on CircuitPython. It contains code to train models using Tensorflow on computers and convert them to CircuitPython.

This code was tested with CircuitPython 8 , the mpy file will not work with higher versions of CircuitPython

For more information, please visit: https://ashishware.com/2024/06/29/pipico_digit_classification_cnn/

Here's a table detailing the files and their functions:

File Name Description
code.py Main program that runs on your CircuitPython board. Copy this file to the root directory of the CircuitPython board.
mnist_clf.mpy Module that contains the converted model. Copy this to the /lib folder of the CircuitPython board.
mnist_clf.py Plain CircuitPython implementation of the above file. Does not load when imported in CircuitPython due to memory limitations on the Raspberry Pi Pico (not tested with other boards).
mnist_clf_pc.py A version of the converted model that can be tested and debugged on a normal PC. Uses a tiny subset of numpy features.
mnist_clf_template.py Template file used by training_and_export.ipynb notebook. Utilized during the generation or updating of mnist_clf.mpy.
libs_list.txt Contains a list of all libraries present in the /lib folder of the Raspberry Pi Pico during testing.
training_and_export.ipynb Jupyter notebook which contains code to train and export a CNN model to CircuitPython. A live version of the notebook can be found here: https://www.kaggle.com/code/finalepoch/image-classification-using-cnns-on-circuitpython

cnn_circuit_python's People

Contributors

code2k13 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.