Question/Issue:
I have created a FOMO image classification model and exported it as an Arduino Library. I am following this tutorial. I have successfully compiled and uploaded the model to the board. Better still, I can see from the serial output from one of the examples (“nicla_vision_camera”) that the model can successfully classify the object I’m looking for, which is a box shape. That shows me things are very close to working properly!
The issue is that following this first classification, I get a stream of errors:
-
Image of errors for “static_buffer” example:
-
Image of errors for “nicla_vision_camera” example:
ERR: failed to allocate tensor arena
Failed to initialize the model (error code 1)
ERR: Failed to run classified (-6)
Project ID:
672920
Context/Use case:
I am getting the same errors whether I run the “static_buffer” example, or, the “nicla_vision_camera” example. Both throw the same errors above. However, the “nicla_vision_camera” example does run properly at least once before throwing those errors after detecting an object.
Upon pressing the board’s reset button (or setting fin 5 on the board to low), the classification model successfully runs again, but encounters the same issue upon detecting an object. Perhaps something needs to be included in the code to reset the board? Or, perhaps there is an issue with the memory allocation?
Steps Taken:
- Export arduino library and run per tutorial steps.
- Open Examples >> Examples from custom library >> Compile and run the “nicla_vision_camera.ino” or “static_buffer”. Note: I’ve made no edits to these other than to paste in the features to the static buffer example per instructions.
- See above photo… errors only for the static buffer example, but initial success followed by errors for the “nicla_vision_camera.ino” example.
Expected Outcome:
After successfully ID the object, I’d expect the serial output to return to it default state, again trying to run the model and find an object.
The only work around I currently have available is to trigger the reset pin, which seems clunky.
Actual Outcome:
Repeated errors as above
Reproducibility:
- [ X] Always
- [ ] Sometimes
- [ ] Rarely
Environment:
- Platform: Arduino Nicla Vision
- Build Environment Details: [Arduino IDE 2.3.4
- OS Version: Windows 11
- Edge Impulse Version (Firmware): In powershell typing edge-impulse-daemon --version gives “Edge impulse runner v1.30.6”
- Edge Impulse CLI Version: How do I determine this? How is it different from above?
- Project Version: 1.0.0 initial commit
- Custom Blocks / Impulse Configuration: No custom blocks
- Logs/Attachments: See attached screenshot
- Additional Information: None