Tflite Model Import_model.sh conversion ERROR

Which Khadas SBC do you use?

**VIM3 V14.**

Which system do you use? Android, Ubuntu, OOWOW or others?

**Ubuntu20.04**

Please describe your issue below:

**I have a problem when i try to convert my tflite 2 inputs model the model work corretcly on pc side below is my import script. The problem occur after converting last output layes.**
*$pegasus import tflite\ --model ${NAME}.tflite \ --inputs 'input.1 input.7' \ --input-size-list '1,640,640,3#1,640,640,3' \ --size-with-batch 'True#True' \ --output-model ${NAME}.json \ --output-data ${NAME}.data \ --outputs '509 513 517 521'*

Post a console log of your issue below:


**D Convert layer conv_2d
D Convert layer dequantize
D Convert layer conv_2d
D Convert layer conv_2d
D Convert layer dequantize
D Convert layer conv_2d
D Convert layer conv_2d
D Convert layer dequantize
D Convert layer conv_2d
D Convert layer conv_2d
D Convert layer dequantize
Traceback (most recent call last):
  File "pegasus.py", line 131, in <module>
  File "pegasus.py", line 112, in main
  File "acuitylib/app/importer/commands.py", line 224, in execute
  File "acuitylib/vsi_nn.py", line 122, in load_tflite
  File "acuitylib/vsi_nn.py", line 709, in generate_inputmeta
  File "acuitylib/app/console/inputmeta.py", line 119, in generate_inputmeta
IndexError: list index out of range
[24800] Failed to execute script pegasus**

Hello @adiKhan12

Please provide your model, I will check from my side.

I can also suggest you to try using TFLite delegate for VIM3 also, you can follow the usage guidance
https://docs.khadas.com/products/sbc/vim3/npu/vx-tflite

Regards.

hello @Electr1 I would love to try TFLite delegate but i need converted model in .pb format because i converted many models and has good knowledge here. Here is my tflite model please check : centertrack.tflite - Google Drive