{"id":20127246,"url":"https://github.com/code2k13/cnn_circuit_python","last_synced_at":"2026-04-17T13:06:27.944Z","repository":{"id":246607677,"uuid":"821628664","full_name":"code2k13/cnn_circuit_python","owner":"code2k13","description":"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.","archived":false,"fork":false,"pushed_at":"2024-06-29T11:52:42.000Z","size":2237,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T21:19:52.402Z","etag":null,"topics":["circuitpython","convolutional-neural-networks","edge-computing","edgeai","image-classification","machine-learning","rp2040","tinyml"],"latest_commit_sha":null,"homepage":"https://ashishware.com/2024/06/29/pipico_digit_classification_cnn/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code2k13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-29T02:12:45.000Z","updated_at":"2024-12-11T16:57:11.000Z","dependencies_parsed_at":"2024-06-29T03:25:46.024Z","dependency_job_id":"66b4a6e7-e81f-4b44-be19-7742a433b1e6","html_url":"https://github.com/code2k13/cnn_circuit_python","commit_stats":null,"previous_names":["code2k13/cnn_circuit_python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/code2k13/cnn_circuit_python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code2k13%2Fcnn_circuit_python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code2k13%2Fcnn_circuit_python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code2k13%2Fcnn_circuit_python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code2k13%2Fcnn_circuit_python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code2k13","download_url":"https://codeload.github.com/code2k13/cnn_circuit_python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code2k13%2Fcnn_circuit_python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31930130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["circuitpython","convolutional-neural-networks","edge-computing","edgeai","image-classification","machine-learning","rp2040","tinyml"],"created_at":"2024-11-13T20:19:53.948Z","updated_at":"2026-04-17T13:06:27.908Z","avatar_url":"https://github.com/code2k13.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Running Convolutional Neural Networks on CircuitPython\n\n![The code in action](cnn_cp_demo.gif)\n\nThis 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.\n\n\u003e This code was tested with CircuitPython 8 , the mpy file will not work with higher versions of CircuitPython\n\nFor more information, please visit: https://ashishware.com/2024/06/29/pipico_digit_classification_cnn/\n\nHere's a table detailing the files and their functions:\n\n| **File Name**         | **Description**                                                                                                            |\n|-----------------------|----------------------------------------------------------------------------------------------------------------------------|\n| `code.py`             | Main program that runs on your CircuitPython board. Copy this file to the root directory of the CircuitPython board.        |\n| `mnist_clf.mpy`       | Module that contains the converted model. Copy this to the `/lib` folder of the CircuitPython board.                        |\n| `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). |\n| `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.     |\n| `mnist_clf_template.py` | Template file used by `training_and_export.ipynb` notebook. Utilized during the generation or updating of `mnist_clf.mpy`.  |\n| `libs_list.txt`       | Contains a list of all libraries present in the `/lib` folder of the Raspberry Pi Pico during testing.                       |\n| `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                       |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode2k13%2Fcnn_circuit_python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode2k13%2Fcnn_circuit_python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode2k13%2Fcnn_circuit_python/lists"}