2

I have a deep learning model trained in matlab and it is available in .mat format, How can i use this file for prediction in python environment?

I tried scipy.io.loadmat(filename.mat) but getting some errors

Bill P
  • 3,622
  • 10
  • 20
  • 32
shri
  • 21
  • 2
  • 1
    so how about sharing those erros? maybe scipy.io.loadmat('filename.mat') ? – mattesyo Oct 01 '19 at 14:46
  • In it's current form, your question is too broad. Here is a possible duplicate, and also an example of a well structured question: [Export a neural network trained with MATLAB in other programming languages](https://stackoverflow.com/questions/15526112/export-a-neural-network-trained-with-matlab-in-other-programming-languages) – Wolfie Oct 02 '19 at 11:29

1 Answers1

0

One option for you might be to export the model from MATLAB to ONYX. From there, you should be able to use the result in any deep learning framework that supports ONYX, or move from from the ONYX representation to something supported in your framework of choice.

https://www.mathworks.com/help/deeplearning/ref/exportonnxnetwork.html

Alex Taylor
  • 1,402
  • 1
  • 9
  • 15