Question/Issue:
[Describe the question or issue in detail]
The image classification model deployed on the ESP32 will report an error when run for the third time
Project ID:
[Provide the project ID]
827169
Context/Use case:
[Provide context or use case where the issue is encountered]
When deploying a sample project using ESP32, I can enter the main loop, but an error occurs during the third run
Steps Taken:
- [Step 1]
Complete the training of my own classification task in Edge Impulse and generate a C++ link library
- [Step 2]
Copy the generated library to the project at git clone GitHub - edgeimpulse/example-standalone-inferencing-espressif-esp32: Builds and runs an exported impulse locally (ESP IDF)
- [Step 3]
Modify the kTensorArenaSizein
4.[Step 4]
When the program is burned into the ESP32S3 for operation, the following error occurs
Environment:
- **Build Environment Details: ESP IDF 5.4.2
- **OS Version:Ubuntu 20.04
-
Edge Impulse Version (Firmware): โlatest version**
This is all the error messages
When I was looking at the document, I noticed that the feature in the document is a floating-point decimal, but mine is in hexadecimal. Could this be the issue
Hello @nova1231 first of all welcome to the Edge Impulse community!
Thanks for reporting the detailed issue and then the potential issue.
Let us know if that can fix your issue!
first of all,appreciate your reply .today i rebuild a new project of audio detect not image , it`s working correctly.here is the image of working.
i feel confused and want run image task finally.do you have any idea about this?
Hi, @nova1231 !
Floating-point decimal is correct type for images (itโs three bytes - R, G, B values - crammed into a float), no problem there.
While Iโm trying to reproduce the error, one thing to try is to change class names from Chinese to English. We donโt really test for anything except labels in English language.
1 Like
i have tested English label,but still meeting same question.as the image show
The difference is that this time it reported an error upon entering
@nova1231
I cannot access your project, it looks like it was deleted.
sorry i deleted the project unguarded. 832152 is the new image proect ID,still have same question.
Okay, so Iโm doing the testing using fresh installation of 5.1 ESP-IDF.
You can see 5.1 requirement here
version above might work, but not guaranteed, as not tested.
I found an issue with calloc/alloc, that was due Epressif adding more changes to release/5.1 branch.
Iโm making PR to fix this, but meanwhile you can
change
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 2, 1)
to
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
in
edge-impulse-sdk/porting/espressif/ei_classifier_porting.cpp of your project.
To summarize:
- Use ESP IDF 5.1
- Make the above change. Later the required change will be merged into our SDK and manual change will be not needed.
Let me know of it works!
i changed #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 2, 1) to #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0) and using idf 5.1.6 version. now ,it`s working.
If this issue is resolved in idf5.4 version, please let me knowใ