Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 2.21 KB

File metadata and controls

39 lines (29 loc) · 2.21 KB

影像分類 (Image Classification)


影像分類

Examples > AmebaNN > RTSPImageClassification


Garbage模型訓練與檔案轉換

required in kaggle for AmebaPro2

  1. pip install tensorflow==2.14.1
  2. model.save('garbage_cnn.h5', include_optimizer=False)
  1. Download garbage_cnn.h5 from kaggle.com/rkuo2000/garbage-cnn Output
  2. Compress garbage_cnn.h5 to garbage_cnn.zip
  3. Go to Amebapro2 AI convert model, fill up your E-mail
  4. Upload garbage_cnn.zip
  5. Upload one (.jpg) test picture (EX. glass100.jpg from Garbage dataset)
  6. Email will be sent to you for the link of network_binary.nb

程式範例:RTSP_GarbageClassification.ino

  1. click the recieved Email link to download network_binary.nb
  2. create NN_MDL folder in SDcard, save network_binary.nb under NN_MDL folder, and rename it to imgclassification.nb
  3. plugin SDcard back to AMB82-MINI
  4. modify Sketch RTSP_GarbageClassification.ino
    1. modify SSID and PASSWD
    2. modify imgclass.modelSelect (change DEFAULT_IMGCLASS to CUSTOMIZED_IMGCLASS)
  5. burn code into board AMB82-MINI, and run it with VLC player streaming