Open sky186 opened 4 years ago
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
I met the same error, do you find a solution?
I algo get this error! Any updates?
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')]
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