DAGNetwork showing no properties.

3 Ansichten (letzte 30 Tage)
faran
faran am 15 Mai 2020
Kommentiert: faran am 20 Mai 2020
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 Kommentare
Asvin Kumar
Asvin Kumar am 18 Mai 2020
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 am 18 Mai 2020
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Asvin Kumar
Asvin Kumar am 19 Mai 2020
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 Kommentar
faran
faran am 20 Mai 2020
Thank you Asvin. I installed 2019 for the other machine.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by