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

Update convert_annotations.py #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mralamdari
Copy link

There were some errors, so I tried to solve them and improve the code.
Here is the Error I got when I ran the code with Traffic sign pictures:

Error:
Traceback (most recent call last): File "convert_annotations.py", line 63, in <module> coords = np.asarray([float(labels[1]), float(labels[2]), float(labels[3]), float(labels[4])]) ValueError: could not convert string to float: 'sign'

So I decided to change the label indexing so that this Error won't happen in the future.

My Solution:
Indexing labels from the end of the labels array.

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

Successfully merging this pull request may close these issues.

1 participant