Solve slow when downloading data such as MNIST Pytorch dataset download

Solve Pytorch data sets, such as data download slow MNIST

Data is the soul of the depth of learning, and in the download data sets, downloading the half stalled ......

Then look at the download directory you set in MNISTthere will be two folders: processedandrawHere Insert Picture Description

Open rawcan see already downloaded the data set.

In fact MNIST data set is small, direct access to the site, manually download the data set: http://yann.lecun.com/exdb/mnist/

The four downloaded .gzcopy files to a rawfolder (can not unpack).

Here Insert Picture Description
Here Insert Picture Description
Such data can be regarded as a good download. Then DOWNLOAD_MNIST= False, you can run the program directly.
Here Insert Picture Description

Published 16 original articles · won praise 113 · Views 4882

Guess you like

Origin blog.csdn.net/qq_43280818/article/details/104241326