0

ダウンロードが非常に遅かったため、Fashion_MNIST のダウンロードを終了する必要がありました。再度ダウンロードしようとすると、以下のエラーが発生します。最初に以前の部分ダウンロードを削除する必要があると思います。Macbookで部分ダウンロードが保存されているフォルダが見つかりません。Mac OS で部分的なダウンロードができる場所を教えてください。

コード

import tensorflow as tf
from tensorflow import keras

fashion_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
4

1 に答える 1