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
- pip install tensorflow==2.14.1
- model.save(‘garbage_cnn.h5’, include_optimizer=False)
AI Model Conversion
- Download garbage_cnn.h5 from kaggle.com/rkuo2000/garbage-cnn
Output
- Compress garbage_cnn.h5 to garbage_cnn.zip
- Go to Amebapro2 AI convert model, fill up your E-mail
- Upload garbage_cnn.zip
- Upload one (.jpg) test picture (EX. glass100.jpg from Garbage dataset)
- Email will be sent to you for the link of
network_binary.nb
Example code:RTSP_ImageClassification.ino
- click the recieved Email link to download
network_binary.nb
- create NN_MDL folder in SDcard, save network_binary.nb under NN_MDL folder, and rename it to
imgclassification.nb
- plugin SDcard back to AMB82-MINI
- modify Sketch RTSP_GarbageClassification.ino
- modify SSID and PASSWD
- modify imgclass.modelSelect (change DEFAULT_IMGCLASS to CUSTOMIZED_IMGCLASS)
- burn code into board AMB82-MINI, and run it with VLC player streaming
Issue resolved
Thankyou so much
Model (.nb file) missing or customized model name mismatch. Please include your customized model in sketch folder or rename your model if it is already in sketch folder.
exit status 1??? i have already put the nb file in sketch
ObjDet.modelSelect(OBJECT_DETECTION, CUSTOMIZED_YOLOV7TINY,NA_MODEL,NA_MODEL);
Hello
Kindly ensure that you have renamed your model according to the name stated in the installation guide. Customized AI Model Installation Guide — Ameba Arduino AIoT Documentation v1.1 documentation
Thank you.