arduino / arduino/ArduinoTensorFlowLiteTutorials

xx bytes lost due to alignment. To avoid this loss, please make sure the tensor_arena is 16 bytes aligned

Aperta
#21 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Jupyter Notebook
Stelle
270
Fork
122
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I get this error message I get when I basically replicate the gesture recognition tutorial in [Arduino ML guide](https://blog.arduino.cc/2019/10/15/get-started-with-machine-learning-on-arduino/).

More importantly, though the arduino sketch builds, the model doesn't appear to be working, since the serial output doesn't report any gestures.

The workaround that worked for me was to change the header in the model.h encoding in the Google Colab ML notebook:

Original: !echo "const unsigned char model[] = {"

What worked for me: !echo "alignas(8)const unsigned char model[] = {"

The addition of alignas(8) fixed the issue in that the arduino sketch build is now working, and I am able to classify gestures.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia con il comando del notebook Google Colab ML che genera model.h e con lo sketch Arduino che segnala l’avviso di allineamento di tensor_arena. Riproduci la build per il riconoscimento dei gesti e l’output seriale, quindi verifica che l’header del modello generato sia allineato correttamente e che i gesti vengano classificati senza l’avviso.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
arduino, jupyter-notebook
Ambito
embedded-iot, machine-learning
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.