Problem with cifar10 download
4 views (last 30 days)
Show older comments
Biserka Petrovska
on 18 Sep 2017
Commented: Walter Roberson
on 18 Feb 2018
I'm trying to download cifar10 image set from web page with commands:
%%Download the CIFAR-10 dataset
if ~exist('cifar-10-batches-mat','dir')
cifar10Dataset = 'cifar-10-matlab';
disp('Downloading 174MB CIFAR-10 dataset...');
websave([cifar10Dataset,'.tar.gz'],...
['https://www.cs.toronto.edu/~kriz/',cifar10Dataset,'.tar.gz']);
gunzip([cifar10Dataset,'.tar.gz'])
delete([cifar10Dataset,'.tar.gz'])
untar([cifar10Dataset,'.tar'])
delete([cifar10Dataset,'.tar'])
end
but I get this info
Downloading 174MB CIFAR-10 dataset...
Error using websave (line 103)
Unable to open output file: 'cifar-10-matlab.tar.gz' for writing. Common reasons include that the file exists and
does not have write permission or the folder does not have write permissions.
Error in DownloadCIFAR10 (line 13)
websave([cifar10Dataset,'.tar.gz'],...
I can't find file cifar-10-matlab.tar.gz on my computer.
Previously I downloaded the image set, but I deleted everything - including subfolders, testdata etc.
How can I succesfully download cifar10 image set?
0 Comments
Accepted Answer
Walter Roberson
on 18 Sep 2017
cd to a directory that you have write access to. You are probably currently in a directory where MATLAB was installed.
2 Comments
sheeza rafaqat
on 18 Feb 2018
how can we change current directory?? please help me out..i'm new in matlab
Walter Roberson
on 18 Feb 2018
The command to change current directory is
cd('The Directory Name Goes Here')
More Answers (0)
See Also
Categories
Find more on Downloads in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!