NVIDIA / mxnet_to_onnx

MxNet to ONNX Exporter
Apache License 2.0
56 stars 12 forks source link

mxnet.base.MXNetError: [10:12:42] src/ndarray/ndarray.cc:1805: Check failed: fi->Read(data) Invalid NDArray file format #7

Open sky186 opened 4 years ago

sky186 commented 4 years ago

I use the same code to run mxnet resnet to onnx,but will get this error,I dont know why

mxnet.base.MXNetError: [10:12:42] src/ndarray/ndarray.cc:1805: Check failed: fi->Read(data) Invalid NDArray file format

code.py path='http://data.mxnet.io/models/imagenet/' [mx.test_utils.download(path+'resnet/18-layers/resnet-18-0000.params'), mx.test_utils.download(path+'resnet/18-layers/resnet-18-symbol.json'), mx.test_utils.download(path+'synset.txt')]

sym = './resnet-18-symbol.json'
params = './resnet-18-0000.params'
input_shape = (1, 3, 224, 224)

converted_model_path = onnx_mxnet.export_model(sym, params, [input_shape], np.float32, onnx_file, verbose=True #print node information data ,Output node is: softmax ) #this error

merria28 commented 4 years ago

I met the same error, do you find a solution?

alexandre-mello-ISISE commented 3 years ago

I algo get this error! Any updates?