Skip to content

Added support for class names with multiple spaces#6

Open
Rajarshi07 wants to merge 1 commit into
theAIGuysCode:masterfrom
Rajarshi07:master
Open

Added support for class names with multiple spaces#6
Rajarshi07 wants to merge 1 commit into
theAIGuysCode:masterfrom
Rajarshi07:master

Conversation

@Rajarshi07
Copy link
Copy Markdown

Error:
Converting annotations for class: Computer keyboard
0%| | 0/3331 [00:00<?, ?it/s]
Traceback (most recent call last):
File ".\convert_annotations.py", line 63, in
coords = np.asarray([float(labels[1]), float(labels[2]), float(labels[3]), float(labels[4])])
ValueError: could not convert string to float: 'keyboard'

Example label:
Computer keyboard 392.32 2.5597440000000002 545.28 46.08
Fixed this error for class names with spaces in them.

Error:
Converting annotations for class: Computer keyboard
0%| | 0/3331 [00:00<?, ?it/s]
Traceback (most recent call last):
File ".\convert_annotations.py", line 63, in
coords = np.asarray([float(labels[1]), float(labels[2]), float(labels[3]), float(labels[4])])
ValueError: could not convert string to float: 'keyboard'

Example label:
Computer keyboard 392.32 2.5597440000000002 545.28 46.08
Fixed this error for class names with spaces in them.
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