How can I use importKerasNetwork function to Import a pretrained VGGFace Keras network and weights?
显示 更早的评论
How can I use importKerasNetwork function to Import a pretrained VGGFace Keras network and weights and use it for transfer learning?
采纳的回答
更多回答(1 个)
Maria Duarte Rosa
2019-7-9
0 个投票
Hi Ibrahim, you first need to install and run the python package as described in the GitHub page to obtain the model (including weights), then save this model as .h5 file. Once you have the model saved in .h5 you can use importKerasLayers to load the model into MATLAB.
4 个评论
Ibrahim Mohammed
2019-7-10
编辑:Ibrahim Mohammed
2019-7-10
Maria Duarte Rosa
2019-7-10
Fantastic! :)
Mariana
2020-5-2
Is it the same procedure to add a lstm in simulink?
Alex Zai
2020-12-2
Hello dears,
i have a few question. I want to use pretrained facenet model in guthub site, in the following link: https://github.com/nyoki-mtl/keras-facenet.
In this link already had trained model (facenet.h5) file. How can i import to Matlab it, please?
I tried to used any suggestion like that : importKerasNetwork, importKerasLayers and downloaded and saved in matlab location, then tried read (h5info). But i can't imported which i wanted that (facenet_keras.h5) to Matlab.
If any suggestion or someone can help me, please...
Thank you very much.
类别
在 帮助中心 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!