NotMNIST is not available in TensorFlow Udacity

I am doing the Udacity TensorFlow course, the first exercise: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/udacity/1_notmnist.ipynb

OSX 10.11 (El Capitan) Python 2.7 virtualenv installing TF

I get an error message:

"Exception: Failed to verifynotMNIST_large.tar.gz. Can you access it using a browser?"

It finds a "small" file, but not a "large" one. Appreciate the help. Thanks.

Here is the whole block of code:

>>> url = 'http://yaroslavvb.com/upload/notMNIST/'
>>> 
>>> def maybe_download(filename, expected_bytes):
...   """Download a file if not present, and make sure it the right size."""
...   if not os.path.exists(filename):
...     filename, _ = urlretrieve(url + filename, filename)
...   statinfo = os.stat(filename)
...   if statinfo.st_size == expected_bytes:
...     print('Found and verified', filename)
...   else:
...     raise Exception(
...       'Failed to verify' + filename + '. Can you get to it with a browser?')
...   return filename
... 

Here is what returns:

 >>> train_filename = maybe_download('notMNIST_large.tar.gz', 247336696)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 10, in maybe_download
Exception: Failed to verifynotMNIST_large.tar.gz. Can you get to it with a browser?
>>> test_filename = maybe_download('notMNIST_small.tar.gz', 8458043)
Found and verified notMNIST_small.tar.gz
+4
source share
2 answers

Also faced with the same situation.

It is a simple thing to handle this and continue.

.

force = True, !

, .

: https://github.com/tensorflow/tensorflow/issues/1475

, .

+1

( ?) Udacity.

https://discussions.udacity.com/t/not-able-to-load-the-dataset-for-assingment-1/160124

.

. notMNIST_large.tar.gz docker.

. "User-Agent" script.

, .

0

Source: https://habr.com/ru/post/1628153/


All Articles