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: segmentation fault when model import using tidl tools

Part Number: TDA4VM

Tool/software:

Hello, I'm trying to import custom model using edgeai-tidl-tools.

My model looks llike below image.

And i got error message like this

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
root@5fcd978baa80:/home/root/examples/osrt_python/tfl# python3 tflrt_delegate.py -c
Running 1 Models - ['dimension_test']
Running_Model : dimension_test
delegate setting start
tidl_tools_path = /home/root/tidl_tools
artifacts_folder = ../../../custom_model/artifacts/dimension_test/
tidl_tensor_bits = 8
debug_level = 5
num_tidl_subgraphs = 16
tidl_denylist =
tidl_denylist_layer_name =
tidl_denylist_layer_type =
tidl_allowlist_layer_name =
model_type =
tidl_calibration_accuracy_level = 7
tidl_calibration_options:num_frames_calibration = 5
tidl_calibration_options:bias_calibration_iterations = 3
mixed_precision_factor = -1.000000
model_group_id = 0
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

1. How can i solve this error?

2. How can I find the "tidl_import_core.cpp" or "itdl_runtimes_import_common.cpp" or the orignal src file of "tidl_model_import_tflite.so"?

thank you.

  • Hi Yujin, 

    Thank you for providing the debug log in your original error. 

    In terms of solving the error, would you be able to provide the model you are running so we can try reproducing and investigating further on our end?

    In terms of source code, we do not offer most of the code for the TIDL libraries. However, I believe most of those files you can see reference version of in c7x-mma-tidl which is packaged in the RTOS sdk. 

    Best,

    Asha

  • Hi asha, 

    Thanks for your response.

    The model is 5305.models.zip.

    Actually, I was trying to import the original.tflite but got error. 

    So, I cut the model and found the smallest one which I started to get error.

    The model of above question is cut_model.tflite.

    Thanks.

    Yujin

  • Hi asha.

    Is there something going on?

    I'm still waiting for your response. 

    Thanks.

    Yujin

  • Hi Asha,

    I want to know what is the problem of the model importing. 

    The model is on above reply.

    If you find this, please let me know what the problem is or when you can investigate about error.

    Thanks.

    Yujin