labelimg切换图片时数组越界
作者:互联网
报错如下:Traceback (most recent call last):
…
File “c:\users\administrator\anaconda3\envs\py38\lib\site-packages\libs\yolo_io.py”, line 125, in yolo_line_to_shape
label = self.classes[int(class_index)]
IndexError: list index out of range
可能原因:
控制台强制结束了labelimg,导致classes.txt文件分类种类缺失
解决方法:
补全classes.txt文件分类种类
标签:index,yolo,越界,classes,数组,labelimg,line,txt 来源: https://blog.csdn.net/skewary/article/details/123118394