(知道因为下载数据库错误,而导致解压失败,但是找不到下载到哪里了呀!原来在这里)EOFError: Compressed file ended before the end-of-stream marker was reached 代码报错--------EOFError: Compressed file ended before the end-of-stream marker was reached

把下载好的数据放在这里就行了

代码报错--------EOFError: Compressed file ended before the end-of-stream marker was reached

背景:运行LeNet识别CIFAR-10的图像的代码时,报错:

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

解决办法:在C:\Users\华硕\.keras\datasets的目录下面把 cifar-10-batches-py 这个文件夹删掉

原因: 第二次运行时,报错为找不到data_batch_1 这个文件,我的cifar-10-batches-py文件夹里只有data_batch_4文件,所以大致原因是程序中下载的数据集出现丢失或者其他问题,把数据集删掉重新下载可以解决。

背景:运行LeNet识别CIFAR-10的图像的代码时,报错:

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

解决办法:在C:\Users\华硕\.keras\datasets的目录下面把 cifar-10-batches-py 这个文件夹删掉

原因: 第二次运行时,报错为找不到data_batch_1 这个文件,我的cifar-10-batches-py文件夹里只有data_batch_4文件,所以大致原因是程序中下载的数据集出现丢失或者其他问题,把数据集删掉重新下载可以解决。

猜你喜欢

转载自www.cnblogs.com/qqhfeng/p/12147359.html