arduino / arduino/ArduinoTensorFlowLiteTutorials

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

Đang mở
#21 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Jupyter Notebook
Star
270
Fork
122
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu với lệnh trong notebook Google Colab ML tạo ra model.h và sketch Arduino báo cáo cảnh báo căn chỉnh tensor_arena. Tái hiện quá trình build nhận dạng cử chỉ và đầu ra nối tiếp, sau đó xác minh rằng header mô hình được tạo đã được căn chỉnh chính xác và các cử chỉ được phân loại mà không có cảnh báo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
arduino, jupyter-notebook
Lĩnh vực
embedded-iot, machine-learning
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.