我想从Colab读取一个HDF5文件,这个文件是从我的Google Drive托管的。这个文件的大小很大(46 GB)。但在使用该文件时,会产生以下错误。
OSError: Can't read data (file read failed: time = Sun May 10 08:31:46 2020
, filename = 'gdrive/My Drive/Computer_vision_with_deep_learning/fruits-ml-web-app/hdf5/features.hdf', file descriptor = 62, errno = 5, error message = 'Input/output error', buf = 0x9efd83080, total read size = 32918392704, bytes this sub-read = 32918392704, bytes actually read = 18446744073709551615, offset = 4097052672)
它可以打开文件,但在读取文件时却出现了错误。
我在GitHub上找到了一个关于这个问题的帖子。以下是它的链接。
为什么会出现这种情况?如何解决这个问题?
你可以尝试将文件复制到 /content
fisrt。这可能会有帮助。