I can't use the function minibatchqueue. Maybe I don't know where to find the supporting function 'createBatchData'

조회 수: 6 (최근 30일)
In the passage, it says "Use the minibatchqueue function to split the preprocessed training data into batches with the supporting function createBatchData which returns the batched images and bounding boxes combined with the respective class IDs.
code is here:
mbqTrain = minibatchqueue(preprocessedTrainingData, 2,...
"MiniBatchSize", miniBatchSize,...
"MiniBatchFcn", @(images, boxes, labels) createBatchData(images, boxes, labels, classNames), ...
"MiniBatchFormat", ["SSCB", ""],...
"DispatchInBackground", dispatchInBackground,...
"OutputCast", ["", "double"]);
But I can't use it, because it says the function "createBatchData" is not defined.
So what is the supporting function createBatchData?

채택된 답변

Mahesh Taparia
Mahesh Taparia 2021년 4월 1일
Hi
The function createBatchData supporting function is present in the example of YOLO v3 object detctor. You can find it here. Place this function in the working folder as a separate file or place at the bottom of the training script.
  댓글 수: 1
泽宇 王
泽宇 王 2021년 4월 1일
Thanks a lot !
I looked for the supporting functions at the end of that passage before, but I didn't find it. Now I find it just there.
Thanks again, I finally can go on my studying.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by