tensorflow-onnx icon indicating copy to clipboard operation
tensorflow-onnx copied to clipboard

how change .tflite model to onnx and nwhc to nchw?

Open sdZ1123 opened this issue 2 years ago • 3 comments

Ask a Question

Question

Further information

  • Is this issue related to a specific model?
    Model name:

Model opset:

Notes

sdZ1123 avatar Mar 16 '23 10:03 sdZ1123

You convert tflite models via command line, for example:

python -m tf2onnx.convert --opset 16 --tflite tflite--file --output model.onnx

fatcat-z avatar Mar 17 '23 04:03 fatcat-z

You convert tflite models via command line, for example:

python -m tf2onnx.convert --opset 16 --tflite tflite--file --output model.onnx Thank you very much for your answer. But, I want to output the onnx model in nchw format,I input: python -m tf2onnx.convert --opset 16 --tflite tflite--file --output model.onnx --input_as_nchw It is still nhwc tflite file is mediapipe‘s pose_landmark_full.tflite.

sdZ1123 avatar Mar 17 '23 05:03 sdZ1123

Please refer to here for a try.

fatcat-z avatar Mar 17 '23 06:03 fatcat-z