YOLO V2 Training

1 回表示 (過去 30 日間)
Katarina Vuckovic
Katarina Vuckovic 2020 年 12 月 6 日
回答済み: Pratyush Roy 2020 年 12 月 23 日
I am following the instructions on MATLAB page to train a YOLO network: https://www.mathworks.com/help/vision/ug/train-an-object-detector-using-you-only-look-once.html
At this time, I am just try to reproduce the same network as in the example. I receive an error that the preprocessedValidationData f is not in the correct format in this part of the code:
options = trainingOptions('sgdm', ...
'MiniBatchSize',16, ....
'InitialLearnRate',1e-3, ...
'MaxEpochs',20,...
'CheckpointPath',tempdir, ...
'ValidationData',preprocessedValidationData);

回答 (1 件)

Pratyush Roy
Pratyush Roy 2020 年 12 月 23 日
Hi,
"preprocessedValidationData" is generated by the preprocessData function call on data and inputSize
preprocessedTrainingData = transform(augmentedTrainingData,@(data)preprocessData(data,inputSize));
preprocessedValidationData = transform(validationData,@(data)preprocessData(data,inputSize));
preprocessData is a supporting function that is defined above the references section in the doc page. So it has to be made sure that the supporting functions are defined in the same script so that the validation data can be generated properly.
Hope this helps!

カテゴリ

Help Center および File ExchangeRecognition, Object Detection, and Semantic Segmentation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by