R-CNNを用いて物体検出を行いたいと考えています。
以下のCNNの層構造において
15層目のプロパティ、およびclassは以下のようになっています。
学習データのクラス名は以下のようになっています。
rcnn = trainRCNNObjectDetector(data, layers, options, 'NegativeOverlapRange', [0 0.3]);を処理している際、
"ニューラル ネットワークに学習データ内のオブジェクトを分類させるための学習を実行中"において
下記のようなエラーが出てしまいました。
エラー: trainNetwork (line 150)
層 15 のクラス名は、学習データのクラス名と一致しなければなりません。学習データのクラス名は categories(Y) で指定されます。ここで、Y は学習データのラベルです。
エラー: rcnnObjectDetector.train (line 239)
[net, info] = trainNetwork(dispatcher, layers, opts);
エラー: trainRCNNObjectDetector (line 280)
[detector, ~, info] = rcnnObjectDetector.train(trainingData, lgraphOrLayers, options, params);
エラー: Untitled_36 (line 16)
rcnn = trainRCNNObjectDetector(data, layers, options, 'NegativeOverlapRange', [0 0.3]);
上記のようなエラーが出てしまい、実行できません。どのように改善を行えばよいのでしょうか。
よろしくお願いいたします。
9 Comments
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_770201
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_770201
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_771447
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_771447
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_771490
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_771490
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_771845
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_771845
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_772006
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_772006
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_772080
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_772080
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_772233
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_772233
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_772234
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_772234
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_772355
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492314-r-cnn#comment_772355
Sign in to comment.