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

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)

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

Thank You Steven for the answer. I checked. I am having the R2020a release and also the Deep Learning Toolbox is installed.
Also checked - the input 'preprocessedTrainingData is a datastore array.
Yet, I get that error.
For information, I am only trying to recreate this example:
Object Detection Using YOLO v3 Deep Learning
Perhaps you can check the above example and tell me what I am missing out.
Thanks again for the help.
I am having the same problem Mohammed. I am trying to apply an example of a GAN in here (https://www.mathworks.com/help/deeplearning/ug/train-generative-adversarial-network.html)
I have the Deep Learning toolbox in Release 2020a. I uninstalled the toolbox and installed again just in case, but the problem persists.
I also have the issue and as above havethe Toolboxes installed and am using 2020a. Please advise...
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.
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 Deep Learning Toolbox in Help Center and File Exchange

Asked:

on 22 Nov 2020

Edited:

on 7 May 2021

Community Treasure Hunt

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

Start Hunting!