I am not able to use the function minibatchqueue. I get the error as "Unrecognized function or variable 'minibatchqueue'."

18 views (last 30 days)
Part of the code:
mbqTrain = minibatchqueue(preprocessedTrainingData, 2,...
"MiniBatchSize", miniBatchSize,...
"MiniBatchFcn", @(images, boxes, labels) createBatchData(images, boxes, labels, classNames), ...
"MiniBatchFormat", ["SSCB", ""],...
"DispatchInBackground", dispatchInBackground,...
"OutputCast", ["", "double"]);
I am practicing YOLO V3 object detection using matlab. While I was trying out the code, I get this error
"Unrecognized function or variable 'minibatchqueue'."
I come to understand that minibatchqueue is an inbuilt function in matlab which is used to create mini-batches for deeplearning.
In that case why am I getting this error?
How do i fix it?
Thank You

Answers (1)

Steven Lord
Steven Lord on 22 Nov 2020
Edited: Steven Lord on 7 May 2021
According to the documentation page this function was introduced in Deep Learning Toolbox in release R2020b. Do you have this toolbox installed (you can check this using the ver function) and are you using release R2020b or later (ver will also give you this information.)
Also according to that documentation page, the first input (ds) must be a datastore array. Is preprocessedTrainingData a datastore?
[SL: edited to correct release information. The documentation says it was released in R2020b not R2020a as I had originally stated.]
  5 Comments
Catherine Cai
Catherine Cai on 4 Mar 2021
I have the same issue when trying the example of GAN (https://www.mathworks.com/help/deeplearning/ug/train-generative-adversarial-network.html). My matlab is R2020a version with Deep Learning Toolbox.
Steven Lord
Steven Lord on 7 May 2021
Going back, it appears I made a mistake. This function was introduced in release R2020b according to its documentation page not R2020a.

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing 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!