Regarding CIFAR10 training data
Show older comments
Hi, I have downloaded CIFAR-10 using this url https://www.cs.toronto.edu/~kriz/cifar-10-matlab.tar.gz but helperCIFAR10Data.load(file path) is not working.
Following commands are mentioned in MATLAB help to download and use CIFAR-10 data for training but it is neither downloading directly nor picking up the downloaded file using above mentioned command. Am I using it wrong? How can I load the CIFAR10 data in my workspace?
cifar10Data = tempdir;
% I downloaded and saved the file in the directory which I used for above command
url = 'https://www.cs.toronto.edu/~kriz/cifar-10-matlab.tar.gz';
helperCIFAR10Data.download(url,cifar10Data);
[trainingImages,trainingLabels,testImages,testLabels] = helperCIFAR10Data.load(cifar10Data);
6 Comments
Walter Roberson
on 30 Jan 2019
Which release are you using?
In R2017b the file was in
fullfile(matlabroot,'examples', 'vision, 'main', 'helperCIFAR10Data.m')
from the Computer Vision toolbox.
by R2018b the file was in
fullfile(matlabroot,'examples', 'nnet', 'main', 'helperCIFAR10Data.m')
from the Deep Learning toolbox.
Farah Sarwar
on 30 Jan 2019
Varunikaa Thennarasan
on 6 Dec 2023
Hi, could you help me with this I wasnt able to figure it out.
Walter Roberson
on 6 Dec 2023
As of R2023a, the default behaviour is that the examples (and documentation) are not installed locally when you install MATLAB. When you use the command
openExample('deeplearning_shared/DeepLearningRCNNObjectDetectionExample')
and do not have documentation installed locally, then MATLAB reads files from the Mathworks servers. The names of the files as stored on the Mathworks servers are unique IDs that are not related to the file names they will become -- for example helperCIFAR10Data.m might be stored on the server as file 3FE13491B78F7FF1.txt (I think this is because there might be multiple files with the same name but different purposes, so it is important that the correct one be copied in.)
Once I had executed the openExample, on my system, the helper file was installed into
/Users/roberson/Documents/MATLAB/Examples/R2023b/deeplearning_shared/DeepLearningRCNNObjectDetectionExample/helperCIFAR10Data.m
Varunikaa Thennarasan
on 7 Dec 2023
Hi Walter is there an email I could reach out to you?
Walter Roberson
on 8 Dec 2023
@Varunikaa Thennarasan You can contact me by my profile, but I no longer give out my email address
Answers (0)
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!