Convert the .pb to .onnx file from HandTracking project
Hi:
We would like to porting a handtracking project from below
handtracking/hand_inference_graph/frozen_inference_graph.pb
We known the limited about tensorflow but convert the model /data1/handtracking-master/hand_inference_graph/frozen_inference_graph.pb to /data1/handtracking-master/hand_inference_graph/frozen_inference_graph.onnx and refer from Doc "Onnx Converter/4 Tensorflow to ONNX" command at below
python /workspace/libs/ONNX_Convertor/optimizer_scripts/tensorflow2onnx.py /data1/handtracking-master/hand_inference_graph/frozen_inference_graph.pb /data1/handtracking-master/hand_inference_graph/frozen_inference_graph.onnx
How to solve this problem ?
Is tensorflow version releated?
The discussion has been closed due to inactivity. To continue with the topic, please feel free to post a new discussion.
Comments
@Lin Hsiehcheng
Hi Lin Hsiehcheng,
The TensorFlow version should not cause this wrong result.
Here are two points to show you.
1.
The Forezen_model.pb you provided contains a lot of preprocess and postporcess because preprocess and postporcess may have Tensorflow Op that cannot support tf2onnx-support-status (
https://github.com/onnx/tensorflow-onnx/blob/master/support_status .md#tf2onnx-support-statusthis link dead --> https://github.com/onnx/tensorflow-onnx/blob/master/support_status.md ), resulting in an unsuccessful conversion to onnx.2.
From our experience, you can try converting Forezen_model.pb into tflite format and then use our Kneron ToolChain docker after that.