TensorFlow Lite - Hello World

材料准备

  • AmebaD [AMB21 / AMB22 / AMB23 / BW16] x 1

  • LED x 1

范例准备

流程

从以下网址下载TensorFlow Lite for Microcontrollers的Ameba版本 https://github.com/ambiot/ambd_arduino/tree/master/Arduino_zip_libraries

请按照以下说明进行安装操作 https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries

确保在以下位置找到patch文件并安装 https://github.com/ambiot/ambd_arduino/tree/master/Ameba_misc/

Open the example, "Files" "Examples" “TensorFlowLite_Ameba” “hello_world”.

1

上传代码并在上传完成后按Ameba上的重置按钮。
将LED连接到引脚10并接地,确保极性正确。您应该看到LED快速淡入和淡出。
在Arduino串行绘图仪中,您可以看到Tensorflow模型的输出值以图形方式绘制,它应该类似于正弦波。

2

程式码说明

有关TensorFlow Lite for Microcontrollers的更多信息,请参考以下网址: https://www.tensorflow.org/lite/microcontrollers