Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Break when choose wrong class #17

Open
pahung1999 opened this issue May 24, 2023 · 0 comments
Open

Error: Break when choose wrong class #17

pahung1999 opened this issue May 24, 2023 · 0 comments

Comments

@pahung1999
Copy link

Khi chọn một nút và ấn phím tắt nhãn ko tồn tại thì tool sập luôn.
Vd chỉ có 3 nhãn mà ấn 4 thì sập.

Traceback (most recent call last):
  File "/home/phung/.local/lib/python3.9/site-packages/label_tool/app.py", line 123, in gui
    state.handle()
  File "/home/phung/.local/lib/python3.9/site-packages/label_tool/states.py", line 122, in handle
    self.dataset.set_text_class(node.id, class_idx)
  File "/home/phung/.local/lib/python3.9/site-packages/label_tool/data.py", line 20, in wrapper
    f(self, *a, **k)
  File "/home/phung/.local/lib/python3.9/site-packages/label_tool/data.py", line 110, in set_text_class
    assert class_idx < len(self.classes)
AssertionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant