R-CNNを使った画像検出のプログラム
显示 更早的评论
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といったように数字のみの名前です。
どこが間違っているのか 宜しければお教えくださいますと幸いです。
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!