# Error Loading NN Model to AMB82 Mini Flash

**URL:** <https://forum.amebaiot.com/t/error-loading-nn-model-to-amb82-mini-flash/3644>\
**Category:** AI\
**Tags:** evb-amb82, rtl8735b\
**Created:** [December 25, 2024, 3:58am UTC](https://forum.amebaiot.com/t/error-loading-nn-model-to-amb82-mini-flash/3644 "2024-12-25T03:58:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clay](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@Clay](https://forum.amebaiot.com/u/Clay)\
**Post date:** [December 25, 2024, 3:58am UTC](https://forum.amebaiot.com/t/error-loading-nn-model-to-amb82-mini-flash/3644/1 "2024-12-25T03:58:44Z")

</div>

I followed the instructions on the website [How to apply your AI model – Realtek IoT/Wi-Fi MCU Solutions](https://www.amebaiot.com/en/amebapro2-apply-ai-model-docs/)  
copied/replaced the “.nb” file into the project folder.

* * *

For Windows users:

- `C:\Users\USERNAME\AppData\Local\Arduino15\packages\realtek\hardware\AmebaPro2\VERSION\libraries\NeuralNetwork\examples`
- Or a user-customized project folder containing the “.ino” file.

* * *

However, when I attempted to compile and selected the flash option, I encountered the following error:

* * *

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

## Compilation error: exit status 1

My code is  
ObjDet.modelSelect(OBJECT\_DETECTION, CUSTOMIZED\_YOLOV7TINY, NA\_MODEL, NA\_MODEL);  
and I have confirmed that `yolov7_tiny.nb` has been placed in the sketch folder.

Am I missing something?

---

<div class="post-metadata">

**Author:** ![Clay](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@Clay](https://forum.amebaiot.com/u/Clay)\
**Post date:** [December 25, 2024, 7:03am UTC](https://forum.amebaiot.com/t/error-loading-nn-model-to-amb82-mini-flash/3644/2 "2024-12-25T07:03:16Z")

</div>

I found the reason. You have to place it in the following folder in order to compile successfully.

C:\Users\AppData\Local\Arduino15\packages\realtek\hardware\AmebaPro2\4.0.8\libraries\NeuralNetwork\examples
