stanford-tensorflow-tutorials icon indicating copy to clipboard operation
stanford-tensorflow-tutorials copied to clipboard

03_logreg_starter.py could not download mnist (404 NOT found)

Open jmzhang18 opened this issue 7 years ago • 2 comments

I used Jupyter-Notebook to download mnist dataset with following code: mnist_folder = 'data/mnist' utils.download_mnist(mnist_folder)

This will cause 404 Not found issue.

In utils.py: download_mnist(path):

change: url = 'http://yann.lecun.com/exdb/mnist'

to

url = 'http://yann.lecun.com/exdb/mnist/'
just add "/" at the end, will solve my problem

jmzhang18 avatar May 25 '18 18:05 jmzhang18

For Windows, you might want to add this: download_url = os.path.join(url, filename).replace('\','/')

due to the os.path.join issues

minhchan11 avatar Sep 05 '18 07:09 minhchan11

For Windows, you might want to add this: download_url = os.path.join(url, filename).replace('','/')

due to the os.path.join issues

\ is an escape character so it's better to use: download_url = os.path.join(url, filename).replace('\\', '/')

const7 avatar Apr 04 '19 03:04 const7