# Conversion tool

**URL:** <https://forum.amebaiot.com/t/conversion-tool/3384>\
**Category:** AI\
**Tags:** evb-amb82, rtl8735b\
**Created:** [October 2, 2024, 10:26am UTC](https://forum.amebaiot.com/t/conversion-tool/3384 "2024-10-02T10:26:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harsh\_Raj](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/harsh_raj/32/2281_2.png) [@Harsh\_Raj](https://forum.amebaiot.com/u/Harsh_Raj)\
**Post date:** [October 2, 2024, 10:26am UTC](https://forum.amebaiot.com/t/conversion-tool/3384/1 "2024-10-02T10:26:07Z")

</div>

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](https://forum.amebaiot.com/uploads/short-url/lP4bfWPkQK3ulxVl8Cfyfsjt0Oe.zip) (1.9 KB)

---

<div class="post-metadata">

**Author:** ![rkuo2000](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/rkuo2000/32/1105_2.png) [@rkuo2000](https://forum.amebaiot.com/u/rkuo2000)\
**Post date:** [October 2, 2024, 11:46am UTC](https://forum.amebaiot.com/t/conversion-tool/3384/2 "2024-10-02T11:46:09Z")

</div>

#### Model training： [kaggle.com/rkuo2000/garbage-cnn](https://www.kaggle.com/code/rkuo2000/garbage-cnn)

1. pip install tensorflow==2.14.1
2. model.save(‘garbage\_cnn.h5’, include\_optimizer=False)

#### [AI Model Conversion](https://www.amebaiot.com/en/amebapro2-ai-convert-model/)

1. Download garbage\_cnn.h5 from [kaggle.com/rkuo2000/garbage-cnn](https://www.kaggle.com/code/rkuo2000/garbage-cnn) `Output`
2. Compress garbage\_cnn.h5 to garbage\_cnn.zip
3. Go to [Amebapro2 AI convert model](https://www.amebaiot.com/en/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](https://www.kaggle.com/datasets/asdasdasasdas/garbage-classification))
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  
 ![RTSP_GarbageClassification](https://us1.discourse-cdn.com/flex016/uploads/ameba/original/2X/9/9683c8911b96ed7d855fec375a29d597b55cf919.png)

---

<div class="post-metadata">

**Author:** ![Harsh\_Raj](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/harsh_raj/32/2281_2.png) [@Harsh\_Raj](https://forum.amebaiot.com/u/Harsh_Raj)\
**Post date:** [October 2, 2024, 4:19pm UTC](https://forum.amebaiot.com/t/conversion-tool/3384/3 "2024-10-02T16:19:58Z")

</div>

Issue resolved  
Thankyou so much

---

<div class="post-metadata">

**Author:** ![MJK](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/mjk/32/2487_2.png) [@MJK](https://forum.amebaiot.com/u/MJK)\
**Post date:** [April 7, 2025, 11:20am UTC](https://forum.amebaiot.com/t/conversion-tool/3384/5 "2025-04-07T11:20:41Z")

</div>

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);

---

<div class="post-metadata">

**Author:** ![KevinKL](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kevinkl/32/2632_2.png) [@KevinKL](https://forum.amebaiot.com/u/KevinKL)\
**Post date:** [April 24, 2025, 2:25am UTC](https://forum.amebaiot.com/t/conversion-tool/3384/6 "2025-04-24T02:25:36Z")

</div>

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](https://ameba-doc-arduino-sdk.readthedocs-hosted.com/en/latest/ameba_pro2/amb82-mini/Other_Guides/AI_Related_Guides/Customized%20AI%20Model%20Installation%20Guide.html)

Thank you.
