Error when loading neural network (only when using "dbstop if error")
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm trying to load a neural network that I save after training using:
save netTwoStreamNW7
I'm loading the network using:
netstruct = load('netTwoStreamNW7');
net = netstruct.netTwoStreamNW7;
This loads the network as a struct with the DAGNetwork as a field. This works fine and the network does well. However, when debugging the rest of the code, I decided to use
dbstop if error
in order to be able to look at some variables when an error was caused. The problem is that this causes my code to error when using the previously working load-function, saying:
Error using matlab.io.datastore.ImageDatastore/set.Labels (line 310)
Argument 'numel' must be followed by a nonnegative real scalar integer.
Error in sortbyprediction (line 42)
netstruct = load('netTwoStreamNW7');
This error does not make any sense to me, since I'm not using an ImageDatastore at all in my code (only during training). How do I solve this problem? Is there an alternative way to load the network without getting this error?
Réponses (0)
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!