Import a trained CNN from tensorflow into MATLAB

조회 수: 6 (최근 30일)
Vasu Sharma
Vasu Sharma 2022년 7월 28일
댓글: David Willingham 2022년 8월 4일
Hi, I am currently trying to import a trained CNN built in tensorflow into a workflow involving Matlab. The importTensorFlowNetwork function in Matlab, does not however allow importing a subclassed model.
I am looking for suggestions to solve this problem. I am thinking of creating a C executable that could later be imported in Matlab, but other efficient suggestions are also welcome. :)

답변 (1개)

David Willingham
David Willingham 2022년 7월 29일
Hi Vasu,
Models trained in TensorFlow using subclass API are currently not supported using the importTensorFlowNetwork function.
Is this model that you are trying to import one you have trained yourself or is it one from a paper?
David
  댓글 수: 2
Vasu Sharma
Vasu Sharma 2022년 8월 2일
The model is trained by one of my colleagues, so we have access to the code.
David Willingham
David Willingham 2022년 8월 4일
Given models that use the subclass API aren't currently supported by importTensorFlowNetwork, another option would be to try co-execution, which is where you have MATLAB call the model directly from TensorFlow. Here is an example of how to execute this: Image Classification in MATLAB Using TensorFlow.
Is this an option you could pursue?

댓글을 달려면 로그인하십시오.

카테고리

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