arduino / arduino/ArduinoTensorFlowLiteTutorials
xx bytes lost due to alignment. To avoid this loss, please make sure the tensor_arena is 16 bytes aligned
- 主要言語
- Jupyter Notebook
- スター
- 270
- フォーク
- 122
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
model.hを生成するGoogle Colab MLノートブックのコマンドと、tensor_arenaのアラインメント警告を報告するArduinoスケッチから始めます。ジェスチャー認識のビルドとシリアル出力を再現し、生成されたモデルヘッダーが正しくアラインメントされ、警告なしでジェスチャーが分類されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- arduino, jupyter-notebook
- 領域
- embedded-iot, machine-learning
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100