Problem with cifar10 download

4 visualizaciones (últimos 30 días)
Biserka Petrovska
Biserka Petrovska el 18 de Sept. de 2017
Comentada: Walter Roberson el 18 de Feb. de 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?

Respuesta aceptada

Walter Roberson
Walter Roberson el 18 de Sept. de 2017
cd to a directory that you have write access to. You are probably currently in a directory where MATLAB was installed.
  2 comentarios
sheeza rafaqat
sheeza rafaqat el 18 de Feb. de 2018
how can we change current directory?? please help me out..i'm new in matlab
Walter Roberson
Walter Roberson el 18 de Feb. de 2018
The command to change current directory is
cd('The Directory Name Goes Here')

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Downloads en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by