how to use pre-trained keras model in simulink

조회 수: 2 (최근 30일)
Hailin Ren
Hailin Ren 2019년 3월 8일
답변: Sivylla Paraskevopoulou 2022년 5월 9일
we have a pre-trained keras model and it works well in matlab when calling "importKerasNetwork" and also the "predict" function works well.
However, when I try to using the same function in the Matlab Function block in Simulink. The simulink could not work and throwed out an error "Error in default port dimensions function of S-function 'filename/control/MATLAB Function'. This function does not fully set the dimensions of output port 2"

답변 (1개)

Sivylla Paraskevopoulou
Sivylla Paraskevopoulou 2022년 5월 9일
The example Classify Sequence of Images in Simulink with Imported TensorFlow Network and the blog post Bringing TensorFlow Models into MATLAB can guide on how to predict with an imported TensoFlow model in Simulink.

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by