EOFError: Compressed file ended before the end-of-stream marker was reached

在用卷积神经网络跑MNIST数据集时,出现了此问题。

如何解决?

在stackoverflow上看到的解释:This is because for some reason you have an incomplete download for the MNIST dataset

因为MNIST数据集是运行时下载的,很可能是在下载MNIST数据时,由于网络问题, 下载不全。

先去GitHub上下载完MNIST数据集,然后把MNIST数据复制到 data 中即可。

猜你喜欢

转载自blog.csdn.net/qq_28632639/article/details/86604571