Convert Matlab CNN to c# to be used in .net desktop app.

4 次查看(过去 30 天)
Is there a way to convert a convulutional neural network(CNN) that I have trained in Matlab to C# so that I can implement in a .net desktop app with visual studio?

采纳的回答

JESUS DAVID ARIZA ROYETH
yes
you can use the exportONNXNetwork function to take your neural network to other programs that support this same format
you can use Matlab Coder to generate C/C++ code
  2 个评论
Hardit Singh
Hardit Singh 2020-2-17
For the second thing you mentioned, how do I convert my network if the trained file is a .mat file?
JESUS DAVID ARIZA ROYETH
some like this:
load filename.mat %here put your real file name
filename = 'newnet.onnx';
exportONNXNetwork(yournet,filename)%in yournet put the variable than contains your neural net

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by