Absolutely I can import them every time when I need. But it takes me about 20 mins. I just wondering whether there is a faster way or not.
How to save SeriesNetwork variables to file for quick loading next time?
2 次查看(过去 30 天)
显示 更早的评论
I am using 'importKerasNetwork' to import my keras models for next step in MATLAB. However, I have tens of thousands of small models.
Can I have an approach to save the loaded variables (SeriesNetwork objects) to a file like .mat, so that I could load those models faster?
I have tried to save the workspace directly. But MATLAB 'save' seems only support variables in 'double' style.
Any ideas? Thank you for any help!
采纳的回答
yanqi liu
2022-3-22
yes,sir,may be use save to get mat file for target variable,such as
warning off all
modelfile = 'digitsDAGnet.h5';
net = importKerasNetwork(modelfile)
save('net_for_load.mat', 'net')
d2 = load('net_for_load.mat');
d2.net
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Gaussian Process Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!