Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

ERROR : 'dining table' is not in list #24

Open
alsawaf opened this issue Feb 7, 2020 · 3 comments
Open

ERROR : 'dining table' is not in list #24

alsawaf opened this issue Feb 7, 2020 · 3 comments

Comments

@alsawaf
Copy link

alsawaf commented Feb 7, 2020

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 ?

@trived76
Copy link

trived76 commented Mar 6, 2020

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
Copy link

trived76 commented Mar 6, 2020

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

@jyc8251
Copy link

jyc8251 commented Mar 17, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants