python – notMNIST不能在TensorFlow Udacity课程中下载

python – notMNIST不能在TensorFlow Udacity课程中下载,第1张

概述我正在做Udacity TensorFlow课程,第一次练习: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/udacity/1_notmnist.ipynb OSX 10.11(El Capitan) Python 2.7 virtualenv安装TF 我收到一个错误: “例外:verifynot 我正在做Udacity TensorFlow课程,第一次练习: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/udacity/1_notmnist.ipynb

OSX 10.11(El CAPItan)
Python 2.7
virtualenv安装TF

我收到一个错误:

“例外:verifynotMNIST_large.tar.gz失败.你能用浏览器搞定吗?”

它找到了“小”文件,但不是“大”文件.感谢帮助.谢谢.

这是整个代码块:

>>> url = 'http://yaroslavvb.com/upload/notMNIST/'>>> >>> def maybe_download(filename,expected_bytes):...   """Download a file if not present,and make sure it's 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...

这是返回的内容:

>>> 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_downloadException: 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
解决方法 也面临同样的情况.

处理它并继续这是一件简单的事情.

There’s a size mismatch.

Just re-run the code with force=True,and
it works right Now!

如果您尝试手动下载它也将是好的.

如本主题所述:https://github.com/tensorflow/tensorflow/issues/1475

希望能帮助到你.

总结

以上是内存溢出为你收集整理的python – notMNIST不能在TensorFlow Udacity课程中下载全部内容,希望文章能够帮你解决python – notMNIST不能在TensorFlow Udacity课程中下载所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1197551.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-03
下一篇 2022-06-03

发表评论

登录后才能评论

评论列表(0条)

保存