Conversion tool

I have a CNN model trained on tensorflow(2.14.0).
When I tried to convert the .h5 file to .nb file , I received the mail stating that “Using your h5 file can not export binary file”.
What should I do to fix it
application_zip.zip (1.9 KB)

Model training: kaggle.com/rkuo2000/garbage-cnn

  1. pip install tensorflow==2.14.1
  2. model.save(‘garbage_cnn.h5’, include_optimizer=False)

AI Model Conversion

  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

Example code:RTSP_ImageClassification.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
  5. modify SSID and PASSWD
  6. modify imgclass.modelSelect (change DEFAULT_IMGCLASS to CUSTOMIZED_IMGCLASS)
  7. burn code into board AMB82-MINI, and run it with VLC player streaming

Issue resolved
Thankyou so much