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

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
Farah Sarwar 2019년 1월 30일
Thanks for the response. I have found this file now. It'll work if I just add it into the path. Thanks a lot.
Varunikaa Thennarasan
Varunikaa Thennarasan 2023년 12월 6일
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
Varunikaa Thennarasan
Varunikaa Thennarasan 2023년 12월 7일
Hi Walter is there an email I could reach out to you?
Walter Roberson
Walter Roberson 2023년 12월 8일
@Varunikaa Thennarasan You can contact me by my profile, but I no longer give out my email address

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

질문:

2019년 1월 30일

댓글:

2023년 12월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by