Open duchengyao opened 4 years ago
Looks like the onnx file doesn't pass the standard onnx checker, which is invoked by the onnx-tf prepare API.
You could just run onnx checker as below. If you see the same error, it means the onnx file is incorrectly constructed.
import onnx
model = onnx.load('assets/super_resolution.onnx')
onnx.checker.check_model(model)
I was running into a similar (perhaps the exact same) problem. If I remember correctly, my fix involved installing the current master branch on ONNX-TF instead of 1.7.0.
pip install git+https://github.com/onnx/onnx-tensorflow
When running OnnxTensorflowImport.ipynb
Python, ONNX, ONNX-TF, Tensorflow version
This section can be obtained by running
get_version.py
from util folder.