R-CNNを使った画像検出のプログラム
Ältere Kommentare anzeigen
https://jp.mathworks.com/help/vision/ref/rcnnobjectdetector-class.html
上記URLのサンプルコードをもとに
load('car.mat', 'car', 'layers')
deepleaning.imageFilename = fullfile(toolboxdir('vision'),'visiondata', ...
deepleaning.imageFilename);
options = trainingOptions('sgdm', ...
'MiniBatchSize', 32, ...
'InitialLearnRate', 1e-6, ...
'MaxEpochs', 10, ...
'Verbose', false);
rcnn = trainRCNNObjectDetector(deepleaning(1:10,:), layers, options, ...
'NegativeOverlapRange', [0 0.3]);
network = rcnn.Network;
layers = network.Layers;
rcnnFinal = trainRCNNObjectDetector(deepleaning, layers, options);
というコードを入力したのですが
警告: 変数 'car' が見つかりません。
> In Untitled2 (line 1)
警告: 変数 'layers' が見つかりません。
> In Untitled2 (line 1)
変数 "deepleaning" またはクラス "deepleaning.imageFilename" は未定義です。
エラー: Untitled2 (line 4)
deepleaning.imageFilename);
というエラーが出ました。
学習させたかったものは car.matにあるcarがついているラベルで そのラベルを貼るために使った画像は deepleaningというフォルダ内にあります。 画像データの名前は1.jpgといったように数字のみの名前です。
どこが間違っているのか 宜しければお教えくださいますと幸いです。
2 Kommentare
このようなエラーを解釈できるようになるため、2 時間程度で受けられるオンライン MATLAB 入門(無料)をお勧めします。
Chihiro Nagatomo
am 30 Jan. 2017
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!