convert2Yolo icon indicating copy to clipboard operation
convert2Yolo copied to clipboard

ERROR : 'dining table' is not in list

Open alsawaf opened this issue 6 years ago • 3 comments

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 ?

alsawaf avatar Feb 07 '20 13:02 alsawaf

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):

  1. Try to somehow get the file number from Line 714 of Format.py script with progress_cnt number. Once you get that please follow the next step.

  2. Add the following if conditional 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.

trived76 avatar Mar 06 '20 01:03 trived76

If the above message solves your issue then please mark this as a closed issue.

trived76 avatar Mar 06 '20 01:03 trived76

To solve this issue, simply replace the "diningtable" within coco.names to "dining table". For other difference, "tvmonitor" to "tv", "aeroplane" to "airplane", etc.

jyc8251 avatar Mar 17 '20 03:03 jyc8251