Ignore a label in json file #1097
Replies: 2 comments 1 reply
-
Hi, I have the same error, too. Traceback (most recent call last): I wanted to ignore the class 'wall', so I removed it from labels.txt. |
Beta Was this translation helpful? Give feedback.
-
Ah, maybe the previous solution won't work and you need to edit labelme2voc.py. |
Beta Was this translation helpful? Give feedback.
-
Hi, I did what you say but got an error
Traceback (most recent call last):
File "labelme2voc.py", line 139, in
main()
File "labelme2voc.py", line 102, in main
cls, ins = labelme.utils.shapes_to_label(
File "/Users/azzz/.pyenv/versions/3.8.3/lib/python3.8/site-packages/labelme/utils/shape.py", line 69, in shapes_to_label
cls_id = label_name_to_value[cls_name]
KeyError: 'truck'
truck is the label I want to ignore
You can change the content of
labels.txt
.Originally posted by @wkentaro in #447 (comment)
Beta Was this translation helpful? Give feedback.
All reactions