ERROR : 'dining table' is not in list
After running the script i got this error msg
YOLO Generating Result : False, msg : ERROR : 'dining table' is not in list, moreInfo : <class 'ValueError'> Format.py 704
any solution ?
This error comes up when your --cls_list_file does not have the label from your .xml annotation. Your yolo parsing phase should be successful, however yolo generating phase should have raised this issue. I had a way to solve this issue (of-course not an efficient way, but it still works nicely):
-
Try to somehow get the file number from Line 714 of Format.py script with
progress_cntnumber. Once you get that please follow the next step. -
Add the following
ifconditional statement at Line 236 of Format.py script
if progress_cnt == (the number that you got from step-1 i.e. previous step):
print("Worong annotation is in the file: ")
print(filename)
The second step will give you the .xml annotation file name which then you can manually open and correct the label.
If the above message solves your issue then please mark this as a closed issue.
To solve this issue, simply replace the "diningtable" within coco.names to "dining table". For other difference, "tvmonitor" to "tv", "aeroplane" to "airplane", etc.