Giter VIP home page Giter VIP logo

tflite-micro-sparkfun-edge-examples's Introduction

This repository has TfLite Micro examples specialized for the Sparkfun Edge.

The primary purpose here is to prototype how examples may be supported on a variety of targets without needing target-specific code to be added to the upstream Tensorflow repository.

This particular repository is not intended to be a supported location for Sparkfun Edge + TFLM integration.

Build Status

Build Type Status
Build (Linux) CI
Sync from tflite-micro Sync from tflite-micro

tflite-micro-sparkfun-edge-examples's People

Contributors

advaitjain avatar github-actions[bot] avatar kitsook avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tflite-micro-sparkfun-edge-examples's Issues

compile success, but flash fails

Hi all,
I tried to fix this problem several days, but I still cannot find the solution. Could someone help me? Thx in advance.
I use the Apple Os, and have installed all the tools required, such as python, make, git and so on. Here are my steps:

  1. clone this repo: git clone https://github.com/advaitjain/tflite-micro-sparkfun-edge-examples.git
  2. cd into the directory, and type: make TARGET=sparkfun_edge micro_speech
  3. during the make process, the arm compiler was downloaded success into the downloads directory.
  4. the process finished without any error and the result file was saved at gen/bin/micro_speech, also the libtflm.a.
  5. I prepared the OTA bin and Wired bin files according to the steps of the tutorial: https://codelabs.developers.google.com/codelabs/sparkfun-tensorflow#3, but with the offical AmbiqSuite SDK: https://github.com/sparkfun/AmbiqSuiteSDK. Because I found we dont have some tools, such as AmbiqSuite-Rel2.2.0/tools/*. Then I got some size warnings like:
    python tools/apollo3_scripts/create_cust_wireupdate_blob.py --load-address 0x20000 --bin micro_speech_ota.bin -i 6 -o micro_speech_wire --options 0x1
    Header Size = 0x60
    app_size 0x4f69a4 ( 5204388 )
    Image size bigger than max - Creating Split image
    Writing to file micro_speech_wire.bin
    Image from 0x0 to 0x48000 will be loaded at 0x20000
    Writing to file micro_speech_wire.bin
    Image from 0x48000 to 0x90000 will be loaded at 0x68000
    Writing to file micro_speech_wire.bin
    Image from 0x90000 to 0xd8000 will be loaded at 0xb0000
    Writing to file micro_speech_wire.bin
    Image from 0xd8000 to 0x120000 will be loaded at 0xf8000
    Writing to file micro_speech_wire.bin
    Image from 0x120000 to 0x168000 will be loaded at 0x140000
    Writing to file micro_speech_wire.bin
    Image from 0x168000 to 0x1b0000 will be loaded at 0x188000
    Writing to file micro_speech_wire.bin
    Image from 0x1b0000 to 0x1f8000 will be loaded at 0x1d0000
    Writing to file micro_speech_wire.bin
    Image from 0x1f8000 to 0x240000 will be loaded at 0x218000
    Writing to file micro_speech_wire.bin
    Image from 0x240000 to 0x288000 will be loaded at 0x260000
    Writing to file micro_speech_wire.bin
    Image from 0x288000 to 0x2d0000 will be loaded at 0x2a8000
    Writing to file micro_speech_wire.bin
    Image from 0x2d0000 to 0x318000 will be loaded at 0x2f0000
    Writing to file micro_speech_wire.bin
    Image from 0x318000 to 0x360000 will be loaded at 0x338000
    Writing to file micro_speech_wire.bin
    Image from 0x360000 to 0x3a8000 will be loaded at 0x380000
    Writing to file micro_speech_wire.bin
    Image from 0x3a8000 to 0x3f0000 will be loaded at 0x3c8000
    Writing to file micro_speech_wire.bin
    Image from 0x3f0000 to 0x438000 will be loaded at 0x410000
    Writing to file micro_speech_wire.bin
    Image from 0x438000 to 0x480000 will be loaded at 0x458000
    Writing to file micro_speech_wire.bin
    Image from 0x480000 to 0x4c8000 will be loaded at 0x4a0000
    Writing to file micro_speech_wire.bin
    Image from 0x4c8000 to 0x4f69a4 will be loaded at 0x4e8000
  6. Anyway, the wired bin is generated successfully, then I used the python script to flash the Wired bin file to my SparkFun Edge Board, according to the tutorial: https://codelabs.developers.google.com/codelabs/sparkfun-tensorflow#5, but I was failed with no Response error.
  7. I think I operated correctly when pressing and releasing the buttons, since I successfully flash the example bin file from the offical AmbiqSuite SDK BSP repo: https://github.com/sparkfun/SparkFun_Apollo3_AmbiqSuite_BSPs/tree/6398086a1a87ddea78274521683ba3ad817bee82/edge/examples/tensorflow_micro_speech , accordind to the SparkFun tutorial: https://learn.sparkfun.com/tutorials/using-sparkfun-edge-board-with-ambiq-apollo3-sdk/example-applications
  8. I was surprised to find that the size of the generated bin file gen/bin/micro_speech here (~5.2Mb) is larger than the pre-compiled one in SparkFun_Apollo3_AmbiqSuite_BSPs repo (98Kb), which may result in the warning in step 6 and finally lead to the failure of flashing.
  9. I changed to the Ubuntu and Windows, but still cannot flash successfully.

ๅ›พ็‰‡

I donnt know how to search the solution, it has taken many days for me to find the answer.
Thx everyone.

Raspberry Pi pico tensor flow.

On 08/29/22 I created my src files with the following command.python3 tensorflow/lite/micro/tools/project_generation/create_tflm_tree.py
-e hello_world
-e micro_speech
-e magic_wand
-e person_detection
/tmp/tflm-tree

My repo https://github.com/develone/pico-tflmicro-090222 now provides a working hello_world..
-rw-r--r-- 1 devel devel 1781138 Sep 4 09:02 libpico-tflmicro.a
This uses pico-sdk https://github.com/develone/pico-sdk 1.4.0

What is my next step to get tensorflow for the Raspberry Pi Pico.
I did a pull request on https://github.com/raspberrypi/pico-tflmicro/pulls on an outdated build
https://github.com/raspberrypi/pico-tflmicro.
Is there a pico teneorflow some where on github?

How do I use this library

Hi,

I have a sparkfun edge lying around and have a hard time finding the right libraries to support it. This seems to be a repo that has it all, but I don't really understand how to get started with it.
Could anyone point me in the right direction please?

Best regards

Scripts for flashing binaries

Hello,

I was wondering where the scripts for flashing binaries to the Sparkfun Edge have gone after all Sparkfun Edge-related code and examples have been moved to this repo. In particular, I'm talking about the Python scripts mentioned in steps 4 and 6 of this old tutorial.

When TFLite micro was still included in the main TF repo, such scripts where located under tensorflow/lite/micro/tools/make/downloads/AmbiqSuite-Rel2.2.0/tools/apollo3_scripts, but now I can't find them anywhere. Where to find them then? Or has the way we deploy binaries to the Sparkfun Edge changed by any chance?

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.