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 anddoes 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?
Best Answer