成功解决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
560 0
|
6月前
|
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
169 0
|
Python
ERROR: file or directory not found: xx.py
​ 1、问题出现原因 在vscode中已导入pytest框架,做自动化demo小测试,运行Python文件一直出现如题错误,截图如下: ERROR: file or directory not found: xx.py  2、解决办法 1)直接把该文件移到当前主目录下,放在PYTHON-STUDY下 2)VSCode中右键tuopan.py文件,选择[在集成终端中打开],或者通过CD命令进入到tuopan.py文件所在目录 然后输入以下命令即可: 注:上述命令不是换行,在d:/前有空格 ,第一行信息为python所在安装路径,空格后的换行为运行的python文件的所在路径  
155 0
|
Python
FileNotFoundError: [Errno 2] No such file or directory
FileNotFoundError: [Errno 2] No such file or directory
726 0
FileNotFoundError: [Errno 2] No such file or directory
|
机器学习/深度学习
成功解决NotFoundError (see above for traceback): Failed to create a directory: ; No such file or directo
成功解决NotFoundError (see above for traceback): Failed to create a directory: ; No such file or directo
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
507 0
成功解决fp = builtins.open(filename, "rb") OSError: [Errno 22] Invalid argument: 'F:\\File_Pyt
成功解决fp = builtins.open(filename, "rb") OSError: [Errno 22] Invalid argument: 'F:\\File_Pyt