필터 지우기
필터 지우기

Why does trained model work in MATLAB 2021 but not 2020?

조회 수: 4 (최근 30일)
Samuel Leeney
Samuel Leeney 2021년 11월 24일
댓글: Cris LaPierre 2022년 1월 19일
I have a model (initially converted from Tensorflow) which I trained in MATLAB 2021a.
I am now trying to run in 2020b and am getting the following error message:
Warning: While loading an object of class 'DAGNetwork':
Array indices must be positive integers or logical values.
> In classify_LT (line 2)
In run (line 2)
Dot indexing is not supported for variables of this type.
Error in DAGNetwork/get.NumInputLayers (line 173)
val = this.PrivateNetwork.NumInputLayers;
Error in DAGNetwork/predict (line 140)
if this.NumInputLayers == 1
I believe this may be an issue with the Deep Learning Toolbox for Tensorflow-Keras Models toolbox, but am not sure.
Code can be found here, too large to upload zipped.

답변 (1개)

Cris LaPierre
Cris LaPierre 2021년 12월 29일
I get the error message in R2020b, R2021a, R2021b, and R2022a prerelease.
If it is working in R2021a for you, do you have any add-ons or toolboxes installed there that are not installed in R2020b?
If you can't get it working, I would suggest contacting support: https://www.mathworks.com/support/contact_us.html
  댓글 수: 2
Cris LaPierre
Cris LaPierre 2022년 1월 13일
One suggestion I was given was ensuring that all layers in your network have names. They currently do not. Can you try that?
Cris LaPierre
Cris LaPierre 2022년 1월 19일
I have confirmed that this is a bug in R2020b that was fixed in R2021a. Can you update your R2020b to R2021a? If not, I suggest contacting support.

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

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by