Self-Created Tools to convert ONNX files (NCHW) to TensorFlow/TFLite/Keras format (NHWC). The purpose of this tool is to solve the massive Transpose extrapolation problem in onnx-tensorflow (onnx-tf). I don't need a Star, but give me a pull request.
MIT License
662
stars
65
forks
source link
[docTR] Can it support from ONNX NHWC to TF NHWC? #626
Hello, I want to ask you a simple question, whether this repo supports convert from ONNX NHWC frormat,
Input shape: [dim_param: "unk__1287" , dim_value: 32 , dim_value: 128 , dim_value: 3 ]
to Tensoflow format. This model is from a third-party tensorflow export, but it only supports ONNX export.
I tried following the typical process, but exported input format is always like None, 128, 3, 32, while the expected is like None, 32, 128, 3.
Issue Type
Others
OS
Linux
onnx2tf version number
1.21
onnx version number
None
onnxruntime version number
None
onnxsim (onnx_simplifier) version number
None
tensorflow version number
2.x
Download URL for ONNX
https://github.com/mindee/doctr
crnn_mobilenet_v3_large.onnx.zip
Parameter Replacement JSON
Description
Hello, I want to ask you a simple question, whether this repo supports convert from ONNX NHWC frormat,
Input shape: [dim_param: "unk__1287" , dim_value: 32 , dim_value: 128 , dim_value: 3 ]
to Tensoflow format. This model is from a third-party tensorflow export, but it only supports ONNX export.I tried following the typical process, but exported input format is always like
None, 128, 3, 32
, while the expected is likeNone, 32, 128, 3
.if helphul, this is full code in Colab: