TIDL import utility not supported on BBAI?

212 views
Skip to first unread message

Manderson

unread,
Jan 2, 2020, 5:20:18 PM1/2/20
to BeagleBoard
Hi all,

I want to use the ML model import feature from the TI Processor SDK to be able to use TensorFlow network models with the TIDL API available on the BeagleBone AI, however, I can't find the tool in the Debian distro provided by BB. 

I see several TIDL model examples in /usr/share/ti/examples/tidl/test/testvecs/config/tidl_models but I should be seeing the import tool in /usr/share/ti/tidl/tidl_utils/test/testvecs/config/import

Will this import utility be coming soon? Has anyone found a workaround?

Thanks

Manderson

unread,
Jan 13, 2020, 8:25:24 PM1/13/20
to BeagleBoard
Update, didn't get to try it with the Debian image, but BBAI is now supported by TI's Processor SDK (v6.2), so I will try it on that platform soon.

Jason Kridner

unread,
Jan 13, 2020, 11:19:44 PM1/13/20
to beagl...@googlegroups.com
The tool should be at https://git.ti.com/cgit/tidl/tidl-utils/. We've
had a bit of confusion building it. I'll escalate to the TI Sitara
Analytics team. Here's where I got just now...

(git tag 99ff282fbc440a68170736e7b5de2ff5a2984386)

$ git clone https://git.ti.com/cgit/tidl/tidl-utils/
$ cd tidl-utils/src/importTool/modules/ti_dl/utils/caffeImport
$ sudo apt install -y protobuf-compiler libprotobuf-dev
$ export LINUXENV=oearm
$ export LINUX_BUILD_TOOLS=/usr/bin/arm-linux-gnueabihf-
$ export PROTOBUF_LIB_DIR=/usr/lib
$ export PROTOBUF_INC_DIR=/usr/include
$ export FLATBUFFERS_INC_DIR=/usr/include
$ export TF_LITE_GENERATED_PATH=/usr/include
$ protoc --proto_path=. --cpp_out=. caffe.proto
$ cd ../tfImport
$ mkdir proto_cc
$ source genProtoC.sh
$ cd ../onnxImport
$ mkdir onnx_cc
$ source onnxGenProto.sh
$ cd ../tidlModelImport
$ make
compiling tidl_tfLiteImport.cpp
tidl_tfLiteImport.cpp:76:30: fatal error: schema_generated.h: No such
file or directory
#include "schema_generated.h"

>
> Thanks
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/8906b7c2-bc0e-4d2c-a239-87b1fad3e78d%40googlegroups.com.

alvaro.n...@gmail.com

unread,
May 5, 2020, 11:12:37 AM5/5/20
to BeagleBoard

Hi!

I am dealing with the same error you showed in your post:  "fatal error: schema_generated.h: No such file or directory"

Were you able to solve it?

I cannot find the .h file in the tidlModelImport folder. 

Thanks in advance!

> To unsubscribe from this group and stop receiving emails from it, send an email to beagl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages