成功解决OSError: Unable to open file (truncated file: eof = 8388608, sblock->base_addr = 0, stored_eof =

简介: 成功解决OSError: Unable to open file (truncated file: eof = 8388608, sblock->base_addr = 0, stored_eof =

解决问题


OSError: Unable to open file (truncated file: eof = 8388608, sblock->base_addr = 0, stored_eof = 257557808)





解决思路


OS错误:无法打开文件(截断的文件:eof=8388608,sblock->base_addr=0,stored_eof=257557808)





解决办法


很可能是原先的文件加载的不对,也就是说很有可能原先下载的文件没有完全成功下载,所以

解决办法:再重新下载一遍完整的文件,即可解决。

注:千万不要再没下载成功就使用!

文章参考Stack overflow:I tried to fine-tune VGG16 on my dataset, but met the OSError about loading VGG16 weights


image.png


最后,完美解决,大功告成!




 


相关文章
|
Docker Python 容器
解决docker FileNotFoundError: [Errno 2] No such file or directory: ‘./data/train
解决docker FileNotFoundError: [Errno 2] No such file or directory: ‘./data/train
632 0
|
10月前
|
Python
.repo/repo/main.py“, line 79 file=sys.stderr) SyntaxError: invalid syntax
.repo/repo/main.py“, line 79 file=sys.stderr) SyntaxError: invalid syntax
287 0
perhaps your file is in a different file format and youneed to use a different restore operator?
perhaps your file is in a different file format and youneed to use a different restore operator?
186 0
checking build system type... ./config.guess: unable to guess system type/you must specify one
checking build system type... ./config.guess: unable to guess system type/you must specify one
184 0
autoreconf: failed to run autopoint: No such file or directory
autoreconf: failed to run autopoint: No such file or directory
240 0
OSError: image file is truncated (12 bytes not processed) Premature end of JPEG file
OSError: image file is truncated (12 bytes not processed) Premature end of JPEG file
565 0