Skip to content
This repository was archived by the owner on Jan 11, 2022. It is now read-only.

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

Open
sky186 opened this issue Dec 6, 2019 · 2 comments

Comments

@sky186
Copy link

sky186 commented Dec 6, 2019

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
Copy link

merria28 commented Mar 9, 2020

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

@alexandre-mello-ISISE
Copy link

I algo get this error! Any updates?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants