成功解决FileNotFoundError: [Errno 2] No such file or directory: '/home/bai/Myprojects/Tfexamples/data/kn
解决 成功 File Data No or Directory home
2023-09-14 09:04:51 时间
成功解决FileNotFoundError: [Errno 2] No such file or directory: '/home/bai/Myprojects/Tfexamples/data/kn
目录
解决问题
FileNotFoundError: [Errno 2] No such file or directory: '/home/bai/Myprojects/Tfexamples/data/knifey-spoony\\knifey\\knifey-02-0219.jpg'
解决思路
找不到文件错误
出现该情况,要么是不存在该文件,要么是该文件路径不对!
解决方法
经过分析,发现原因是加载文件路径不对!
新加文件的相对路径代码即可!
self.in_dir= 'data/name' #新加代码 190814
哈哈,大功告成!
相关文章
- 使用npm安装electron不成功的解决方法
- PHP截取中文字符串不出现?号的解决方法[原创]
- atitit.错误:找不到或无法加载主类 的解决 v4 qa15.doc
- Android设备获取扫码枪扫描的内容与可能遇到的问题解决
- 成功解决TypeError: unsupported operand type(s) for +: ‘float‘ and ‘NoneType‘
- 成功解决_catboost.CatBoostError: Bad value for num_feature: Cannot convert ‘b‘x8fx91‘‘ to float
- 成功解决type object ‘h5py.h5.H5PYConfig‘ has no attribute ‘__reduce_cython__‘
- 成功解决for循环语句中,后几次循环输出数据一直全部为空
- 成功解决xlrd.biffh.XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b‘Debug is
- 成功解决No such file or directory: site-packagespyyaml-5.3-py3.6-win-amd64.eggEGG-INFOtop_level.t
- 成功解决NotFoundError (see above for traceback): Failed to create a directory: ; No such file or directo
- Matlab:成功解决Function definition are not permitted at the prompt or scripts
- Sql:成功解决将sql输出的datetime时间格式转为常规格式
- 成功解决Exception “unhandled AttributeError“ module ‘h5py‘ has no attribute ‘File‘
- 成功解决OSError: [Errno 22] Invalid argument: ‘checkpoints20211211.pth.tar‘
- 成功解决运行tensorflow时ModuleNotFoundError: No module named ‘numpy.core._multiarray_umath‘
- 成功解决xlrd.biffh.XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b‘Debug is
- 成功解决NotFoundError (see above for traceback): Failed to create a directory: ; No such file or directo
- TF版本升级问题:成功解决AttributeError: module tensorflow has no attribute mul
- 成功解决NameError: name 'file' is not defined
- 成功解决coordinate_descent.py:491: ConvergenceWarning: Objective did not converge. You might want to inc
- 成功解决OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in cv::resize, file C:proj
- 成功解决 .Quit() File "COMObject InternetExplorer.Application", line 2, in Quit pywintypes.com_error
- 成功解决ValueError: You are trying to load a weight file containing 4 layers into a model with 0 layers.
- 成功解决VM虚拟机内This compute has only 713.3MB disk space remaning
- 成功解决Ubuntu下的include/darknet.h:14:14: fatal error: cuda_runtime.h: No such file or directory
- C语言快速解决反转链表
- 成功解决IDEA中建立新项目Maven会默认选择配置(图解详细说明)
- 立波 iphone3gs越狱教程:成功把iphone3gs手机升级成ios6.1.3系统,完美越狱,解决no service和耗电量大的问题