我不得不終止 Fashion_MNIST 下載,因?yàn)樗螺d速度非常慢。當(dāng)我嘗試再次下載它時(shí),出現(xiàn)以下錯(cuò)誤。我想我需要先刪除較早的部分下載。我無(wú)法在我的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()錯(cuò)誤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貢獻(xiàn)1796條經(jīng)驗(yàn) 獲得超4個(gè)贊
我認(rèn)為 tensorflow 正在嘗試讀取已經(jīng)下載的數(shù)據(jù)集,為了再次下載而不是從磁盤(pán)讀取,您可以從磁盤(pán)中刪除損壞的文件
它們通常位于 ~/.keras/datasets/{name}
rm -rf ~/.keras/datasets/fashion-mnist/
添加回答
舉報(bào)
0/150
提交
取消