I am trying to run Edge AI Demo from /opt/edge_ai_apps.
I am running the demo with the following configuration:
title: "Object Detection Demo"
When I run this either using CPP or Python, the BB AI-64 gets stuck, terminal freezes and ask me to reload the browser running VS code. And, sometimes it just power-off.
I am using the image from here
Here is the image for stuck terminal
Please help and let me know where I am going wrong.
I tried the same configuration with the Image you shared
It works fine for me
Can you run the demo with -n option and share the log
sudo ./app_edgeai.py ../configs/object_detection.yaml -n
Rahul T R
Thanks for the reply.
I tried with option -n and here is the output. I get bitrate command not found error.
When I edit the python script ‘gst_wrapper.py’ and remove the bitrate=10000000 option. It crashes like earlier (see below)
When I change the output to:
I have also tried running from this repo here
It works fine for a model with input 320x320. As soon as I try to run for models largen than this (512x512 or 640x640) BB AI-64 crashes. It crashes without giving any error, just everything hangs and BB AI-64 reboots.
Can you please tell me which version of edge_ai_tools you are using?
I am using the one which shipped with the above mentioned image.
But, this problem looks consistent with running large models. I guess there is some memory management issue which I am not able to figure out.
Does it reboot without any errors?
If so, it’s a power connection issue.
The model draws up to 17-20 watts when running.
USB-C type 5W 3A is not enough.
I solved the problem by using a barrel jack 5V 5A.
If the model reboots for no reason, check the power source.
At the very least, the power should be at least 5V 4A for it to run stably.
Thank you very much. This solved the issue.
The power output was not enough from Laptop, I used a Type-C adapter 5V 3A and it worked. I will also order a power adapter barrel type 5V 5A.
I’m glad you found it helpful.
I also have TI’s DevKit board, SK-TDA4VM, so I checked the datasheet, and it says that the TDA4VM core alone consumes more than 15W.
The SK-TDA4VM supports USB-C PD, so it can support 5-20V 3A (up to 60W) to run the model, but the BBAI-64 only supports 5V 3A, so you may have power issues.
To run edgeai models on the BBAI-64, we recommend a barrel jack charger that supports 5V 4A or higher rather than USB-C.
I just received a 5V 4A barrel jack adapter (ordered 2 weeks ago) and will try it now.
Thanks for the information.