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文件分类种类

你可能感兴趣的:(pytorch,python,目标检测)