我不得不终止 Fashion_MNIST 下载,因为它下载速度非常慢。当我尝试再次下载它时,出现以下错误。我想我需要先删除较早的部分下载。我无法在我的Macbook中找到保存部分下载的文件夹。你能建议我在哪里可以找到 Mac OS 中的部分下载吗?代码import tensorflow as tffrom tensorflow import kerasfashion_mnist = keras.datasets.fashion_mnist(X_train_full, y_train_full), (X_test, y_test) = fashion_mnist.load_data()错误Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow_core/python/keras/datasets/fashion_mnist.py", line 59, in load_data imgpath.read(), np.uint8, offset=16).reshape(len(y_train), 28, 28) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/gzip.py", line 276, in read return self._buffer.read(size) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/gzip.py", line 482, in read raise EOFError("Compressed file ended before the "EOFError: Compressed file ended before the end-of-stream marker was reached
1 回答

SMILET
TA贡献1796条经验 获得超4个赞
我认为 tensorflow 正在尝试读取已经下载的数据集,为了再次下载而不是从磁盘读取,您可以从磁盘中删除损坏的文件
它们通常位于 ~/.keras/datasets/{name}
rm -rf ~/.keras/datasets/fashion-mnist/
添加回答
举报
0/150
提交
取消