Traceback (most recent call last):
File "train.py", line 173, in
ap_table += [[c, class_names[c], "%.5f" % AP[i]]]
IndexError: list index out of range
Hello, in utils.py, load_classes change
names = fp.read().split("\n")[:-1]
To
names = fp.read().split("\n")
I don't really understand why in the loader they are not taking the last class into account, but I just changed there. Then it should work
Hello, in utils.py, load_classes change
names = fp.read().split("\n")[:-1]To
names = fp.read().split("\n")I don't really understand why in the loader they are not taking the last class into account, but I just changed there. Then it should work
Thank you. It worked for me as I just press enter at the end of the line in the classes.names file. If you know how to detect the video, please do let me know.
Thanks
hello锛寃hy is my cls_acc==100%,
thanks,i also solved it
Most helpful comment
Hello, in utils.py, load_classes change
To
I don't really understand why in the loader they are not taking the last class into account, but I just changed there. Then it should work