Warning when loading a trained RCNN Object Detector from a .mat file

3 ビュー (過去 30 日間)
Daniel Tovbis
Daniel Tovbis 2018 年 12 月 8 日
回答済み: Yash 2024 年 12 月 24 日
Hello,
I have trained a fast RCNN Object Detector using a remote cluster computing service. I write the code on my machine then package it and send it to the service. The service is running MATLAB 2018a on what I believe is either a linux or mac based machine with the Neural Network Toolbox. My own machine is running MATLAB 2017b on Windows with the Neural Network Toolbox. This service returns the output of the training as a .mat file containing whatever arrays were left when the training finished, namely, a ground truth object, the array of training data, as well as of course the trained network.
When I try to load the .mat file, all the arrays load properly, except for the object containing the trained network.
The code I am using is simply
load('output.mat') %
This returns the warning:
Warning: While loading an object of class 'nnet.cnn.layer.ClassificationOutputLayer':
Reference to non-existent field 'ClassNames'.
Warning: While loading an object of class 'nnet.cnn.layer.ClassificationOutputLayer':
Reference to non-existent field 'ClassNames'.
Warning: While loading an object of class 'fastRCNNObjectDetector':
Struct contents reference from a non-struct array object.
If I attempt to open the FastRCNN object detector, all fields are empty, even though training completed successfully.
rcnn56alex =
fastRCNNObjectDetector with properties:
ModelName: ''
Network: []
RegionProposalFcn: []
MinObjectSize: []
Any advice would be appreciated, thank you very much.,
  2 件のコメント
sarmad
sarmad 2019 年 12 月 5 日
are you get the solution ,i have same problem ?
greeting
Daniel Tovbis
Daniel Tovbis 2020 年 4 月 1 日
I believe the problem was the versions of the toolbox were not compatible. My version could not load DAG networks.

サインインしてコメントする。

回答 (1 件)

Yash
Yash 2024 年 12 月 24 日
It appears that a Faster R-CNN model trained in one version of MATLAB may not be compatible with another version. Here is another MATLAB Answers post that states a different error message but highlights the same fundamental issue of training the Fater R-CNN model in one version of MATLAB and loading the obtained .MAT file in another.
This discrepancy might stem from structural changes implemented by MathWorks, where certain fields stored in the .MAT file may have been modified or removed in later versions. To address this, one potential solution is to train the model and subsequently load the .MAT file within the same version. Alternatively, upgrade to the latest release of MATLAB.

カテゴリ

Help Center および File ExchangeParallel and Cloud についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by