-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run the function interpreter->AllocateTensors()
unsuccess
#30
Comments
Hi @jiwenfei
|
@vikramdattu |
Hi @jiwenfei can you try the following:
|
@vikramdattu
|
and the core dump is
|
I have written the code as you note, but there is nothing changed. |
Hi @jiwenfei I converted the above model and tried to run. I am getting similar issues if not exact. There are few issues:
Please comment those out before running the code.
The model is not compatible with What you can do is quantise the model yourself with following options and try:
|
@vikramdattu
|
Hi @jiwenfei This particular OP is not implemented by tflite-micro in other data types. Probably, nobody came across it. Maybe just calling with data type int32_t will work. Please try.
You may want to contribute this back if it works to the repo: https://github.com/tensorflow/tflite-micro For stack overflow error, please increase the task stack and check. |
@vikramdattu |
It works well, after I update SUB and FLOOR_DIV ops implements as you said. |
Hi @jiwenfei does that mean, you are getting expected outputs as well? What FPS do you get with the solution? |
So I want connect two esp32 modules in seris. |
@vikramdattu Can you give me some suggestion to cutdown the invoke time for this movenet mobile? |
Hi @jiwenfei as I can see Few things
Also, I haven't tried to quantise the float model from here myself and have used the quantized int8 model provided by google (which might be optimised long time in the past). Maybe manually quantising this now, might result in better optimised model? Hope this helps. Let me know if I can help you in the process. |
OK,I will think and try. |
@jiwenfei in addition to above comment, can you please make sure:
Basically, let's check if the chip is running into the full performance mode. |
NOT Available while it is Octal mode |
Hi @vikramdattu
And my whole code is
|
@jiwenfei one loop of the function it seems is larger than the WDT configured and hence causing the issue. |
@vikramdattu
|
Hi @jiwenfei I missed your last message! Do you still face the issues? By the way, the |
It happened after the model invoked for 3 times. |
Hi @jiwenfei I have done changes in the following patch. Please check if you've done the similar: The code was running fine for multiple iterations. I am using IDF branch The crash above seems something which you should raise on tflite-micro site directly as it looks to be coming from common code. Would you please raise the issue there? This would yield some quick fix. |
@vikramdattu The last problem is caused by drawing pictures, like this ```
|
@jiwenfei that could mean that the camera_fb frame is smaller in size that that of width height provided to the function and it is trying to access outside buffer boundary. |
The result which run on colab coded by python is different from that run in esp32s3.
the python code is
and the result in colab is
|
Hi @jiwenfei
I think the input to be fed is expected to i8[]? |
Yes, I have modified code that ,It because of out of bound. |
While i disable esp-nn, like this some errors have be occurred
|
Hey, @jiwenfei this is because unoptimised kernels take huge time to process and hence task watchdog timer which is by default set to 5 seconds gets triggered. |
Hello @jiwenfei are you still looking into the issue or are willing to test the same? |
Because of low image quality and much work need to do for image quality correction, so we switched to a new solution by using rv1126 board |
@jiwenfei thanks for the heads up. For my reference, can you please share information about which camera did you use with ESP32-S3 and in which mode? (Resolution and the JPEG quality used, if images were captures as JPEG). |
ov2640, 192*192 ,rgb565 |
I want to launch the movenet model at my board esp32s3 korvo-2.
And i firstly change the pretrained ftfile to cc file by using the code
and my code is:
and monitor show
ths!
The text was updated successfully, but these errors were encountered: