- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在学习 Udacity TensorFlow 类(class),第一个练习:https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/udacity/1_notmnist.ipynb
OSX 10.11(埃尔卡皮坦)Python 2.7TF的virtualenv安装
我收到一个错误:
“异常:无法验证notMNIST_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_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
最佳答案
同样面临同样的情况。
处理它并继续是一件简单的事情。
There's a size mismatch.
Just re-run the code with force=True, andit works right now!
如果您尝试手动下载它也可以。
如本帖所述:https://github.com/tensorflow/tensorflow/issues/1475
希望对您有所帮助。
关于python - notMNIST 无法在 TensorFlow Udacity 类(class)中下载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35320056/
我正在学习 Udacity TensorFlow 类(class),第一个练习:https://github.com/tensorflow/tensorflow/blob/master/tensorf
我正在尝试使用 Tensorflow 实现一个具有修正线性单元和 1024 个隐藏节点的 1 隐藏层神经网络。 def accuracy(predictions, labels): return
看完this并参加类(class),我正在努力解决作业 1 ( notMnist) 中的第二个问题: Let's verify that the data still looks good. Disp
我是一名优秀的程序员,十分优秀!