This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: I am trying to import a pre trained model using TIDL(PSDKRA-7.2)

Part Number: TDA4VM

Hi All,

I am trying to import a pre-trained model using the TIDL import tool. I am facing the following issues.

Tensorflow-Lite model:

Import Config:

modelType = 3
#numParamBits = 8
quantizationStyle = 2
inputNetFile = ../../test/testvecs/models/public/tflite/face_detection/version-RFB-320_without_postprocessing.tflite
outputNetFile = "../../test/testvecs/config/tidl_models/tflite/tidl_net_version-RFB-320_without_postprocessing.bin"
outputParamsFile = "../../test/testvecs/config/tidl_models/tflite/tidl_io_version-RFB-320_without_postprocessing_"
inDataNorm = 1
inMean = 128 128 128
inScale = 0.0078125 0.0078125 0.0078125

Error:

TFLite Model (Flatbuf) File : ../../test/testvecs/models/public/tflite/face_detection/version-RFB-320_without_postprocessing.tflite
TIDL Network File : ../../test/testvecs/config/tidl_models/tflite/tidl_net_version-RFB-320_without_postprocessing.bin
TIDL IO Info File : ../../test/testvecs/config/tidl_models/tflite/tidl_io_version-RFB-320_without_postprocessing_
115
*** buffer overflow detected ***: out/tidl_model_import.out terminated
Aborted (core dumped)

Tensorflow Model:

Import Config:

modelType = 1
numParamBits = 8
quantizationStyle = 2
inputNetFile = "../../test/testvecs/models/public/tensorflow/RFB/saved_model.pb
outputNetFile = "../../test/testvecs/config/tidl_models/tensorflow/tidl_net_rfb.bin"
outputParamsFile = "../../test/testvecs/config/tidl_models/tensorflow/tidl_net_rfb"
inDataNorm = 1
inMean = 128 128 128

Error:

TF Model (Proto) File : ../../test/testvecs/models/public/tensorflow/RFB/saved_model.pb
TIDL Network File : ../../test/testvecs/config/tidl_models/tensorflow/tidl_net_rfb.bin
TIDL IO Info File : ../../test/testvecs/config/tidl_models/tensorflow/tidl_net_rfb
[libprotobuf ERROR google/protobuf/wire_format_lite.cc:629] String field 'tensorflow.FunctionDef.Node.ret' contains invalid UTF-8 data when parsing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.
ERROR: proto->ParseFromCodedStream proto file(../../test/testvecs/models/public/tensorflow/RFB/saved_model.pb)

------------------ Network Compiler Traces -----------------------------
successful Memory allocation
****************************************************
** ALL MODEL CHECK PASSED **
****************************************************

Could you please help me with this issue?

Thanks and Regards,

Aneesh