Giter VIP home page Giter VIP logo

pico4ml-magic-wand's Introduction

Edge Impulse Example: stand-alone inferencing (Arducam Pico4ML)

This builds an exported impulse to a .uf2 file that can be dragged and dropped to Arducam Pico4ML.

Test use

Connect the Arducam Pico4ML to the PC using the micro-USB cable and make sure to force it to USB Mass Storage Mode by pressing and holding the BOOTSEL button. A window named RPI-RP2 will appear on the PC, just drag the bin/magic_wand.uf2 file to the RPI-RP2 window!

Recompile

1. Decompress the files

Unzip the C++ library generated by the Edge Impulse project and copy and overwrite it to the current directory

CMakeLists.txt file without copying

.
├─ bin
├─ CMakeLists.txt
├─ edge-impulse-sdk
├─ ICM20948
├─ LICENSE
├─ model-parameters
├─ pico_sdk_import.cmake
├─ README.md
├─ source
├─ tflite-model
└─ tool

2. Compile

  1. Create the build folder

    mkdir build && cd build
  2. Compile

    camke .. && cmake --build . --parallel

3. Write the .uf2 file

Connect the Arducam Pico4ML to the PC using the micro-USB cable and make sure to force it to USB Mass Storage Mode by pressing and holding the BOOTSEL button. A window named RPI-RP2 will appear on the PC, just drag the build/magic_wand.uf2 file to the RPI-RP2 window!

Data conversion

  1. go to the tool folder

  2. Install the python dependency library

    pip install -r requirements.txt
  3. Convert the data

    Convert the json file downloaded in the previous step to a png file

    python json2png.py --dataset wanddata.json
    

    Under the datasets folder you can see the converted png file

    datasets

pico4ml-magic-wand's People

Contributors

759401524 avatar aiwintermuteai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jdwbmc kcf7012

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.