Skip to content

Update convert_annotations.py#10

Open
mralamdari wants to merge 1 commit into
theAIGuysCode:masterfrom
mralamdari:patch-1
Open

Update convert_annotations.py#10
mralamdari wants to merge 1 commit into
theAIGuysCode:masterfrom
mralamdari:patch-1

Conversation

@mralamdari
Copy link
Copy Markdown

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