AssertionError: file: ‘xxxx‘dose not exist(若涉及函数os.path.join()可参考)
一、问题原因:os.path.join()用于连接两个或更多的路径名组件,因此第一个参数data_root应该为根目录文件夹,第二个参数“paper”为下一级文件夹。我的图片所在路径为C:\Users\Administrator\Desktop\2021-2022\gradution_design\data1.11\paper\JPEGImages(错误版本与修改后的正确版本如下)二、错误版本:正确版本:...
原创
2022-04-24 15:20:42 ·
4554 阅读 ·
0 评论