I'm hoping someone can shed light on an error I'm encountering.
I have a trained Keras model that I have imported using:
net = importKerasNetwork(modelfile,'WeightFile',weights)
and I can make predictions on image patches with no errors from the command line with:
prediction = predict(net,imagePatch);
I can also save and load the network to make predictions.
However, when I try to use these lines a standalone .exe I run into errors that I don't know how to solve.
When I try loading the saved network to make predictions I encounter the following:
Warning: During load:
An invalid default object has been detected while loading a heterogeneous array of class nnet.cnn.layer.Layer.
An empty array of class nnet.cnn.layer.Layer will be returned.
Warning: While loading an object of class 'DAGNetwork':
Subscript indices must either be real positive integers or logicals.
I have some error catching in my code and the exception is:
"message": "Struct contents reference from a non-struct array object."
If I try to use importKerasNetwork instead of loading the saved network I get the following error:
"message": "The path \\mcrCache9.3\\optoma1\" is not a valid message catalog