DAGNetwork showing no properties.

조회 수: 3 (최근 30일)
faran
faran 2020년 5월 15일
댓글: faran 2020년 5월 20일
Hello everyone,
I have a model and I load in on two matlabs one 2019b and one 2018b on two systems. For loading the model on Matlab 2019b, it shows the layers and everything but for Matlab 2018b it shows "DAGNetwork with no properties." and there is no info for layers and connection.
Can anyone tell me what is the issue?!
Thanks
  댓글 수: 2
Asvin Kumar
Asvin Kumar 2020년 5월 18일
Can you please provide a way to reproduce this issue?
If your reproduction steps don't already include them, please provide details on how you're importing/loading and preferably what you're importing/loading too.
faran
faran 2020년 5월 18일
Hi Asvin,
I have the model as ".mat" file and load it like this:
Matlab 2019a:
>> NetworkModel = load(modelpath, '-mat');
>> NetworkModel.net
ans =
DAGNetwork with properties:
Layers: [52×1 nnet.cnn.layer.Layer]
Connections: [55×2 table]
MAtlab 2018b:
>> NetworkModel = load(modelpath, '-mat');
>> NetworkModel.net
ans =
DAGNetwork with no properties.
on 2018b I get this warning too:
Warning: While loading an object of class 'nnet.cnn.layer.ImageInputLayer':
Reference to non-existent field 'IsAverageImageMeanPerChannel'.
Warning: While loading an object of class 'nnet.cnn.layer.TransposedConvolution2DLayer':
Reference to non-existent field 'Cropping'.
Warning: While loading an object of class 'nnet.cnn.layer.TransposedConvolution2DLayer':
Reference to non-existent field 'Cropping'.
Warning: While loading an object of class 'nnet.cnn.layer.TransposedConvolution2DLayer':
Reference to non-existent field 'Cropping'.
Warning: While loading an object of class 'nnet.cnn.layer.TransposedConvolution2DLayer':
Reference to non-existent field 'Cropping'.
Warning: While loading an object of class 'DAGNetwork':
Dot indexing is not supported for variables of this type.

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

채택된 답변

Asvin Kumar
Asvin Kumar 2020년 5월 19일
Here are the explanations for the three different types of warnings you’re seeing.
Reference to non-existent field 'IsAverageImageMeanPerChannel'.
---> ‘IsAverageImageMeanPerChannel’ was introduced in R2019a [Link to a similar Question]
Reference to non-existent field 'Cropping'.
---> ‘Cropping’ was replaced by Croppingsize in R2019a [Link to Release Notes]
Dot indexing is not supported for variables of this type.
---> As for the dot indexing not being supported, this is a known behaviour. There was a change in the representation of Network Layers from R2018b to R2019a. Models created in R2018b should work fine in R2019a but the other way around will have issues.
  댓글 수: 1
faran
faran 2020년 5월 20일
Thank you Asvin. I installed 2019 for the other machine.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by