[bug] importONNXNetwork fails to open file if path depends on "Add to Path" folder

2 vues (au cours des 30 derniers jours)
I added my folder "nnets" to path (from context menu) and tryed to import onnx network with:
%not working
net = importONNXNetwork('MNIST_99.29.onnx','OutputLayerType', 'classification','classnames',{'0', '1', '2', '3', '4', '5' ,'6', '7', '8', '9'});
MNIST_99.29.onnx is in "nnets" folder. I got error:
Error using onnxmex
Opening file 'MNIST_99.29.onnx' failed.
Error in nnet.internal.cnn.onnx.ModelProto (line 31)
ModelPtr = onnxmex(int32(FuncName.EdeserializeFromFile), filename);
Error in nnet.internal.cnn.onnx.importONNXNetwork (line 8)
m = nnet.internal.cnn.onnx.ModelProto(Filename);
Error in importONNXNetwork (line 53)
Network = nnet.internal.cnn.onnx.importONNXNetwork(ModelFile, varargin{:});
Error in MNIST_test (line 112)
net = importONNXNetwork('MNIST_99.29.onnx','OutputLayerType', 'classification','classnames',{'0', '1', '2', '3', '4', '5' ,'6', '7', '8', '9'});
Specifiing path helped:
%working
net = importONNXNetwork('nnets/MNIST_99.29.onnx','OutputLayerType', 'classification','classnames',{'0', '1', '2', '3', '4', '5' ,'6', '7', '8', '9'});
MATLAB 2018b, also tested on 2018a. Windows 10.

Réponse acceptée

Don Mathis
Don Mathis le 15 Nov 2018
This is a know limitation that is planned to be fixed in an upcoming ONNX support package release.
Thanks

Plus de réponses (0)

Catégories

En savoir plus sur Image Data Workflows dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by