R-CNN stop sign detector code
46 views (last 30 days)
Euseb Martinez on 8 Nov 2016
I am trying understand the code for stop sign detector using cnn but i do no identify the "Command" in below sentencie of the program: "helperCIFAR10Data.download(url,cifar10Data); I look for help but it shows an error msg
More Answers (5)
Vignesh Ganapathiraman on 7 May 2018
Or you can just add the path at the start
Ali on 1 Nov 2017
Edited: Walter Roberson on 1 Nov 2017
The file is really at the directory provided by Walter Roberson, however the error message still there.
to overcome this problem, you may follow these steps:
- go to fullfile(matlabroot,'examples', 'vision', 'main', helperCIFAR10Data.m', find the file there and open it.
- inside 'helperCIFAR10Data.m' you will find 4 functions (download,load, loadBatchAsFourDimensionalArray, convertLabelsToCategorical). Copy each function to a new script and save them. you can give 'load' function to another name to avoid conflict with the same Matlab-builtin function.
- use the code provided on Mathworks website but remove the prefix'helperCIFAR10Data'
% Download CIFAR-10 data to a temporary directory
location = 'C:\Users\JICA\Desktop\Object Detection Using Deep Learning\';
url = 'https://www.cs.toronto.edu/~kriz/cifar-10-matlab.tar.gz';
% Load the CIFAR-10 training and test data.
[trainingImages, trainingLabels, testImages, testLabels] = Dataloading(location);
Each image is a 32x32 RGB image and there are 50,000 training samples.
hope this helps
ScientificProgrammerOwner on 2 Nov 2017
Just copy the 'helperCIFAR10Data.m' to your temporary directory, and then run. Good luck!
Saif Hussein on 28 Sep 2017
Edited: Walter Roberson on 19 Oct 2017
when l was to run the code in https://uk.mathworks.com/help/vision/examples/object-detection-using-deep-learning.html . l have that error below
Undefined variable "helperCIFAR10Data" or class "helperCIFAR10Data.load".
l have email the matlab team many times, they didn't solve the problem. l do believe the problem with matlab copy under Mac,
Nicola Gaburro on 2 Oct 2017
I'm having the same issue with Matlab R2017b When running the command
it shows the error
Undefined variable "helperCIFAR10Data" or class "helperCIFAR10Data.download". Seems like helperCIFAR10Data class is missing