DoanNguyenTrong / object-detection-tflite-cpp

#object detection #rb5 #qualcomm #hexagon #gpu #inference
19 stars 7 forks source link

Error when compile repo object-detection-tflite-cpp #1

Open tiensu opened 2 years ago

tiensu commented 2 years ago

Hi Doan, I cloned repo object-detection-tflite-cpp to my host machine (Laptop ubuntu 18). When I run ./compile.sh command, there is an error: image

If I clone and run on RB5 device, there is also an error: image

Could help me how to fix those errors? Thank you very much!

tiensu commented 2 years ago

I built tensorflow 2.6 on host machine, then copy to rb5 device. After that, I can compile app successfully on rb5. But when I run "./object-detector 0 /dev/video0" command, there new an error "free(): invalid pointer".

Can you help me how to solve this problem? Thank you!

tiensu commented 2 years ago

I figured out the reason of my problem is TF version. I switched to TF 2.1, and the error didn't display. But with TF 2.1, I can't build TF with bazel: "bazel build --config=elinux_aarch64 -c opt --copt -DMESA_EGL_NO_X11_HEADERS --copt -DEGL_NO_X11 tensorflow/lite/delegates/gpu:libtensorflowlite_gpu_delegate.so" There is an "ERROR: Config value elinux_aarch64 is not defined in any .rc file".

I also tried with latest version of TF, but it doesn't have download_dependencies.sh and build_aarch64_lib.sh file.

Which TF version did you use in this project?

DoanNguyenTrong commented 2 years ago
tiensu commented 2 years ago

Thank you! I will check again!

PVijayaGanesh commented 2 months ago

@tiensu @DoanNguyenTr

hexagon

How can i solve this issue... please help me with this

PVijayaGanesh commented 2 months ago

@tiensu @DoanNg hexagon1 uyenTrong

Please help me want i have to do...