zhenhuaw-me / tflite2onnx

Convert TensorFlow Lite models (*.tflite) to ONNX.
https://zhenhuaw.me/tflite2onnx
Apache License 2.0
149 stars 26 forks source link

"NotImplementedError: This path has not been tried" Error #68

Closed Jonnyboyyyy closed 3 years ago

Jonnyboyyyy commented 3 years ago

I have been trying to convert BlitzNet from tflite to onnx. BlitzNet is provided in Tf, so i converted to tflite and now to onnx. On the process I get following error:

Comman line: tflite2onnx ./blitz_seg.tflite ./onnx/model_seg_tflite.onnx Empty tensor used, please double confirm your code path! Traceback (most recent call last): File "/home/juhyun/Tf/bin/tflite2onnx", line 8, in sys.exit(cmd_convert()) File "/home/juhyun/Tf/lib/python3.6/site-packages/tflite2onnx/convert.py", line 58, in cmd_convert convert(args.tflite_path, args.onnx_path) File "/home/juhyun/Tf/lib/python3.6/site-packages/tflite2onnx/convert.py", line 44, in convert model.convert(explicit_layouts) File "/home/juhyun/Tf/lib/python3.6/site-packages/tflite2onnx/model.py", line 39, in convert self.parse() File "/home/juhyun/Tf/lib/python3.6/site-packages/tflite2onnx/model.py", line 31, in parse g.parse() File "/home/juhyun/Tf/lib/python3.6/site-packages/tflite2onnx/graph.py", line 64, in parse op.parse() File "/home/juhyun/Tf/lib/python3.6/site-packages/tflite2onnx/op/resize.py", line 102, in parse raise NotImplementedError("This path has not been tried") NotImplementedError: This path has not been tried

I have tried not using command line, but same error. There is so little explanation of how to use tflite2onnx, so some explanation would be really thankful!

Screen Shot 2021-04-14 at 2 56 02 AM