Chin Huang

Results 89 comments of Chin Huang

The data format is NCHW in ONNX. We can convert a model to either NCHW or NHWC in Tensorflow. Please make sure the device is set to "CPU", by passing...

In that case, try --device CUDA. The model will have NCHW wherever possible.

We have tests with all ONNX model zoo models. Please be more specific with your issue. Is the conversion not working? or the inference not working, throwing exceptions? or the...

Currently ONNX supports NCHW only. That means the model and node inputs must be in NCHW so the operators can work according to the specs. In order to support NHWC,...

Sorry for the late response. The exported TF saved model has the output names as you see by adding a couple lines: ``` m = tf.saved_model.load(out_dir) print('loaded model outputs =...

The error seems coming from custom source code, not from this converter. Please provide complete onnx2tf.py and the onnx file if you want to get more help.

This looks like an issue for tf2onnx. Please report it here, https://github.com/onnx/tensorflow-onnx/issues

Please note the saved_model is persisted using the low-level API. So you need to use tf.saved_model.load(path_to_dir) to load, rather than the high level tf.keras.models.load_model('saved_model')

I just downloaded your onnx file and ran the following with no errors. ``` import onnx_tf import onnx import tensorflow as tf onnx_path = 'digits.onnx' model_path = 'digits_savedmodel' model =...