Traceback (most recent call last): File "D:\Anaconda\anaconda1\envs\pytorch_gpu\lib\site-packages\labelImg\labelImg.py", line 1390, in open_file self.load_file(filename) File "D:\Anaconda\anaconda1\envs\pytorch_gpu\lib\site-packages\labelImg\labelImg.py", line 1111, in load_file self.show_bounding_box_from_annotation_file(file_path) File "D:\Anaconda\anaconda1\envs\pytorch_gpu\lib\site-packages\labelImg\labelImg.py", line 1144, in show_bounding_box_from_annotation_file self.load_yolo_txt_by_filename(txt_path) File "D:\Anaconda\anaconda1\envs\pytorch_gpu\lib\site-packages\labelImg\labelImg.py", line 1557, in load_yolo_txt_by_filename t_yolo_parse_reader = YoloReader(txt_path, self.image) File "D:\Anaconda\anaconda1\envs\pytorch_gpu\lib\site-packages\libs\yolo_io.py", line 100, in __init__ classes_file = open(self.class_list_path, 'r') FileNotFoundError: [Errno 2] No such file or directory: 'D:\\python\\pycharm\\pycharm_date\\Oracle\\o_datasets\\labels\\train\\classes.txt'
时间: 2023-07-17 07:08:34 浏览: 245
这个错误是由于程序无法找到文件 'D:\\python\\pycharm\\pycharm_date\\Oracle\\o_datasets\\labels\\train\\classes.txt' 导致的。请确保该文件存在于指定的路径中,并且路径名是正确的。你可以检查一下文件是否存在,或者确认路径是否正确。如果文件确实存在但程序无法找到,可能是由于权限问题或者文件名的大小写不匹配导致的。你可以尝试使用绝对路径来确保程序可以找到该文件。
阅读全文