Object Detection Using Deep LearningのスクリプトでtrainingLabels, testImages, testLabelsというものがありますがそれは事前にダウンロードしているCIFAR10Dataで既に定義されているのでしょうか?そうだとしたら自分のデータを読み込ませたいときはどう定義すればいいでしょうか?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Takashi Miyatsuji
am 25 Nov. 2016
Bearbeitet: Takuji Fukumoto
am 28 Nov. 2016
% Download CIFAR-10 data to a temporary directory cifar10Data = tempdir;
url = 'https://www.cs.toronto.edu/~kriz/cifar-10-matlab.tar.gz';
helperCIFAR10Data.download(url, cifar10Data);
% Load the CIFAR-10 training and test data. [trainingImages, trainingLabels, testImages, testLabels] = helperCIFAR10Data.load(cifar10Data);
Akzeptierte Antwort
Takuji Fukumoto
am 28 Nov. 2016
Bearbeitet: Takuji Fukumoto
am 28 Nov. 2016
RCNN学習用の関数trainRCNNObjectDetectorにかけるのでしたら、 下記リンクのように用意します。
説明にあるとおり「(imagedatastoreオブジェクトで指定した)画像のファイルパス」と「ラベル位置情報 [x,y,width,height]」から構成されています。
trainingImageLabelerのアプリケーションを利用すると、この型の学習用データを直接出力することができます。
画像全体をLabelされた画像として扱う場合sz=size(I)で画像サイズを取り出し、[0 0 sz(2) sz(1)]として利用することも できます。
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Find more on Image Data Workflows in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!