Regarding CIFAR10 training data

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 Commenti

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.
Thanks for the response. I have found this file now. It'll work if I just add it into the path. Thanks a lot.
Hi, could you help me with this I wasnt able to figure it out.
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
Hi Walter is there an email I could reach out to you?
@Varunikaa Thennarasan You can contact me by my profile, but I no longer give out my email address

Accedi per commentare.

Risposte (0)

Categorie

Prodotti

Tag

Richiesto:

il 30 Gen 2019

Community Treasure Hunt

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

Start Hunting!

Translated by