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

Need to add labels to Auto Annotation's Run Model Script #914

Closed
benhoff opened this issue Dec 7, 2019 · 0 comments
Closed

Need to add labels to Auto Annotation's Run Model Script #914

benhoff opened this issue Dec 7, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@benhoff
Copy link
Contributor

benhoff commented Dec 7, 2019

Currently Auto Annotation's run_model.py has a way to visualize the results, but it doesn't have any way to visualize labels. This has lead to off-by-1 errors in development.

Ref: #912
Ref: #890 (comment)

Need to add the ability to visualize labels to ensure the mapping.json remains accurate.

This should be relatively easy. See below for a reference implementation:

https://github.com/opencv/open_model_zoo/blob/e372d4173e50741a6828cda415d55c37320f89cd/demos/python_demos/object_detection_demo_yolov3_async/object_detection_demo_yolov3_async.py#L318

Note that when using the --serialize command, the text label is actually overwritten (for reasons that are explained in the note starting at this link) in the following line:

https://github.com/opencv/cvat/blob/32027ce884c0584015874c4ae99ba7f53ffb46c0/utils/auto_annotation/run_model.py#L126

The above overriden data would need to be preserved by some programmatic means to preserve the plain english descriptions. A simple dictionary copy before re-writing at line 126 would likely suffice.

@nmanovic nmanovic added the enhancement New feature or request label Dec 8, 2019
@nmanovic nmanovic added this to the Backlog milestone Dec 8, 2019
@benhoff benhoff closed this as completed Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants